Package org.cdk8s.plus24
Class ServiceAccountTokenSecretProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.ServiceAccountTokenSecretProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceAccountTokenSecretProps>
- Enclosing interface:
- ServiceAccountTokenSecretProps
@Stability(Stable) public static final class ServiceAccountTokenSecretProps.Builder extends Object implements software.amazon.jsii.Builder<ServiceAccountTokenSecretProps>
A builder forServiceAccountTokenSecretProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceAccountTokenSecretPropsbuild()Builds the configured instance.ServiceAccountTokenSecretProps.Builderimmutable(Boolean immutable)Sets the value ofCommonSecretProps.getImmutable()ServiceAccountTokenSecretProps.Buildermetadata(org.cdk8s.ApiObjectMetadata metadata)Sets the value ofResourceProps.getMetadata()ServiceAccountTokenSecretProps.BuilderserviceAccount(IServiceAccount serviceAccount)Sets the value ofServiceAccountTokenSecretProps.getServiceAccount()
-
-
-
Method Detail
-
serviceAccount
@Stability(Stable) public ServiceAccountTokenSecretProps.Builder serviceAccount(IServiceAccount serviceAccount)
Sets the value ofServiceAccountTokenSecretProps.getServiceAccount()- Parameters:
serviceAccount- The service account to store a secret for. This parameter is required.- Returns:
this
-
immutable
@Stability(Stable) public ServiceAccountTokenSecretProps.Builder immutable(Boolean immutable)
Sets the value ofCommonSecretProps.getImmutable()- Parameters:
immutable- If set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time.- Returns:
this
-
metadata
@Stability(Stable) public ServiceAccountTokenSecretProps.Builder metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofResourceProps.getMetadata()- Parameters:
metadata- Metadata that all persisted resources must have, which includes all objects users must create.- Returns:
this
-
build
@Stability(Stable) public ServiceAccountTokenSecretProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServiceAccountTokenSecretProps>- Returns:
- a new instance of
ServiceAccountTokenSecretProps - Throws:
NullPointerException- if any required attribute was not provided
-
-