@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsTaskVolumeDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about a data volume that's used in a task definition.
Constructor and Description |
---|
AwsEcsTaskVolumeDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsTaskVolumeDetails |
clone() |
boolean |
equals(Object obj) |
AwsEcsTaskVolumeHostDetails |
getHost()
This parameter is specified when you use bind mount host volumes.
|
String |
getName()
The name of the volume.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHost(AwsEcsTaskVolumeHostDetails host)
This parameter is specified when you use bind mount host volumes.
|
void |
setName(String name)
The name of the volume.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsTaskVolumeDetails |
withHost(AwsEcsTaskVolumeHostDetails host)
This parameter is specified when you use bind mount host volumes.
|
AwsEcsTaskVolumeDetails |
withName(String name)
The name of the volume.
|
public void setName(String name)
The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are
allowed. This name is referenced in the sourceVolume
parameter of container definition
mountPoints
.
name
- The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are
allowed. This name is referenced in the sourceVolume
parameter of container definition
mountPoints
.public String getName()
The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are
allowed. This name is referenced in the sourceVolume
parameter of container definition
mountPoints
.
sourceVolume
parameter of container definition
mountPoints
.public AwsEcsTaskVolumeDetails withName(String name)
The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are
allowed. This name is referenced in the sourceVolume
parameter of container definition
mountPoints
.
name
- The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are
allowed. This name is referenced in the sourceVolume
parameter of container definition
mountPoints
.public void setHost(AwsEcsTaskVolumeHostDetails host)
This parameter is specified when you use bind mount host volumes. The contents of the host
parameter
determine whether your bind mount host volume persists on the host container instance and where it's stored.
host
- This parameter is specified when you use bind mount host volumes. The contents of the host
parameter determine whether your bind mount host volume persists on the host container instance and where
it's stored.public AwsEcsTaskVolumeHostDetails getHost()
This parameter is specified when you use bind mount host volumes. The contents of the host
parameter
determine whether your bind mount host volume persists on the host container instance and where it's stored.
host
parameter determine whether your bind mount host volume persists on the host container instance and where
it's stored.public AwsEcsTaskVolumeDetails withHost(AwsEcsTaskVolumeHostDetails host)
This parameter is specified when you use bind mount host volumes. The contents of the host
parameter
determine whether your bind mount host volume persists on the host container instance and where it's stored.
host
- This parameter is specified when you use bind mount host volumes. The contents of the host
parameter determine whether your bind mount host volume persists on the host container instance and where
it's stored.public String toString()
toString
in class Object
Object.toString()
public AwsEcsTaskVolumeDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.