Interface Volume.Builder

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

public static interface Volume.Builder extends SdkPojo, CopyableBuilder<Volume.Builder,Volume>
  • Method Details

    • name

      Volume.Builder name(String name)

      Volume name.

      Parameters:
      name - Volume name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostPath

      Volume.Builder hostPath(HostPath hostPath)

      Represents a pre-existing file or directory on the host machine that the volume maps to.

      Parameters:
      hostPath - Represents a pre-existing file or directory on the host machine that the volume maps to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostPath

      default Volume.Builder hostPath(Consumer<HostPath.Builder> hostPath)

      Represents a pre-existing file or directory on the host machine that the volume maps to.

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

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

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