Class Volume
- All Implemented Interfaces:
Serializable
,Cloneable
A data volume used in a task definition.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getHost()
The contents of thehost
parameter determine whether your data volume persists on the host container instance and where it is stored.getName()
The name of the volume.int
hashCode()
void
setHost
(HostVolumeProperties host) The contents of thehost
parameter determine whether your data volume persists on the host container instance and where it is stored.void
The name of the volume.toString()
Returns a string representation of this object; useful for testing and debugging.withHost
(HostVolumeProperties host) The contents of thehost
parameter determine whether your data volume persists on the host container instance and where it is stored.The name of the volume.
-
Constructor Details
-
Volume
public Volume()
-
-
Method Details
-
setName
The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This name is referenced in the
sourceVolume
parameter of container definitionmountPoints
.- Parameters:
name
- The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This name is referenced in thesourceVolume
parameter of container definitionmountPoints
.
-
getName
The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This name is referenced in the
sourceVolume
parameter of container definitionmountPoints
.- Returns:
- The name of the volume. Up to 255 letters (uppercase and
lowercase), numbers, hyphens, and underscores are allowed. This
name is referenced in the
sourceVolume
parameter of container definitionmountPoints
.
-
withName
The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This name is referenced in the
sourceVolume
parameter of container definitionmountPoints
.- Parameters:
name
- The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This name is referenced in thesourceVolume
parameter of container definitionmountPoints
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHost
The contents of the
host
parameter determine whether your data volume persists on the host container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume, but the data is not guaranteed to persist after the containers associated with it stop running.- Parameters:
host
- The contents of thehost
parameter determine whether your data volume persists on the host container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume, but the data is not guaranteed to persist after the containers associated with it stop running.
-
getHost
The contents of the
host
parameter determine whether your data volume persists on the host container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume, but the data is not guaranteed to persist after the containers associated with it stop running.- Returns:
- The contents of the
host
parameter determine whether your data volume persists on the host container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume, but the data is not guaranteed to persist after the containers associated with it stop running.
-
withHost
The contents of the
host
parameter determine whether your data volume persists on the host container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume, but the data is not guaranteed to persist after the containers associated with it stop running.- Parameters:
host
- The contents of thehost
parameter determine whether your data volume persists on the host container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume, but the data is not guaranteed to persist after the containers associated with it stop running.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-