Package org.cdk8s.plus23.k8s
Class SubjectV1Beta2.Builder
- java.lang.Object
-
- org.cdk8s.plus23.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 SubjectV1Beta2
build()
Builds the configured instance.SubjectV1Beta2.Builder
group(GroupSubjectV1Beta2 group)
Sets the value ofSubjectV1Beta2.getGroup()
SubjectV1Beta2.Builder
kind(String kind)
Sets the value ofSubjectV1Beta2.getKind()
SubjectV1Beta2.Builder
serviceAccount(ServiceAccountSubjectV1Beta2 serviceAccount)
Sets the value ofSubjectV1Beta2.getServiceAccount()
SubjectV1Beta2.Builder
user(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
- `kind` indicates 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
- `group` matches based on user group name.- Returns:
this
-
serviceAccount
@Stability(Stable) public SubjectV1Beta2.Builder serviceAccount(ServiceAccountSubjectV1Beta2 serviceAccount)
Sets the value ofSubjectV1Beta2.getServiceAccount()
- Parameters:
serviceAccount
- `serviceAccount` matches ServiceAccounts.- Returns:
this
-
user
@Stability(Stable) public SubjectV1Beta2.Builder user(UserSubjectV1Beta2 user)
Sets the value ofSubjectV1Beta2.getUser()
- Parameters:
user
- `user` matches based on username.- Returns:
this
-
build
@Stability(Stable) public SubjectV1Beta2 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SubjectV1Beta2>
- Returns:
- a new instance of
SubjectV1Beta2
- Throws:
NullPointerException
- if any required attribute was not provided
-
-