Interface DaemonVolume.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DaemonVolume.Builder,,DaemonVolume> SdkBuilder<DaemonVolume.Builder,,DaemonVolume> SdkPojo
- Enclosing class:
DaemonVolume
@Mutable
@NotThreadSafe
public static interface DaemonVolume.Builder
extends SdkPojo, CopyableBuilder<DaemonVolume.Builder,DaemonVolume>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DaemonVolume.BuilderThe contents of thehostparameter determine whether your bind mount host volume persists on the host container instance and where it's stored.host(HostVolumeProperties host) The contents of thehostparameter determine whether your bind mount host volume persists on the host container instance and where it's stored.The name of the volume.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.
- Parameters:
name- The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
host
The contents of the
hostparameter determine whether your bind mount host volume persists on the host container instance and where it's stored.- Parameters:
host- The contents of thehostparameter determine whether your bind mount host volume persists on the host container instance and where it's stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
host
The contents of the
This is a convenience method that creates an instance of thehostparameter determine whether your bind mount host volume persists on the host container instance and where it's stored.HostVolumeProperties.Builderavoiding the need to create one manually viaHostVolumeProperties.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohost(HostVolumeProperties).- Parameters:
host- a consumer that will call methods onHostVolumeProperties.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-