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