Interface Volume.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Volume.Builder,
,Volume> SdkBuilder<Volume.Builder,
,Volume> SdkPojo
- Enclosing class:
Volume
-
Method Summary
Modifier and TypeMethodDescriptiondefault Volume.Builder
hostPath
(Consumer<HostPath.Builder> hostPath) Represents a pre-existing file or directory on the host machine that the volume maps to.Represents a pre-existing file or directory on the host machine that the volume maps to.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 Details
-
name
Volume name.
- Parameters:
name
- Volume name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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.Builder
avoiding the need to create one manually viaHostPath.builder()
.When the
Consumer
completes,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:
-