Class HostVolumeProperties
- java.lang.Object
-
- com.amazonaws.services.ecs.model.HostVolumeProperties
-
- All Implemented Interfaces:
Serializable,Cloneable
public class HostVolumeProperties extends Object implements Serializable, Cloneable
Details on a container instance host volume.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HostVolumeProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostVolumePropertiesclone()booleanequals(Object obj)StringgetSourcePath()The path on the host container instance that is presented to the container.inthashCode()voidsetSourcePath(String sourcePath)The path on the host container instance that is presented to the container.StringtoString()Returns a string representation of this object; useful for testing and debugging.HostVolumePropertieswithSourcePath(String sourcePath)The path on the host container instance that is presented to the container.
-
-
-
Method Detail
-
setSourcePath
public void setSourcePath(String sourcePath)
The path on the host container instance that is presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If the
hostparameter contains asourcePathfile location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePathvalue does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.- Parameters:
sourcePath- The path on the host container instance that is presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If thehostparameter contains asourcePathfile location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePathvalue does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.
-
getSourcePath
public String getSourcePath()
The path on the host container instance that is presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If the
hostparameter contains asourcePathfile location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePathvalue does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.- Returns:
- The path on the host container instance that is presented to the
container. If this parameter is empty, then the Docker daemon has
assigned a host path for you. If the
hostparameter contains asourcePathfile location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePathvalue does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.
-
withSourcePath
public HostVolumeProperties withSourcePath(String sourcePath)
The path on the host container instance that is presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If the
hostparameter contains asourcePathfile location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePathvalue does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.- Parameters:
sourcePath- The path on the host container instance that is presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If thehostparameter contains asourcePathfile location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePathvalue does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.- 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()
-
clone
public HostVolumeProperties clone()
-
-