@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Host extends Object implements Serializable, Cloneable, StructuredPojo
Determine whether your data volume persists on the host container instance and where it's stored. If this parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.
Constructor and Description |
---|
Host() |
Modifier and Type | Method and Description |
---|---|
Host |
clone() |
boolean |
equals(Object obj) |
String |
getSourcePath()
The path on the host container instance that's presented to the container.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSourcePath(String sourcePath)
The path on the host container instance that's presented to the container.
|
String |
toString()
Returns a string representation of this object.
|
Host |
withSourcePath(String sourcePath)
The path on the host container instance that's presented to the container.
|
public void setSourcePath(String sourcePath)
The path on the host container instance that's presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If this parameter contains a file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the source path location doesn't 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.
This parameter isn't applicable to jobs that run on Fargate resources. Don't provide this for these jobs.
sourcePath
- The path on the host container instance that's presented to the container. If this parameter is empty,
then the Docker daemon has assigned a host path for you. If this parameter contains a file location, then
the data volume persists at the specified location on the host container instance until you delete it
manually. If the source path location doesn't 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. This parameter isn't applicable to jobs that run on Fargate resources. Don't provide this for these jobs.
public String getSourcePath()
The path on the host container instance that's presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If this parameter contains a file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the source path location doesn't 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.
This parameter isn't applicable to jobs that run on Fargate resources. Don't provide this for these jobs.
This parameter isn't applicable to jobs that run on Fargate resources. Don't provide this for these jobs.
public Host withSourcePath(String sourcePath)
The path on the host container instance that's presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If this parameter contains a file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the source path location doesn't 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.
This parameter isn't applicable to jobs that run on Fargate resources. Don't provide this for these jobs.
sourcePath
- The path on the host container instance that's presented to the container. If this parameter is empty,
then the Docker daemon has assigned a host path for you. If this parameter contains a file location, then
the data volume persists at the specified location on the host container instance until you delete it
manually. If the source path location doesn't 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. This parameter isn't applicable to jobs that run on Fargate resources. Don't provide this for these jobs.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.