Class Volume
- java.lang.Object
-
- com.amazonaws.services.ecs.model.Volume
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Volume extends Object implements Serializable, Cloneable
A data volume used in a task definition.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Volume()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Volume
clone()
boolean
equals(Object obj)
HostVolumeProperties
getHost()
The contents of thehost
parameter determine whether your data volume persists on the host container instance and where it is stored.String
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
setName(String name)
The name of the volume.String
toString()
Returns a string representation of this object; useful for testing and debugging.Volume
withHost(HostVolumeProperties host)
The contents of thehost
parameter determine whether your data volume persists on the host container instance and where it is stored.Volume
withName(String name)
The name of the volume.
-
-
-
Method Detail
-
setName
public void setName(String name)
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
public String 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
public Volume withName(String name)
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
public void setHost(HostVolumeProperties host)
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
public HostVolumeProperties 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
public Volume withHost(HostVolumeProperties host)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-