Class RegisterTaskDefinitionRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
A list of container definitions in JSON format that describe the different containers that make up your task.You must specify afamily
for a task definition, which allows you to track multiple versions of the same task definition.A list of volume definitions in JSON format that containers in your task may use.int
hashCode()
void
setContainerDefinitions
(Collection<ContainerDefinition> containerDefinitions) A list of container definitions in JSON format that describe the different containers that make up your task.void
You must specify afamily
for a task definition, which allows you to track multiple versions of the same task definition.void
setVolumes
(Collection<Volume> volumes) A list of volume definitions in JSON format that containers in your task may use.toString()
Returns a string representation of this object; useful for testing and debugging.withContainerDefinitions
(ContainerDefinition... containerDefinitions) A list of container definitions in JSON format that describe the different containers that make up your task.withContainerDefinitions
(Collection<ContainerDefinition> containerDefinitions) A list of container definitions in JSON format that describe the different containers that make up your task.withFamily
(String family) You must specify afamily
for a task definition, which allows you to track multiple versions of the same task definition.withVolumes
(Volume... volumes) A list of volume definitions in JSON format that containers in your task may use.withVolumes
(Collection<Volume> volumes) A list of volume definitions in JSON format that containers in your task may use.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
RegisterTaskDefinitionRequest
public RegisterTaskDefinitionRequest()
-
-
Method Details
-
setFamily
You must specify a
family
for a task definition, which allows you to track multiple versions of the same task definition. Thefamily
is used as a name for your task definition. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.- Parameters:
family
- You must specify afamily
for a task definition, which allows you to track multiple versions of the same task definition. Thefamily
is used as a name for your task definition. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
-
getFamily
You must specify a
family
for a task definition, which allows you to track multiple versions of the same task definition. Thefamily
is used as a name for your task definition. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.- Returns:
- You must specify a
family
for a task definition, which allows you to track multiple versions of the same task definition. Thefamily
is used as a name for your task definition. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
-
withFamily
You must specify a
family
for a task definition, which allows you to track multiple versions of the same task definition. Thefamily
is used as a name for your task definition. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.- Parameters:
family
- You must specify afamily
for a task definition, which allows you to track multiple versions of the same task definition. Thefamily
is used as a name for your task definition. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getContainerDefinitions
A list of container definitions in JSON format that describe the different containers that make up your task.
- Returns:
- A list of container definitions in JSON format that describe the different containers that make up your task.
-
setContainerDefinitions
A list of container definitions in JSON format that describe the different containers that make up your task.
- Parameters:
containerDefinitions
- A list of container definitions in JSON format that describe the different containers that make up your task.
-
withContainerDefinitions
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)
orwithContainerDefinitions(java.util.Collection)
if you want to override the existing values.- Parameters:
containerDefinitions
- A list of container definitions in JSON format that describe the different containers that make up your task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withContainerDefinitions
public RegisterTaskDefinitionRequest withContainerDefinitions(Collection<ContainerDefinition> containerDefinitions) A list of container definitions in JSON format that describe the different containers that make up your task.
- Parameters:
containerDefinitions
- A list of container definitions in JSON format that describe the different containers that make up your task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getVolumes
A list of volume definitions in JSON format that containers in your task may use.
- Returns:
- A list of volume definitions in JSON format that containers in your task may use.
-
setVolumes
A list of volume definitions in JSON format that containers in your task may use.
- Parameters:
volumes
- A list of volume definitions in JSON format that containers in your task may use.
-
withVolumes
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)
orwithVolumes(java.util.Collection)
if you want to override the existing values.- Parameters:
volumes
- A list of volume definitions in JSON format that containers in your task may use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withVolumes
A list of volume definitions in JSON format that containers in your task may use.
- Parameters:
volumes
- A list of volume definitions in JSON format that containers in your task may use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-