@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Volume extends Object implements Serializable, Cloneable, StructuredPojo
A data volume that's used in a job's container properties.
Constructor and Description |
---|
Volume() |
Modifier and Type | Method and Description |
---|---|
Volume |
clone() |
boolean |
equals(Object obj) |
EFSVolumeConfiguration |
getEfsVolumeConfiguration()
This parameter is specified when you're using an Amazon Elastic File System file system for job storage.
|
Host |
getHost()
The contents of the
host parameter determine whether your data volume persists on the host container
instance and where it's stored. |
String |
getName()
The name of the volume.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEfsVolumeConfiguration(EFSVolumeConfiguration efsVolumeConfiguration)
This parameter is specified when you're using an Amazon Elastic File System file system for job storage.
|
void |
setHost(Host host)
The contents of the
host parameter determine whether your data volume persists on the host container
instance and where it's stored. |
void |
setName(String name)
The name of the volume.
|
String |
toString()
Returns a string representation of this object.
|
Volume |
withEfsVolumeConfiguration(EFSVolumeConfiguration efsVolumeConfiguration)
This parameter is specified when you're using an Amazon Elastic File System file system for job storage.
|
Volume |
withHost(Host host)
The contents of the
host parameter determine whether your data volume persists on the host container
instance and where it's stored. |
Volume |
withName(String name)
The name of the volume.
|
public void setHost(Host host)
The contents of the host
parameter determine whether your data volume persists on the host container
instance and where it's stored. If the host 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.
This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
host
- The contents of the host
parameter determine whether your data volume persists on the host
container instance and where it's stored. If the host 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. This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
public Host getHost()
The contents of the host
parameter determine whether your data volume persists on the host container
instance and where it's stored. If the host 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.
This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
host
parameter determine whether your data volume persists on the host
container instance and where it's stored. If the host 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. This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
public Volume withHost(Host host)
The contents of the host
parameter determine whether your data volume persists on the host container
instance and where it's stored. If the host 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.
This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
host
- The contents of the host
parameter determine whether your data volume persists on the host
container instance and where it's stored. If the host 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. This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
public void setName(String name)
The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters,
numbers, hyphens (-), and underscores (_). This name is referenced in the sourceVolume
parameter of
container definition mountPoints
.
name
- The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase
letters, numbers, hyphens (-), and underscores (_). This name is referenced in the
sourceVolume
parameter of container definition mountPoints
.public String getName()
The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters,
numbers, hyphens (-), and underscores (_). This name is referenced in the sourceVolume
parameter of
container definition mountPoints
.
sourceVolume
parameter of container definition mountPoints
.public Volume withName(String name)
The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters,
numbers, hyphens (-), and underscores (_). This name is referenced in the sourceVolume
parameter of
container definition mountPoints
.
name
- The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase
letters, numbers, hyphens (-), and underscores (_). This name is referenced in the
sourceVolume
parameter of container definition mountPoints
.public void setEfsVolumeConfiguration(EFSVolumeConfiguration efsVolumeConfiguration)
This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs
that are running on Fargate resources must specify a platformVersion
of at least 1.4.0
.
efsVolumeConfiguration
- This parameter is specified when you're using an Amazon Elastic File System file system for job storage.
Jobs that are running on Fargate resources must specify a platformVersion
of at least
1.4.0
.public EFSVolumeConfiguration getEfsVolumeConfiguration()
This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs
that are running on Fargate resources must specify a platformVersion
of at least 1.4.0
.
platformVersion
of at least
1.4.0
.public Volume withEfsVolumeConfiguration(EFSVolumeConfiguration efsVolumeConfiguration)
This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs
that are running on Fargate resources must specify a platformVersion
of at least 1.4.0
.
efsVolumeConfiguration
- This parameter is specified when you're using an Amazon Elastic File System file system for job storage.
Jobs that are running on Fargate resources must specify a platformVersion
of at least
1.4.0
.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.