Interface EksVolume.Builder

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

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

    • name

      The name of the volume. The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation.

      Parameters:
      name - The name of the volume. The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostPath

      EksVolume.Builder hostPath(EksHostPath hostPath)

      Specifies the configuration of a Kubernetes hostPath volume. For more information, see hostPath in the Kubernetes documentation.

      Parameters:
      hostPath - Specifies the configuration of a Kubernetes hostPath volume. For more information, see hostPath in the Kubernetes documentation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostPath

      default EksVolume.Builder hostPath(Consumer<EksHostPath.Builder> hostPath)

      Specifies the configuration of a Kubernetes hostPath volume. For more information, see hostPath in the Kubernetes documentation.

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

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

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

      EksVolume.Builder emptyDir(EksEmptyDir emptyDir)

      Specifies the configuration of a Kubernetes emptyDir volume. For more information, see emptyDir in the Kubernetes documentation.

      Parameters:
      emptyDir - Specifies the configuration of a Kubernetes emptyDir volume. For more information, see emptyDir in the Kubernetes documentation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • emptyDir

      default EksVolume.Builder emptyDir(Consumer<EksEmptyDir.Builder> emptyDir)

      Specifies the configuration of a Kubernetes emptyDir volume. For more information, see emptyDir in the Kubernetes documentation.

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

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

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

      EksVolume.Builder secret(EksSecret secret)

      Specifies the configuration of a Kubernetes secret volume. For more information, see secret in the Kubernetes documentation.

      Parameters:
      secret - Specifies the configuration of a Kubernetes secret volume. For more information, see secret in the Kubernetes documentation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • secret

      default EksVolume.Builder secret(Consumer<EksSecret.Builder> secret)

      Specifies the configuration of a Kubernetes secret volume. For more information, see secret in the Kubernetes documentation.

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

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

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