Class EmptyDirVolume.Builder

java.lang.Object
software.amazon.awscdk.services.batch.EmptyDirVolume.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<EmptyDirVolume>
Enclosing class:
EmptyDirVolume

@Stability(Stable) public static final class EmptyDirVolume.Builder extends Object implements software.amazon.jsii.Builder<EmptyDirVolume>
A fluent builder for EmptyDirVolume.
  • Method Details

    • create

      @Stability(Stable) public static EmptyDirVolume.Builder create()
      Returns:
      a new instance of EmptyDirVolume.Builder.
    • name

      @Stability(Stable) public EmptyDirVolume.Builder name(String name)
      The name of this volume.

      The name must be a valid DNS subdomain name.

      Parameters:
      name - The name of this volume. This parameter is required.
      Returns:
      this
      See Also:
    • mountPath

      @Stability(Stable) public EmptyDirVolume.Builder mountPath(String mountPath)
      The path on the container where the volume is mounted.

      Default: - the volume is not mounted

      Parameters:
      mountPath - The path on the container where the volume is mounted. This parameter is required.
      Returns:
      this
    • readonly

      @Stability(Stable) public EmptyDirVolume.Builder readonly(Boolean readonly)
      If specified, the container has readonly access to the volume.

      Otherwise, the container has read/write access.

      Default: false

      Parameters:
      readonly - If specified, the container has readonly access to the volume. This parameter is required.
      Returns:
      this
    • medium

      @Stability(Stable) public EmptyDirVolume.Builder medium(EmptyDirMediumType medium)
      The storage type to use for this Volume.

      Default: `EmptyDirMediumType.DISK`

      Parameters:
      medium - The storage type to use for this Volume. This parameter is required.
      Returns:
      this
    • sizeLimit

      @Stability(Stable) public EmptyDirVolume.Builder sizeLimit(Size sizeLimit)
      The maximum size for this Volume.

      Default: - no size limit

      Parameters:
      sizeLimit - The maximum size for this Volume. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public EmptyDirVolume build()
      Specified by:
      build in interface software.amazon.jsii.Builder<EmptyDirVolume>
      Returns:
      a newly built instance of EmptyDirVolume.