/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pipes { namespace Model { /** *

The overrides that are sent to a container.

See Also:

AWS * API Reference

*/ class BatchContainerOverrides { public: AWS_PIPES_API BatchContainerOverrides(); AWS_PIPES_API BatchContainerOverrides(Aws::Utils::Json::JsonView jsonValue); AWS_PIPES_API BatchContainerOverrides& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The command to send to the container that overrides the default command from * the Docker image or the task definition.

*/ inline const Aws::Vector& GetCommand() const{ return m_command; } /** *

The command to send to the container that overrides the default command from * the Docker image or the task definition.

*/ 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.

*/ inline void SetCommand(const Aws::Vector& value) { m_commandHasBeenSet = true; m_command = value; } /** *

The command to send to the container that overrides the default command from * the Docker image or the task definition.

*/ inline void SetCommand(Aws::Vector&& value) { m_commandHasBeenSet = true; m_command = std::move(value); } /** *

The command to send to the container that overrides the default command from * the Docker image or the task definition.

*/ inline BatchContainerOverrides& WithCommand(const Aws::Vector& value) { SetCommand(value); return *this;} /** *

The command to send to the container that overrides the default command from * the Docker image or the task definition.

*/ inline BatchContainerOverrides& WithCommand(Aws::Vector&& value) { SetCommand(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.

*/ inline BatchContainerOverrides& 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.

*/ inline BatchContainerOverrides& 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.

*/ inline BatchContainerOverrides& 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.

Environment variables cannot start with * "Batch". This naming convention is reserved for variables that * Batch sets.

*/ inline const Aws::Vector& GetEnvironment() const{ return m_environment; } /** *

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.

Environment variables cannot start with * "Batch". This naming convention is reserved for variables that * Batch sets.

*/ 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.

Environment variables cannot start with * "Batch". This naming convention is reserved for variables that * Batch sets.

*/ inline void SetEnvironment(const Aws::Vector& value) { m_environmentHasBeenSet = true; m_environment = value; } /** *

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.

Environment variables cannot start with * "Batch". This naming convention is reserved for variables that * Batch sets.

*/ inline void SetEnvironment(Aws::Vector&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); } /** *

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.

Environment variables cannot start with * "Batch". This naming convention is reserved for variables that * Batch sets.

*/ inline BatchContainerOverrides& WithEnvironment(const Aws::Vector& value) { SetEnvironment(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.

Environment variables cannot start with * "Batch". This naming convention is reserved for variables that * Batch sets.

*/ inline BatchContainerOverrides& WithEnvironment(Aws::Vector&& value) { SetEnvironment(std::move(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.

Environment variables cannot start with * "Batch". This naming convention is reserved for variables that * Batch sets.

*/ inline BatchContainerOverrides& AddEnvironment(const BatchEnvironmentVariable& 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.

Environment variables cannot start with * "Batch". This naming convention is reserved for variables that * Batch sets.

*/ inline BatchContainerOverrides& AddEnvironment(BatchEnvironmentVariable&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; } /** *

The instance type to use for a multi-node parallel job.

This * parameter isn't applicable to single-node container jobs or jobs that run on * Fargate resources, and shouldn't be provided.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

The instance type to use for a multi-node parallel job.

This * parameter isn't applicable to single-node container jobs or jobs that run on * Fargate resources, and shouldn't be provided.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The instance type to use for a multi-node parallel job.

This * parameter isn't applicable to single-node container jobs or jobs that run on * Fargate resources, and shouldn't be provided.

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The instance type to use for a multi-node parallel job.

This * parameter isn't applicable to single-node container jobs or jobs that run on * Fargate resources, and shouldn't be provided.

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The instance type to use for a multi-node parallel job.

This * parameter isn't applicable to single-node container jobs or jobs that run on * Fargate resources, and shouldn't be provided.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

The instance type to use for a multi-node parallel job.

This * parameter isn't applicable to single-node container jobs or jobs that run on * Fargate resources, and shouldn't be provided.

*/ inline BatchContainerOverrides& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

The instance type to use for a multi-node parallel job.

This * parameter isn't applicable to single-node container jobs or jobs that run on * Fargate resources, and shouldn't be provided.

*/ inline BatchContainerOverrides& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The instance type to use for a multi-node parallel job.

This * parameter isn't applicable to single-node container jobs or jobs that run on * Fargate resources, and shouldn't be provided.

*/ inline BatchContainerOverrides& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

The type and amount of resources to assign to a container. This overrides the * settings in the job definition. The supported resources include * GPU, MEMORY, and VCPU.

*/ inline const Aws::Vector& GetResourceRequirements() const{ return m_resourceRequirements; } /** *

The type and amount of resources to assign to a container. This overrides the * settings in the job definition. The supported resources include * GPU, MEMORY, and VCPU.

*/ inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; } /** *

The type and amount of resources to assign to a container. This overrides the * settings in the job definition. The supported resources include * GPU, MEMORY, and VCPU.

*/ inline void SetResourceRequirements(const Aws::Vector& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = value; } /** *

The type and amount of resources to assign to a container. This overrides the * settings in the job definition. The supported resources include * GPU, MEMORY, and VCPU.

*/ inline void SetResourceRequirements(Aws::Vector&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = std::move(value); } /** *

The type and amount of resources to assign to a container. This overrides the * settings in the job definition. The supported resources include * GPU, MEMORY, and VCPU.

*/ inline BatchContainerOverrides& WithResourceRequirements(const Aws::Vector& value) { SetResourceRequirements(value); return *this;} /** *

The type and amount of resources to assign to a container. This overrides the * settings in the job definition. The supported resources include * GPU, MEMORY, and VCPU.

*/ inline BatchContainerOverrides& WithResourceRequirements(Aws::Vector&& value) { SetResourceRequirements(std::move(value)); return *this;} /** *

The type and amount of resources to assign to a container. This overrides the * settings in the job definition. The supported resources include * GPU, MEMORY, and VCPU.

*/ inline BatchContainerOverrides& AddResourceRequirements(const BatchResourceRequirement& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(value); return *this; } /** *

The type and amount of resources to assign to a container. This overrides the * settings in the job definition. The supported resources include * GPU, MEMORY, and VCPU.

*/ inline BatchContainerOverrides& AddResourceRequirements(BatchResourceRequirement&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(std::move(value)); return *this; } private: Aws::Vector m_command; bool m_commandHasBeenSet = false; Aws::Vector m_environment; bool m_environmentHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::Vector m_resourceRequirements; bool m_resourceRequirementsHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws