Package org.cdk8s.plus24
Class SubjectConfiguration.Builder
- java.lang.Object
-
- org.cdk8s.plus24.SubjectConfiguration.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SubjectConfiguration>
- Enclosing interface:
- SubjectConfiguration
@Stability(Stable) public static final class SubjectConfiguration.Builder extends Object implements software.amazon.jsii.Builder<SubjectConfiguration>
A builder forSubjectConfiguration
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubjectConfiguration.Builder
apiGroup(String apiGroup)
Sets the value ofSubjectConfiguration.getApiGroup()
SubjectConfiguration
build()
Builds the configured instance.SubjectConfiguration.Builder
kind(String kind)
Sets the value ofSubjectConfiguration.getKind()
SubjectConfiguration.Builder
name(String name)
Sets the value ofSubjectConfiguration.getName()
SubjectConfiguration.Builder
namespace(String namespace)
Sets the value ofSubjectConfiguration.getNamespace()
-
-
-
Method Detail
-
kind
@Stability(Stable) public SubjectConfiguration.Builder kind(String kind)
Sets the value ofSubjectConfiguration.getKind()
- Parameters:
kind
- Kind of object being referenced. This parameter is required. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.- Returns:
this
-
name
@Stability(Stable) public SubjectConfiguration.Builder name(String name)
Sets the value ofSubjectConfiguration.getName()
- Parameters:
name
- Name of the object being referenced. This parameter is required.- Returns:
this
-
apiGroup
@Stability(Stable) public SubjectConfiguration.Builder apiGroup(String apiGroup)
Sets the value ofSubjectConfiguration.getApiGroup()
- Parameters:
apiGroup
- APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.- Returns:
this
-
namespace
@Stability(Stable) public SubjectConfiguration.Builder namespace(String namespace)
Sets the value ofSubjectConfiguration.getNamespace()
- Parameters:
namespace
- Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.- Returns:
this
-
build
@Stability(Stable) public SubjectConfiguration build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SubjectConfiguration>
- Returns:
- a new instance of
SubjectConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-
-