Package org.cdk8s.plus25.k8s
Class SubjectV1Beta2.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.SubjectV1Beta2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SubjectV1Beta2>
- Enclosing interface:
- SubjectV1Beta2
@Stability(Stable) public static final class SubjectV1Beta2.Builder extends Object implements software.amazon.jsii.Builder<SubjectV1Beta2>
A builder forSubjectV1Beta2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubjectV1Beta2build()Builds the configured instance.SubjectV1Beta2.Buildergroup(GroupSubjectV1Beta2 group)Sets the value ofSubjectV1Beta2.getGroup()SubjectV1Beta2.Builderkind(String kind)Sets the value ofSubjectV1Beta2.getKind()SubjectV1Beta2.BuilderserviceAccount(ServiceAccountSubjectV1Beta2 serviceAccount)Sets the value ofSubjectV1Beta2.getServiceAccount()SubjectV1Beta2.Builderuser(UserSubjectV1Beta2 user)Sets the value ofSubjectV1Beta2.getUser()
-
-
-
Method Detail
-
kind
@Stability(Stable) public SubjectV1Beta2.Builder kind(String kind)
Sets the value ofSubjectV1Beta2.getKind()- Parameters:
kind-kindindicates which one of the other fields is non-empty. This parameter is required. Required- Returns:
this
-
group
@Stability(Stable) public SubjectV1Beta2.Builder group(GroupSubjectV1Beta2 group)
Sets the value ofSubjectV1Beta2.getGroup()- Parameters:
group-groupmatches based on user group name.- Returns:
this
-
serviceAccount
@Stability(Stable) public SubjectV1Beta2.Builder serviceAccount(ServiceAccountSubjectV1Beta2 serviceAccount)
Sets the value ofSubjectV1Beta2.getServiceAccount()- Parameters:
serviceAccount-serviceAccountmatches ServiceAccounts.- Returns:
this
-
user
@Stability(Stable) public SubjectV1Beta2.Builder user(UserSubjectV1Beta2 user)
Sets the value ofSubjectV1Beta2.getUser()- Parameters:
user-usermatches based on username.- Returns:
this
-
build
@Stability(Stable) public SubjectV1Beta2 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SubjectV1Beta2>- Returns:
- a new instance of
SubjectV1Beta2 - Throws:
NullPointerException- if any required attribute was not provided
-
-