Class CfnJobDefinition.EksVolumeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.EksVolumeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.EksVolumeProperty>
- Enclosing interface:
- CfnJobDefinition.EksVolumeProperty
@Stability(Stable)
public static final class CfnJobDefinition.EksVolumeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.EksVolumeProperty>
A builder for
CfnJobDefinition.EksVolumeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.emptyDir(IResolvable emptyDir) Sets the value ofCfnJobDefinition.EksVolumeProperty.getEmptyDir()emptyDir(CfnJobDefinition.EmptyDirProperty emptyDir) Sets the value ofCfnJobDefinition.EksVolumeProperty.getEmptyDir()hostPath(IResolvable hostPath) Sets the value ofCfnJobDefinition.EksVolumeProperty.getHostPath()hostPath(CfnJobDefinition.HostPathProperty hostPath) Sets the value ofCfnJobDefinition.EksVolumeProperty.getHostPath()Sets the value ofCfnJobDefinition.EksVolumeProperty.getName()secret(IResolvable secret) Sets the value ofCfnJobDefinition.EksVolumeProperty.getSecret()Sets the value ofCfnJobDefinition.EksVolumeProperty.getSecret()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnJobDefinition.EksVolumeProperty.getName()- Parameters:
name- The name of the volume. 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
-
emptyDir
Sets the value ofCfnJobDefinition.EksVolumeProperty.getEmptyDir()- Parameters:
emptyDir- Specifies the configuration of a KubernetesemptyDirvolume. For more information, see emptyDir in the Kubernetes documentation .- Returns:
this
-
emptyDir
@Stability(Stable) public CfnJobDefinition.EksVolumeProperty.Builder emptyDir(CfnJobDefinition.EmptyDirProperty emptyDir) Sets the value ofCfnJobDefinition.EksVolumeProperty.getEmptyDir()- Parameters:
emptyDir- Specifies the configuration of a KubernetesemptyDirvolume. For more information, see emptyDir in the Kubernetes documentation .- Returns:
this
-
hostPath
Sets the value ofCfnJobDefinition.EksVolumeProperty.getHostPath()- Parameters:
hostPath- Specifies the configuration of a KuberneteshostPathvolume. For more information, see hostPath in the Kubernetes documentation .- Returns:
this
-
hostPath
@Stability(Stable) public CfnJobDefinition.EksVolumeProperty.Builder hostPath(CfnJobDefinition.HostPathProperty hostPath) Sets the value ofCfnJobDefinition.EksVolumeProperty.getHostPath()- Parameters:
hostPath- Specifies the configuration of a KuberneteshostPathvolume. For more information, see hostPath in the Kubernetes documentation .- Returns:
this
-
secret
Sets the value ofCfnJobDefinition.EksVolumeProperty.getSecret()- Parameters:
secret- Specifies the configuration of a Kubernetessecretvolume. For more information, see secret in the Kubernetes documentation .- Returns:
this
-
secret
@Stability(Stable) public CfnJobDefinition.EksVolumeProperty.Builder secret(CfnJobDefinition.EksSecretProperty secret) Sets the value ofCfnJobDefinition.EksVolumeProperty.getSecret()- Parameters:
secret- Specifies the configuration of a Kubernetessecretvolume. For more information, see secret in the Kubernetes documentation .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.EksVolumeProperty>- Returns:
- a new instance of
CfnJobDefinition.EksVolumeProperty - Throws:
NullPointerException- if any required attribute was not provided
-