@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceVolumeConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The configuration for a volume specified in the task definition as a volume that is configured at launch time. Currently, the only supported volume type is an Amazon EBS volume.
Constructor and Description |
---|
ServiceVolumeConfiguration() |
Modifier and Type | Method and Description |
---|---|
ServiceVolumeConfiguration |
clone() |
boolean |
equals(Object obj) |
ServiceManagedEBSVolumeConfiguration |
getManagedEBSVolume()
The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.
|
String |
getName()
The name of the volume.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setManagedEBSVolume(ServiceManagedEBSVolumeConfiguration managedEBSVolume)
The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.
|
void |
setName(String name)
The name of the volume.
|
String |
toString()
Returns a string representation of this object.
|
ServiceVolumeConfiguration |
withManagedEBSVolume(ServiceManagedEBSVolumeConfiguration managedEBSVolume)
The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.
|
ServiceVolumeConfiguration |
withName(String name)
The name of the volume.
|
public void setName(String name)
The name of the volume. This value must match the volume name from the Volume
object in the task
definition.
name
- The name of the volume. This value must match the volume name from the Volume
object in the
task definition.public String getName()
The name of the volume. This value must match the volume name from the Volume
object in the task
definition.
Volume
object in the
task definition.public ServiceVolumeConfiguration withName(String name)
The name of the volume. This value must match the volume name from the Volume
object in the task
definition.
name
- The name of the volume. This value must match the volume name from the Volume
object in the
task definition.public void setManagedEBSVolume(ServiceManagedEBSVolumeConfiguration managedEBSVolume)
The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task in the service. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.
managedEBSVolume
- The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These
settings are used to create each Amazon EBS volume, with one volume created for each task in the service.
The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.public ServiceManagedEBSVolumeConfiguration getManagedEBSVolume()
The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task in the service. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.
public ServiceVolumeConfiguration withManagedEBSVolume(ServiceManagedEBSVolumeConfiguration managedEBSVolume)
The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task in the service. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.
managedEBSVolume
- The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These
settings are used to create each Amazon EBS volume, with one volume created for each task in the service.
The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.public String toString()
toString
in class Object
Object.toString()
public ServiceVolumeConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.