Package org.cdk8s.plus20
Class ServiceAccountTokenSecretProps.Builder
- java.lang.Object
-
- org.cdk8s.plus20.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.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
-
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
-
-