@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails extends Object implements Serializable, Cloneable, StructuredPojo
Information about a Docker volume.
Constructor and Description |
---|
AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails |
addDriverOptsEntry(String key,
String value)
Add a single DriverOpts entry
|
AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails |
addLabelsEntry(String key,
String value)
Add a single Labels entry
|
AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails |
clearDriverOptsEntries()
Removes all the entries added into DriverOpts.
|
AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails |
clearLabelsEntries()
Removes all the entries added into Labels.
|
AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAutoprovision()
Whether to create the Docker volume automatically if it does not already exist.
|
String |
getDriver()
The Docker volume driver to use.
|
Map<String,String> |
getDriverOpts()
A map of Docker driver-specific options that are passed through.
|
Map<String,String> |
getLabels()
Custom metadata to add to the Docker volume.
|
String |
getScope()
The scope for the Docker volume that determines its lifecycle.
|
int |
hashCode() |
Boolean |
isAutoprovision()
Whether to create the Docker volume automatically if it does not already exist.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAutoprovision(Boolean autoprovision)
Whether to create the Docker volume automatically if it does not already exist.
|
void |
setDriver(String driver)
The Docker volume driver to use.
|
void |
setDriverOpts(Map<String,String> driverOpts)
A map of Docker driver-specific options that are passed through.
|
void |
setLabels(Map<String,String> labels)
Custom metadata to add to the Docker volume.
|
void |
setScope(String scope)
The scope for the Docker volume that determines its lifecycle.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails |
withAutoprovision(Boolean autoprovision)
Whether to create the Docker volume automatically if it does not already exist.
|
AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails |
withDriver(String driver)
The Docker volume driver to use.
|
AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails |
withDriverOpts(Map<String,String> driverOpts)
A map of Docker driver-specific options that are passed through.
|
AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails |
withLabels(Map<String,String> labels)
Custom metadata to add to the Docker volume.
|
AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails |
withScope(String scope)
The scope for the Docker volume that determines its lifecycle.
|
public AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails()
public void setAutoprovision(Boolean autoprovision)
Whether to create the Docker volume automatically if it does not already exist.
autoprovision
- Whether to create the Docker volume automatically if it does not already exist.public Boolean getAutoprovision()
Whether to create the Docker volume automatically if it does not already exist.
public AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails withAutoprovision(Boolean autoprovision)
Whether to create the Docker volume automatically if it does not already exist.
autoprovision
- Whether to create the Docker volume automatically if it does not already exist.public Boolean isAutoprovision()
Whether to create the Docker volume automatically if it does not already exist.
public void setDriver(String driver)
The Docker volume driver to use.
driver
- The Docker volume driver to use.public String getDriver()
The Docker volume driver to use.
public AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails withDriver(String driver)
The Docker volume driver to use.
driver
- The Docker volume driver to use.public Map<String,String> getDriverOpts()
A map of Docker driver-specific options that are passed through.
public void setDriverOpts(Map<String,String> driverOpts)
A map of Docker driver-specific options that are passed through.
driverOpts
- A map of Docker driver-specific options that are passed through.public AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails withDriverOpts(Map<String,String> driverOpts)
A map of Docker driver-specific options that are passed through.
driverOpts
- A map of Docker driver-specific options that are passed through.public AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails addDriverOptsEntry(String key, String value)
public AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails clearDriverOptsEntries()
public Map<String,String> getLabels()
Custom metadata to add to the Docker volume.
public void setLabels(Map<String,String> labels)
Custom metadata to add to the Docker volume.
labels
- Custom metadata to add to the Docker volume.public AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails withLabels(Map<String,String> labels)
Custom metadata to add to the Docker volume.
labels
- Custom metadata to add to the Docker volume.public AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails addLabelsEntry(String key, String value)
public AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails clearLabelsEntries()
public void setScope(String scope)
The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a task are
provisioned automatically when the task starts and destroyed when the task stops. Docker volumes that are shared
persist after the task stops. Valid values are shared
or task
.
scope
- The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a task
are provisioned automatically when the task starts and destroyed when the task stops. Docker volumes that
are shared persist after the task stops. Valid values are shared
or task
.public String getScope()
The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a task are
provisioned automatically when the task starts and destroyed when the task stops. Docker volumes that are shared
persist after the task stops. Valid values are shared
or task
.
shared
or task
.public AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails withScope(String scope)
The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a task are
provisioned automatically when the task starts and destroyed when the task stops. Docker volumes that are shared
persist after the task stops. Valid values are shared
or task
.
scope
- The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a task
are provisioned automatically when the task starts and destroyed when the task stops. Docker volumes that
are shared persist after the task stops. Valid values are shared
or task
.public String toString()
toString
in class Object
Object.toString()
public AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.