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