Interface Mount.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Mount.Builder,Mount>, SdkBuilder<Mount.Builder,Mount>, SdkPojo
Enclosing class:
Mount

@Mutable @NotThreadSafe public static interface Mount.Builder extends SdkPojo, CopyableBuilder<Mount.Builder,Mount>
  • Method Details

    • name

      Mount.Builder name(String name)

      A unique name for the mount within the task.

      Parameters:
      name - A unique name for the mount within the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relativePath

      Mount.Builder relativePath(String relativePath)

      The relative path under the service-owned mount root where this mount is attached inside the container.

      Parameters:
      relativePath - The relative path under the service-owned mount root where this mount is attached inside the container.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      Mount.Builder source(MountSource source)

      The data source for the mount.

      Parameters:
      source - The data source for the mount.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      default Mount.Builder source(Consumer<MountSource.Builder> source)

      The data source for the mount.

      This is a convenience method that creates an instance of the MountSource.Builder avoiding the need to create one manually via MountSource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to source(MountSource).

      Parameters:
      source - a consumer that will call methods on MountSource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • storageType

      Mount.Builder storageType(String storageType)

      The type of storage used for the mount.

      Parameters:
      storageType - The type of storage used for the mount.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • storageType

      Mount.Builder storageType(MountStorageType storageType)

      The type of storage used for the mount.

      Parameters:
      storageType - The type of storage used for the mount.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: