public class RegisterTaskDefinitionRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<ContainerDefinition> |
containerDefinitions
A list of container definitions in JSON format that describe the
different containers that make up your task.
|
private java.lang.String |
family
You must specify a
family for a task definition, which
allows you to track multiple versions of the same task definition. |
private SdkInternalList<Volume> |
volumes
A list of volume definitions in JSON format that containers in your task
may use.
|
NOOP
Constructor and Description |
---|
RegisterTaskDefinitionRequest() |
Modifier and Type | Method and Description |
---|---|
RegisterTaskDefinitionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<ContainerDefinition> |
getContainerDefinitions()
A list of container definitions in JSON format that describe the
different containers that make up your task.
|
java.lang.String |
getFamily()
You must specify a
family for a task definition, which
allows you to track multiple versions of the same task definition. |
java.util.List<Volume> |
getVolumes()
A list of volume definitions in JSON format that containers in your task
may use.
|
int |
hashCode() |
void |
setContainerDefinitions(java.util.Collection<ContainerDefinition> containerDefinitions)
A list of container definitions in JSON format that describe the
different containers that make up your task.
|
void |
setFamily(java.lang.String family)
You must specify a
family for a task definition, which
allows you to track multiple versions of the same task definition. |
void |
setVolumes(java.util.Collection<Volume> volumes)
A list of volume definitions in JSON format that containers in your task
may use.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RegisterTaskDefinitionRequest |
withContainerDefinitions(java.util.Collection<ContainerDefinition> containerDefinitions)
A list of container definitions in JSON format that describe the
different containers that make up your task.
|
RegisterTaskDefinitionRequest |
withContainerDefinitions(ContainerDefinition... containerDefinitions)
A list of container definitions in JSON format that describe the
different containers that make up your task.
|
RegisterTaskDefinitionRequest |
withFamily(java.lang.String family)
You must specify a
family for a task definition, which
allows you to track multiple versions of the same task definition. |
RegisterTaskDefinitionRequest |
withVolumes(java.util.Collection<Volume> volumes)
A list of volume definitions in JSON format that containers in your task
may use.
|
RegisterTaskDefinitionRequest |
withVolumes(Volume... volumes)
A list of volume definitions in JSON format that containers in your task
may use.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String family
You must specify a family
for a task definition, which
allows you to track multiple versions of the same task definition. The
family
is used as a name for your task definition. Up to 255
letters (uppercase and lowercase), numbers, hyphens, and underscores are
allowed.
private SdkInternalList<ContainerDefinition> containerDefinitions
A list of container definitions in JSON format that describe the different containers that make up your task.
private SdkInternalList<Volume> volumes
A list of volume definitions in JSON format that containers in your task may use.
public void setFamily(java.lang.String family)
You must specify a family
for a task definition, which
allows you to track multiple versions of the same task definition. The
family
is used as a name for your task definition. Up to 255
letters (uppercase and lowercase), numbers, hyphens, and underscores are
allowed.
family
- You must specify a family
for a task definition,
which allows you to track multiple versions of the same task
definition. The family
is used as a name for your
task definition. Up to 255 letters (uppercase and lowercase),
numbers, hyphens, and underscores are allowed.public java.lang.String getFamily()
You must specify a family
for a task definition, which
allows you to track multiple versions of the same task definition. The
family
is used as a name for your task definition. Up to 255
letters (uppercase and lowercase), numbers, hyphens, and underscores are
allowed.
family
for a task definition,
which allows you to track multiple versions of the same task
definition. The family
is used as a name for your
task definition. Up to 255 letters (uppercase and lowercase),
numbers, hyphens, and underscores are allowed.public RegisterTaskDefinitionRequest withFamily(java.lang.String family)
You must specify a family
for a task definition, which
allows you to track multiple versions of the same task definition. The
family
is used as a name for your task definition. Up to 255
letters (uppercase and lowercase), numbers, hyphens, and underscores are
allowed.
family
- You must specify a family
for a task definition,
which allows you to track multiple versions of the same task
definition. The family
is used as a name for your
task definition. Up to 255 letters (uppercase and lowercase),
numbers, hyphens, and underscores are allowed.public java.util.List<ContainerDefinition> getContainerDefinitions()
A list of container definitions in JSON format that describe the different containers that make up your task.
public void setContainerDefinitions(java.util.Collection<ContainerDefinition> containerDefinitions)
A list of container definitions in JSON format that describe the different containers that make up your task.
containerDefinitions
- A list of container definitions in JSON format that describe the
different containers that make up your task.public RegisterTaskDefinitionRequest withContainerDefinitions(ContainerDefinition... containerDefinitions)
A list of container definitions in JSON format that describe the different containers that make up your task.
NOTE: This method appends the values to the existing list (if
any). Use setContainerDefinitions(java.util.Collection)
or
withContainerDefinitions(java.util.Collection)
if you want to
override the existing values.
containerDefinitions
- A list of container definitions in JSON format that describe the
different containers that make up your task.public RegisterTaskDefinitionRequest withContainerDefinitions(java.util.Collection<ContainerDefinition> containerDefinitions)
A list of container definitions in JSON format that describe the different containers that make up your task.
containerDefinitions
- A list of container definitions in JSON format that describe the
different containers that make up your task.public java.util.List<Volume> getVolumes()
A list of volume definitions in JSON format that containers in your task may use.
public void setVolumes(java.util.Collection<Volume> volumes)
A list of volume definitions in JSON format that containers in your task may use.
volumes
- A list of volume definitions in JSON format that containers in
your task may use.public RegisterTaskDefinitionRequest withVolumes(Volume... volumes)
A list of volume definitions in JSON format that containers in your task may use.
NOTE: This method appends the values to the existing list (if
any). Use setVolumes(java.util.Collection)
or
withVolumes(java.util.Collection)
if you want to override the
existing values.
volumes
- A list of volume definitions in JSON format that containers in
your task may use.public RegisterTaskDefinitionRequest withVolumes(java.util.Collection<Volume> volumes)
A list of volume definitions in JSON format that containers in your task may use.
volumes
- A list of volume definitions in JSON format that containers in
your task may use.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public RegisterTaskDefinitionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()