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