/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The overrides that are sent to a container. An empty container override can
* be passed in. An example of an empty container override is
* {"containerOverrides": [ ] }
. If a non-empty container override is
* specified, the name
parameter must be included.See
* Also:
AWS
* API Reference
The name of the container that receives the override. This parameter is * required if any override is specified.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the container that receives the override. This parameter is * required if any override is specified.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the container that receives the override. This parameter is * required if any override is specified.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the container that receives the override. This parameter is * required if any override is specified.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the container that receives the override. This parameter is * required if any override is specified.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the container that receives the override. This parameter is * required if any override is specified.
*/ inline ContainerOverride& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the container that receives the override. This parameter is * required if any override is specified.
*/ inline ContainerOverride& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the container that receives the override. This parameter is * required if any override is specified.
*/ inline ContainerOverride& WithName(const char* value) { SetName(value); return *this;} /** *The command to send to the container that overrides the default command from * the Docker image or the task definition. You must also specify a container * name.
*/ inline const Aws::VectorThe command to send to the container that overrides the default command from * the Docker image or the task definition. You must also specify a container * name.
*/ inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; } /** *The command to send to the container that overrides the default command from * the Docker image or the task definition. You must also specify a container * name.
*/ inline void SetCommand(const Aws::VectorThe command to send to the container that overrides the default command from * the Docker image or the task definition. You must also specify a container * name.
*/ inline void SetCommand(Aws::VectorThe command to send to the container that overrides the default command from * the Docker image or the task definition. You must also specify a container * name.
*/ inline ContainerOverride& WithCommand(const Aws::VectorThe command to send to the container that overrides the default command from * the Docker image or the task definition. You must also specify a container * name.
*/ inline ContainerOverride& WithCommand(Aws::VectorThe command to send to the container that overrides the default command from * the Docker image or the task definition. You must also specify a container * name.
*/ inline ContainerOverride& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; } /** *The command to send to the container that overrides the default command from * the Docker image or the task definition. You must also specify a container * name.
*/ inline ContainerOverride& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; } /** *The command to send to the container that overrides the default command from * the Docker image or the task definition. You must also specify a container * name.
*/ inline ContainerOverride& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; } /** *The environment variables to send to the container. You can add new * environment variables, which are added to the container at launch, or you can * override the existing environment variables from the Docker image or the task * definition. You must also specify a container name.
*/ inline const Aws::VectorThe environment variables to send to the container. You can add new * environment variables, which are added to the container at launch, or you can * override the existing environment variables from the Docker image or the task * definition. You must also specify a container name.
*/ inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; } /** *The environment variables to send to the container. You can add new * environment variables, which are added to the container at launch, or you can * override the existing environment variables from the Docker image or the task * definition. You must also specify a container name.
*/ inline void SetEnvironment(const Aws::VectorThe environment variables to send to the container. You can add new * environment variables, which are added to the container at launch, or you can * override the existing environment variables from the Docker image or the task * definition. You must also specify a container name.
*/ inline void SetEnvironment(Aws::VectorThe environment variables to send to the container. You can add new * environment variables, which are added to the container at launch, or you can * override the existing environment variables from the Docker image or the task * definition. You must also specify a container name.
*/ inline ContainerOverride& WithEnvironment(const Aws::VectorThe environment variables to send to the container. You can add new * environment variables, which are added to the container at launch, or you can * override the existing environment variables from the Docker image or the task * definition. You must also specify a container name.
*/ inline ContainerOverride& WithEnvironment(Aws::VectorThe environment variables to send to the container. You can add new * environment variables, which are added to the container at launch, or you can * override the existing environment variables from the Docker image or the task * definition. You must also specify a container name.
*/ inline ContainerOverride& AddEnvironment(const KeyValuePair& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; } /** *The environment variables to send to the container. You can add new * environment variables, which are added to the container at launch, or you can * override the existing environment variables from the Docker image or the task * definition. You must also specify a container name.
*/ inline ContainerOverride& AddEnvironment(KeyValuePair&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; } /** *A list of files containing the environment variables to pass to a container, * instead of the value from the container definition.
*/ inline const Aws::VectorA list of files containing the environment variables to pass to a container, * instead of the value from the container definition.
*/ inline bool EnvironmentFilesHasBeenSet() const { return m_environmentFilesHasBeenSet; } /** *A list of files containing the environment variables to pass to a container, * instead of the value from the container definition.
*/ inline void SetEnvironmentFiles(const Aws::VectorA list of files containing the environment variables to pass to a container, * instead of the value from the container definition.
*/ inline void SetEnvironmentFiles(Aws::VectorA list of files containing the environment variables to pass to a container, * instead of the value from the container definition.
*/ inline ContainerOverride& WithEnvironmentFiles(const Aws::VectorA list of files containing the environment variables to pass to a container, * instead of the value from the container definition.
*/ inline ContainerOverride& WithEnvironmentFiles(Aws::VectorA list of files containing the environment variables to pass to a container, * instead of the value from the container definition.
*/ inline ContainerOverride& AddEnvironmentFiles(const EnvironmentFile& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles.push_back(value); return *this; } /** *A list of files containing the environment variables to pass to a container, * instead of the value from the container definition.
*/ inline ContainerOverride& AddEnvironmentFiles(EnvironmentFile&& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles.push_back(std::move(value)); return *this; } /** *The number of cpu
units reserved for the container, instead of
* the default value from the task definition. You must also specify a container
* name.
The number of cpu
units reserved for the container, instead of
* the default value from the task definition. You must also specify a container
* name.
The number of cpu
units reserved for the container, instead of
* the default value from the task definition. You must also specify a container
* name.
The number of cpu
units reserved for the container, instead of
* the default value from the task definition. You must also specify a container
* name.
The hard limit (in MiB) of memory to present to the container, instead of the * default value from the task definition. If your container attempts to exceed the * memory specified here, the container is killed. You must also specify a * container name.
*/ inline int GetMemory() const{ return m_memory; } /** *The hard limit (in MiB) of memory to present to the container, instead of the * default value from the task definition. If your container attempts to exceed the * memory specified here, the container is killed. You must also specify a * container name.
*/ inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; } /** *The hard limit (in MiB) of memory to present to the container, instead of the * default value from the task definition. If your container attempts to exceed the * memory specified here, the container is killed. You must also specify a * container name.
*/ inline void SetMemory(int value) { m_memoryHasBeenSet = true; m_memory = value; } /** *The hard limit (in MiB) of memory to present to the container, instead of the * default value from the task definition. If your container attempts to exceed the * memory specified here, the container is killed. You must also specify a * container name.
*/ inline ContainerOverride& WithMemory(int value) { SetMemory(value); return *this;} /** *The soft limit (in MiB) of memory to reserve for the container, instead of * the default value from the task definition. You must also specify a container * name.
*/ inline int GetMemoryReservation() const{ return m_memoryReservation; } /** *The soft limit (in MiB) of memory to reserve for the container, instead of * the default value from the task definition. You must also specify a container * name.
*/ inline bool MemoryReservationHasBeenSet() const { return m_memoryReservationHasBeenSet; } /** *The soft limit (in MiB) of memory to reserve for the container, instead of * the default value from the task definition. You must also specify a container * name.
*/ inline void SetMemoryReservation(int value) { m_memoryReservationHasBeenSet = true; m_memoryReservation = value; } /** *The soft limit (in MiB) of memory to reserve for the container, instead of * the default value from the task definition. You must also specify a container * name.
*/ inline ContainerOverride& WithMemoryReservation(int value) { SetMemoryReservation(value); return *this;} /** *The type and amount of a resource to assign to a container, instead of the * default value from the task definition. The only supported resource is a * GPU.
*/ inline const Aws::VectorThe type and amount of a resource to assign to a container, instead of the * default value from the task definition. The only supported resource is a * GPU.
*/ inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; } /** *The type and amount of a resource to assign to a container, instead of the * default value from the task definition. The only supported resource is a * GPU.
*/ inline void SetResourceRequirements(const Aws::VectorThe type and amount of a resource to assign to a container, instead of the * default value from the task definition. The only supported resource is a * GPU.
*/ inline void SetResourceRequirements(Aws::VectorThe type and amount of a resource to assign to a container, instead of the * default value from the task definition. The only supported resource is a * GPU.
*/ inline ContainerOverride& WithResourceRequirements(const Aws::VectorThe type and amount of a resource to assign to a container, instead of the * default value from the task definition. The only supported resource is a * GPU.
*/ inline ContainerOverride& WithResourceRequirements(Aws::VectorThe type and amount of a resource to assign to a container, instead of the * default value from the task definition. The only supported resource is a * GPU.
*/ inline ContainerOverride& AddResourceRequirements(const ResourceRequirement& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(value); return *this; } /** *The type and amount of a resource to assign to a container, instead of the * default value from the task definition. The only supported resource is a * GPU.
*/ inline ContainerOverride& AddResourceRequirements(ResourceRequirement&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector