Class RegisterTaskDefinitionRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ecs.model.RegisterTaskDefinitionRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class RegisterTaskDefinitionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description RegisterTaskDefinitionRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegisterTaskDefinitionRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)List<ContainerDefinition>getContainerDefinitions()A list of container definitions in JSON format that describe the different containers that make up your task.StringgetFamily()You must specify afamilyfor a task definition, which allows you to track multiple versions of the same task definition.List<Volume>getVolumes()A list of volume definitions in JSON format that containers in your task may use.inthashCode()voidsetContainerDefinitions(Collection<ContainerDefinition> containerDefinitions)A list of container definitions in JSON format that describe the different containers that make up your task.voidsetFamily(String family)You must specify afamilyfor a task definition, which allows you to track multiple versions of the same task definition.voidsetVolumes(Collection<Volume> volumes)A list of volume definitions in JSON format that containers in your task may use.StringtoString()Returns a string representation of this object; useful for testing and debugging.RegisterTaskDefinitionRequestwithContainerDefinitions(ContainerDefinition... containerDefinitions)A list of container definitions in JSON format that describe the different containers that make up your task.RegisterTaskDefinitionRequestwithContainerDefinitions(Collection<ContainerDefinition> containerDefinitions)A list of container definitions in JSON format that describe the different containers that make up your task.RegisterTaskDefinitionRequestwithFamily(String family)You must specify afamilyfor a task definition, which allows you to track multiple versions of the same task definition.RegisterTaskDefinitionRequestwithVolumes(Volume... volumes)A list of volume definitions in JSON format that containers in your task may use.RegisterTaskDefinitionRequestwithVolumes(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
-
-
-
-
Method Detail
-
setFamily
public void setFamily(String family)
You must specify a
familyfor a task definition, which allows you to track multiple versions of the same task definition. Thefamilyis 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 afamilyfor a task definition, which allows you to track multiple versions of the same task definition. Thefamilyis used as a name for your task definition. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
-
getFamily
public String getFamily()
You must specify a
familyfor a task definition, which allows you to track multiple versions of the same task definition. Thefamilyis 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
familyfor a task definition, which allows you to track multiple versions of the same task definition. Thefamilyis used as a name for your task definition. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
-
withFamily
public RegisterTaskDefinitionRequest withFamily(String family)
You must specify a
familyfor a task definition, which allows you to track multiple versions of the same task definition. Thefamilyis 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 afamilyfor a task definition, which allows you to track multiple versions of the same task definition. Thefamilyis 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
public List<ContainerDefinition> 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
public void setContainerDefinitions(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.
-
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
public List<Volume> 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
public void setVolumes(Collection<Volume> volumes)
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
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)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
public RegisterTaskDefinitionRequest withVolumes(Collection<Volume> volumes)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RegisterTaskDefinitionRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-