Class EksVolumeOptions.Builder
java.lang.Object
software.amazon.awscdk.services.batch.EksVolumeOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EksVolumeOptions>
- Enclosing interface:
EksVolumeOptions
@Stability(Stable)
public static final class EksVolumeOptions.Builder
extends Object
implements software.amazon.jsii.Builder<EksVolumeOptions>
A builder for
EksVolumeOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofEksVolumeOptions.getMountPath()Sets the value ofEksVolumeOptions.getName()Sets the value ofEksVolumeOptions.getReadonly()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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:
buildin interfacesoftware.amazon.jsii.Builder<EksVolumeOptions>- Returns:
- a new instance of
EksVolumeOptions - Throws:
NullPointerException- if any required attribute was not provided
-