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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Volume.BuilderhostPath(Consumer<HostPath.Builder> hostPath)Represents a pre-existing file or directory on the host machine that the volume maps to.Volume.BuilderhostPath(HostPath hostPath)Represents a pre-existing file or directory on the host machine that the volume maps to.Volume.Buildername(String name)Volume name.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
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 theHostPath.Builderavoiding the need to create one manually viaHostPath.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohostPath(HostPath).- Parameters:
hostPath- a consumer that will call methods onHostPath.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
hostPath(HostPath)
-
-