Class CfnJobDefinitionPropsMixin.EksVolumeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.batch.CfnJobDefinitionPropsMixin.EksVolumeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.EksVolumeProperty>
- Enclosing interface:
CfnJobDefinitionPropsMixin.EksVolumeProperty
@Stability(Stable)
public static final class CfnJobDefinitionPropsMixin.EksVolumeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.EksVolumeProperty>
A builder for
CfnJobDefinitionPropsMixin.EksVolumeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getEmptyDir()emptyDir(IResolvable emptyDir) Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getEmptyDir()Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getHostPath()hostPath(IResolvable hostPath) Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getHostPath()Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getName()persistentVolumeClaim(CfnJobDefinitionPropsMixin.EksPersistentVolumeClaimProperty persistentVolumeClaim) Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getPersistentVolumeClaim()persistentVolumeClaim(IResolvable persistentVolumeClaim) Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getPersistentVolumeClaim()Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getSecret()secret(IResolvable secret) Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getSecret()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
emptyDir
@Stability(Stable) public CfnJobDefinitionPropsMixin.EksVolumeProperty.Builder emptyDir(IResolvable emptyDir) Sets the value ofCfnJobDefinitionPropsMixin.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 CfnJobDefinitionPropsMixin.EksVolumeProperty.Builder emptyDir(CfnJobDefinitionPropsMixin.EmptyDirProperty emptyDir) Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getEmptyDir()- Parameters:
emptyDir- Specifies the configuration of a KubernetesemptyDirvolume. For more information, see emptyDir in the Kubernetes documentation .- Returns:
this
-
hostPath
@Stability(Stable) public CfnJobDefinitionPropsMixin.EksVolumeProperty.Builder hostPath(IResolvable hostPath) Sets the value ofCfnJobDefinitionPropsMixin.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 CfnJobDefinitionPropsMixin.EksVolumeProperty.Builder hostPath(CfnJobDefinitionPropsMixin.HostPathProperty hostPath) Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getHostPath()- Parameters:
hostPath- Specifies the configuration of a KuberneteshostPathvolume. For more information, see hostPath in the Kubernetes documentation .- Returns:
this
-
name
Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getName()- Parameters:
name- The name of the volume. The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation .- Returns:
this
-
persistentVolumeClaim
@Stability(Stable) public CfnJobDefinitionPropsMixin.EksVolumeProperty.Builder persistentVolumeClaim(IResolvable persistentVolumeClaim) Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getPersistentVolumeClaim()- Parameters:
persistentVolumeClaim- Specifies the configuration of a KubernetespersistentVolumeClaimbounded to apersistentVolume. For more information, see Persistent Volume Claims in the Kubernetes documentation .- Returns:
this
-
persistentVolumeClaim
@Stability(Stable) public CfnJobDefinitionPropsMixin.EksVolumeProperty.Builder persistentVolumeClaim(CfnJobDefinitionPropsMixin.EksPersistentVolumeClaimProperty persistentVolumeClaim) Sets the value ofCfnJobDefinitionPropsMixin.EksVolumeProperty.getPersistentVolumeClaim()- Parameters:
persistentVolumeClaim- Specifies the configuration of a KubernetespersistentVolumeClaimbounded to apersistentVolume. For more information, see Persistent Volume Claims in the Kubernetes documentation .- Returns:
this
-
secret
@Stability(Stable) public CfnJobDefinitionPropsMixin.EksVolumeProperty.Builder secret(IResolvable secret) Sets the value ofCfnJobDefinitionPropsMixin.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 CfnJobDefinitionPropsMixin.EksVolumeProperty.Builder secret(CfnJobDefinitionPropsMixin.EksSecretProperty secret) Sets the value ofCfnJobDefinitionPropsMixin.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<CfnJobDefinitionPropsMixin.EksVolumeProperty>- Returns:
- a new instance of
CfnJobDefinitionPropsMixin.EksVolumeProperty - Throws:
NullPointerException- if any required attribute was not provided
-