Class SecretPathVolumeOptions.Builder
java.lang.Object
software.amazon.awscdk.services.batch.SecretPathVolumeOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretPathVolumeOptions>
- Enclosing interface:
SecretPathVolumeOptions
@Stability(Stable)
public static final class SecretPathVolumeOptions.Builder
extends Object
implements software.amazon.jsii.Builder<SecretPathVolumeOptions>
A builder for
SecretPathVolumeOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofEksVolumeOptions.getMountPath()
Sets the value ofEksVolumeOptions.getName()
Sets the value ofSecretPathVolumeOptions.getOptional()
Sets the value ofEksVolumeOptions.getReadonly()
secretName
(String secretName) Sets the value ofSecretPathVolumeOptions.getSecretName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
secretName
Sets the value ofSecretPathVolumeOptions.getSecretName()
- Parameters:
secretName
- The name of the secret. This parameter is required. Must be a valid DNS subdomain name.- Returns:
this
-
optional
Sets the value ofSecretPathVolumeOptions.getOptional()
- Parameters:
optional
- Specifies whether the secret or the secret's keys must be defined.- Returns:
this
-
name
Sets the value ofEksVolumeOptions.getName()
- Parameters:
name
- The name of this volume. This parameter is required. The name must be a valid DNS subdomain name.- Returns:
this
-
mountPath
Sets the value ofEksVolumeOptions.getMountPath()
- Parameters:
mountPath
- The path on the container where the volume is mounted.- Returns:
this
-
readonly
Sets the value ofEksVolumeOptions.getReadonly()
- Parameters:
readonly
- If specified, the container has readonly access to the volume. Otherwise, the container has read/write access.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SecretPathVolumeOptions>
- Returns:
- a new instance of
SecretPathVolumeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-