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 HostVolumeProperties
clone()
boolean
equals(Object obj)
String
getSourcePath()
The path on the host container instance that is presented to the container.int
hashCode()
void
setSourcePath(String sourcePath)
The path on the host container instance that is presented to the container.String
toString()
Returns a string representation of this object; useful for testing and debugging.HostVolumeProperties
withSourcePath(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
host
parameter contains asourcePath
file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePath
value 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 thehost
parameter contains asourcePath
file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePath
value 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
host
parameter contains asourcePath
file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePath
value 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
host
parameter contains asourcePath
file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePath
value 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
host
parameter contains asourcePath
file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePath
value 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 thehost
parameter contains asourcePath
file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePath
value 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public HostVolumeProperties clone()
-
-