Class Tmpfs.Builder

java.lang.Object
software.amazon.awscdk.services.ecs.Tmpfs.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Tmpfs>
Enclosing interface:
Tmpfs

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

    • Builder

      public Builder()
  • Method Details

    • containerPath

      @Stability(Stable) public Tmpfs.Builder containerPath(String containerPath)
      Sets the value of Tmpfs.getContainerPath()
      Parameters:
      containerPath - The absolute file path where the tmpfs volume is to be mounted. This parameter is required.
      Returns:
      this
    • size

      @Stability(Stable) public Tmpfs.Builder size(Number size)
      Sets the value of Tmpfs.getSize()
      Parameters:
      size - The size (in MiB) of the tmpfs volume. This parameter is required.
      Returns:
      this
    • mountOptions

      @Stability(Stable) public Tmpfs.Builder mountOptions(List<? extends TmpfsMountOption> mountOptions)
      Sets the value of Tmpfs.getMountOptions()
      Parameters:
      mountOptions - The list of tmpfs volume mount options. For more information, see TmpfsMountOptions.
      Returns:
      this
    • build

      @Stability(Stable) public Tmpfs build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<Tmpfs>
      Returns:
      a new instance of Tmpfs
      Throws:
      NullPointerException - if any required attribute was not provided