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 Volumeclone()booleanequals(Object obj)HostVolumePropertiesgetHost()The contents of thehostparameter determine whether your data volume persists on the host container instance and where it is stored.StringgetName()The name of the volume.inthashCode()voidsetHost(HostVolumeProperties host)The contents of thehostparameter determine whether your data volume persists on the host container instance and where it is stored.voidsetName(String name)The name of the volume.StringtoString()Returns a string representation of this object; useful for testing and debugging.VolumewithHost(HostVolumeProperties host)The contents of thehostparameter determine whether your data volume persists on the host container instance and where it is stored.VolumewithName(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
sourceVolumeparameter 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 thesourceVolumeparameter 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
sourceVolumeparameter 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
sourceVolumeparameter 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
sourceVolumeparameter 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 thesourceVolumeparameter 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
hostparameter 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 thehostparameter 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
hostparameter 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
hostparameter 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
hostparameter 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 thehostparameter 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-