Class CfnJobDefinitionPropsMixin.EksSecretProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.batch.CfnJobDefinitionPropsMixin.EksSecretProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.EksSecretProperty>
- Enclosing interface:
CfnJobDefinitionPropsMixin.EksSecretProperty
@Stability(Stable)
public static final class CfnJobDefinitionPropsMixin.EksSecretProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.EksSecretProperty>
A builder for
CfnJobDefinitionPropsMixin.EksSecretProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnJobDefinitionPropsMixin.EksSecretProperty.getOptional()optional(IResolvable optional) Sets the value ofCfnJobDefinitionPropsMixin.EksSecretProperty.getOptional()secretName(String secretName) Sets the value ofCfnJobDefinitionPropsMixin.EksSecretProperty.getSecretName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
optional
@Stability(Stable) public CfnJobDefinitionPropsMixin.EksSecretProperty.Builder optional(Boolean optional) Sets the value ofCfnJobDefinitionPropsMixin.EksSecretProperty.getOptional()- Parameters:
optional- Specifies whether the secret or the secret's keys must be defined.- Returns:
this
-
optional
@Stability(Stable) public CfnJobDefinitionPropsMixin.EksSecretProperty.Builder optional(IResolvable optional) Sets the value ofCfnJobDefinitionPropsMixin.EksSecretProperty.getOptional()- Parameters:
optional- Specifies whether the secret or the secret's keys must be defined.- Returns:
this
-
secretName
@Stability(Stable) public CfnJobDefinitionPropsMixin.EksSecretProperty.Builder secretName(String secretName) Sets the value ofCfnJobDefinitionPropsMixin.EksSecretProperty.getSecretName()- Parameters:
secretName- The name of the secret. The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.EksSecretProperty>- Returns:
- a new instance of
CfnJobDefinitionPropsMixin.EksSecretProperty - Throws:
NullPointerException- if any required attribute was not provided
-