@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateContainerGroupDefinitionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateContainerGroupDefinitionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateContainerGroupDefinitionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<ContainerDefinitionInput> |
getContainerDefinitions()
Definitions for all containers in this group.
|
String |
getName()
A descriptive identifier for the container group definition.
|
String |
getOperatingSystem()
The platform that is used by containers in the container group definition.
|
String |
getSchedulingStrategy()
The method for deploying the container group across fleet instances.
|
List<Tag> |
getTags()
A list of labels to assign to the container group definition resource.
|
Integer |
getTotalCpuLimit()
The maximum amount of CPU units to allocate to the container group.
|
Integer |
getTotalMemoryLimit()
The maximum amount of memory (in MiB) to allocate to the container group.
|
int |
hashCode() |
void |
setContainerDefinitions(Collection<ContainerDefinitionInput> containerDefinitions)
Definitions for all containers in this group.
|
void |
setName(String name)
A descriptive identifier for the container group definition.
|
void |
setOperatingSystem(String operatingSystem)
The platform that is used by containers in the container group definition.
|
void |
setSchedulingStrategy(String schedulingStrategy)
The method for deploying the container group across fleet instances.
|
void |
setTags(Collection<Tag> tags)
A list of labels to assign to the container group definition resource.
|
void |
setTotalCpuLimit(Integer totalCpuLimit)
The maximum amount of CPU units to allocate to the container group.
|
void |
setTotalMemoryLimit(Integer totalMemoryLimit)
The maximum amount of memory (in MiB) to allocate to the container group.
|
String |
toString()
Returns a string representation of this object.
|
CreateContainerGroupDefinitionRequest |
withContainerDefinitions(Collection<ContainerDefinitionInput> containerDefinitions)
Definitions for all containers in this group.
|
CreateContainerGroupDefinitionRequest |
withContainerDefinitions(ContainerDefinitionInput... containerDefinitions)
Definitions for all containers in this group.
|
CreateContainerGroupDefinitionRequest |
withName(String name)
A descriptive identifier for the container group definition.
|
CreateContainerGroupDefinitionRequest |
withOperatingSystem(ContainerOperatingSystem operatingSystem)
The platform that is used by containers in the container group definition.
|
CreateContainerGroupDefinitionRequest |
withOperatingSystem(String operatingSystem)
The platform that is used by containers in the container group definition.
|
CreateContainerGroupDefinitionRequest |
withSchedulingStrategy(ContainerSchedulingStrategy schedulingStrategy)
The method for deploying the container group across fleet instances.
|
CreateContainerGroupDefinitionRequest |
withSchedulingStrategy(String schedulingStrategy)
The method for deploying the container group across fleet instances.
|
CreateContainerGroupDefinitionRequest |
withTags(Collection<Tag> tags)
A list of labels to assign to the container group definition resource.
|
CreateContainerGroupDefinitionRequest |
withTags(Tag... tags)
A list of labels to assign to the container group definition resource.
|
CreateContainerGroupDefinitionRequest |
withTotalCpuLimit(Integer totalCpuLimit)
The maximum amount of CPU units to allocate to the container group.
|
CreateContainerGroupDefinitionRequest |
withTotalMemoryLimit(Integer totalMemoryLimit)
The maximum amount of memory (in MiB) to allocate to the container group.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public CreateContainerGroupDefinitionRequest()
public void setName(String name)
A descriptive identifier for the container group definition. The name value must be unique in an Amazon Web Services Region.
name
- A descriptive identifier for the container group definition. The name value must be unique in an Amazon
Web Services Region.public String getName()
A descriptive identifier for the container group definition. The name value must be unique in an Amazon Web Services Region.
public CreateContainerGroupDefinitionRequest withName(String name)
A descriptive identifier for the container group definition. The name value must be unique in an Amazon Web Services Region.
name
- A descriptive identifier for the container group definition. The name value must be unique in an Amazon
Web Services Region.public void setSchedulingStrategy(String schedulingStrategy)
The method for deploying the container group across fleet instances. A replica container group might have
multiple copies on each fleet instance. A daemon container group has one copy per fleet instance. Default value
is REPLICA
.
schedulingStrategy
- The method for deploying the container group across fleet instances. A replica container group might have
multiple copies on each fleet instance. A daemon container group has one copy per fleet instance. Default
value is REPLICA
.ContainerSchedulingStrategy
public String getSchedulingStrategy()
The method for deploying the container group across fleet instances. A replica container group might have
multiple copies on each fleet instance. A daemon container group has one copy per fleet instance. Default value
is REPLICA
.
REPLICA
.ContainerSchedulingStrategy
public CreateContainerGroupDefinitionRequest withSchedulingStrategy(String schedulingStrategy)
The method for deploying the container group across fleet instances. A replica container group might have
multiple copies on each fleet instance. A daemon container group has one copy per fleet instance. Default value
is REPLICA
.
schedulingStrategy
- The method for deploying the container group across fleet instances. A replica container group might have
multiple copies on each fleet instance. A daemon container group has one copy per fleet instance. Default
value is REPLICA
.ContainerSchedulingStrategy
public CreateContainerGroupDefinitionRequest withSchedulingStrategy(ContainerSchedulingStrategy schedulingStrategy)
The method for deploying the container group across fleet instances. A replica container group might have
multiple copies on each fleet instance. A daemon container group has one copy per fleet instance. Default value
is REPLICA
.
schedulingStrategy
- The method for deploying the container group across fleet instances. A replica container group might have
multiple copies on each fleet instance. A daemon container group has one copy per fleet instance. Default
value is REPLICA
.ContainerSchedulingStrategy
public void setTotalMemoryLimit(Integer totalMemoryLimit)
The maximum amount of memory (in MiB) to allocate to the container group. All containers in the group share this memory. If you specify memory limits for individual containers, set this parameter based on the following guidelines. The value must be (1) greater than the sum of the soft memory limits for all containers in the group, and (2) greater than any individual container's hard memory limit.
totalMemoryLimit
- The maximum amount of memory (in MiB) to allocate to the container group. All containers in the group
share this memory. If you specify memory limits for individual containers, set this parameter based on the
following guidelines. The value must be (1) greater than the sum of the soft memory limits for all
containers in the group, and (2) greater than any individual container's hard memory limit.public Integer getTotalMemoryLimit()
The maximum amount of memory (in MiB) to allocate to the container group. All containers in the group share this memory. If you specify memory limits for individual containers, set this parameter based on the following guidelines. The value must be (1) greater than the sum of the soft memory limits for all containers in the group, and (2) greater than any individual container's hard memory limit.
public CreateContainerGroupDefinitionRequest withTotalMemoryLimit(Integer totalMemoryLimit)
The maximum amount of memory (in MiB) to allocate to the container group. All containers in the group share this memory. If you specify memory limits for individual containers, set this parameter based on the following guidelines. The value must be (1) greater than the sum of the soft memory limits for all containers in the group, and (2) greater than any individual container's hard memory limit.
totalMemoryLimit
- The maximum amount of memory (in MiB) to allocate to the container group. All containers in the group
share this memory. If you specify memory limits for individual containers, set this parameter based on the
following guidelines. The value must be (1) greater than the sum of the soft memory limits for all
containers in the group, and (2) greater than any individual container's hard memory limit.public void setTotalCpuLimit(Integer totalCpuLimit)
The maximum amount of CPU units to allocate to the container group. Set this parameter to an integer value in CPU units (1 vCPU is equal to 1024 CPU units). All containers in the group share this memory. If you specify CPU limits for individual containers, set this parameter based on the following guidelines. The value must be equal to or greater than the sum of the CPU limits for all containers in the group.
totalCpuLimit
- The maximum amount of CPU units to allocate to the container group. Set this parameter to an integer value
in CPU units (1 vCPU is equal to 1024 CPU units). All containers in the group share this memory. If you
specify CPU limits for individual containers, set this parameter based on the following guidelines. The
value must be equal to or greater than the sum of the CPU limits for all containers in the group.public Integer getTotalCpuLimit()
The maximum amount of CPU units to allocate to the container group. Set this parameter to an integer value in CPU units (1 vCPU is equal to 1024 CPU units). All containers in the group share this memory. If you specify CPU limits for individual containers, set this parameter based on the following guidelines. The value must be equal to or greater than the sum of the CPU limits for all containers in the group.
public CreateContainerGroupDefinitionRequest withTotalCpuLimit(Integer totalCpuLimit)
The maximum amount of CPU units to allocate to the container group. Set this parameter to an integer value in CPU units (1 vCPU is equal to 1024 CPU units). All containers in the group share this memory. If you specify CPU limits for individual containers, set this parameter based on the following guidelines. The value must be equal to or greater than the sum of the CPU limits for all containers in the group.
totalCpuLimit
- The maximum amount of CPU units to allocate to the container group. Set this parameter to an integer value
in CPU units (1 vCPU is equal to 1024 CPU units). All containers in the group share this memory. If you
specify CPU limits for individual containers, set this parameter based on the following guidelines. The
value must be equal to or greater than the sum of the CPU limits for all containers in the group.public List<ContainerDefinitionInput> getContainerDefinitions()
Definitions for all containers in this group. Each container definition identifies the container image and specifies configuration settings for the container. See the Container fleet design guide for container guidelines.
public void setContainerDefinitions(Collection<ContainerDefinitionInput> containerDefinitions)
Definitions for all containers in this group. Each container definition identifies the container image and specifies configuration settings for the container. See the Container fleet design guide for container guidelines.
containerDefinitions
- Definitions for all containers in this group. Each container definition identifies the container image and
specifies configuration settings for the container. See the Container
fleet design guide for container guidelines.public CreateContainerGroupDefinitionRequest withContainerDefinitions(ContainerDefinitionInput... containerDefinitions)
Definitions for all containers in this group. Each container definition identifies the container image and specifies configuration settings for the container. See the Container fleet design guide for container guidelines.
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
- Definitions for all containers in this group. Each container definition identifies the container image and
specifies configuration settings for the container. See the Container
fleet design guide for container guidelines.public CreateContainerGroupDefinitionRequest withContainerDefinitions(Collection<ContainerDefinitionInput> containerDefinitions)
Definitions for all containers in this group. Each container definition identifies the container image and specifies configuration settings for the container. See the Container fleet design guide for container guidelines.
containerDefinitions
- Definitions for all containers in this group. Each container definition identifies the container image and
specifies configuration settings for the container. See the Container
fleet design guide for container guidelines.public void setOperatingSystem(String operatingSystem)
The platform that is used by containers in the container group definition. All containers in a group must run on the same operating system.
operatingSystem
- The platform that is used by containers in the container group definition. All containers in a group must
run on the same operating system.ContainerOperatingSystem
public String getOperatingSystem()
The platform that is used by containers in the container group definition. All containers in a group must run on the same operating system.
ContainerOperatingSystem
public CreateContainerGroupDefinitionRequest withOperatingSystem(String operatingSystem)
The platform that is used by containers in the container group definition. All containers in a group must run on the same operating system.
operatingSystem
- The platform that is used by containers in the container group definition. All containers in a group must
run on the same operating system.ContainerOperatingSystem
public CreateContainerGroupDefinitionRequest withOperatingSystem(ContainerOperatingSystem operatingSystem)
The platform that is used by containers in the container group definition. All containers in a group must run on the same operating system.
operatingSystem
- The platform that is used by containers in the container group definition. All containers in a group must
run on the same operating system.ContainerOperatingSystem
public List<Tag> getTags()
A list of labels to assign to the container group definition resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
public void setTags(Collection<Tag> tags)
A list of labels to assign to the container group definition resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
tags
- A list of labels to assign to the container group definition resource. Tags are developer-defined
key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access
management and cost allocation. For more information, see Tagging Amazon Web Services
Resources in the Amazon Web Services General Reference.public CreateContainerGroupDefinitionRequest withTags(Tag... tags)
A list of labels to assign to the container group definition resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of labels to assign to the container group definition resource. Tags are developer-defined
key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access
management and cost allocation. For more information, see Tagging Amazon Web Services
Resources in the Amazon Web Services General Reference.public CreateContainerGroupDefinitionRequest withTags(Collection<Tag> tags)
A list of labels to assign to the container group definition resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
tags
- A list of labels to assign to the container group definition resource. Tags are developer-defined
key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access
management and cost allocation. For more information, see Tagging Amazon Web Services
Resources in the Amazon Web Services General Reference.public String toString()
toString
in class Object
Object.toString()
public CreateContainerGroupDefinitionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()