7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/KeyValuePair.h>
11#include <aws/batch/model/ResourceRequirement.h>
54 template<
typename CommandT = Aws::Vector<Aws::String>>
55 void SetCommand(CommandT&& value) { m_commandHasBeenSet =
true; m_command = std::forward<CommandT>(value); }
56 template<
typename CommandT = Aws::Vector<Aws::String>>
58 template<
typename CommandT = Aws::String>
59 ContainerOverrides&
AddCommand(CommandT&& value) { m_commandHasBeenSet =
true; m_command.emplace_back(std::forward<CommandT>(value));
return *
this; }
70 template<
typename InstanceTypeT = Aws::String>
71 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet =
true; m_instanceType = std::forward<InstanceTypeT>(value); }
72 template<
typename InstanceTypeT = Aws::String>
87 template<
typename EnvironmentT = Aws::Vector<KeyValuePair>>
88 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment = std::forward<EnvironmentT>(value); }
89 template<
typename EnvironmentT = Aws::Vector<KeyValuePair>>
91 template<
typename EnvironmentT = KeyValuePair>
92 ContainerOverrides&
AddEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment.emplace_back(std::forward<EnvironmentT>(value));
return *
this; }
103 template<
typename ResourceRequirementsT = Aws::Vector<ResourceRequirement>>
104 void SetResourceRequirements(ResourceRequirementsT&& value) { m_resourceRequirementsHasBeenSet =
true; m_resourceRequirements = std::forward<ResourceRequirementsT>(value); }
105 template<
typename ResourceRequirementsT = Aws::Vector<ResourceRequirement>>
107 template<
typename ResourceRequirementsT = ResourceRequirement>
113 bool m_commandHasBeenSet =
false;
116 bool m_instanceTypeHasBeenSet =
false;
119 bool m_environmentHasBeenSet =
false;
122 bool m_resourceRequirementsHasBeenSet =
false;
AWS_BATCH_API ContainerOverrides()=default
ContainerOverrides & WithCommand(CommandT &&value)
const Aws::Vector< KeyValuePair > & GetEnvironment() const
void SetResourceRequirements(ResourceRequirementsT &&value)
bool EnvironmentHasBeenSet() const
AWS_BATCH_API ContainerOverrides & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceType() const
AWS_BATCH_API ContainerOverrides(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetCommand() const
bool CommandHasBeenSet() const
void SetEnvironment(EnvironmentT &&value)
void SetInstanceType(InstanceTypeT &&value)
ContainerOverrides & AddResourceRequirements(ResourceRequirementsT &&value)
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
bool ResourceRequirementsHasBeenSet() const
ContainerOverrides & WithEnvironment(EnvironmentT &&value)
ContainerOverrides & AddCommand(CommandT &&value)
ContainerOverrides & AddEnvironment(EnvironmentT &&value)
ContainerOverrides & WithInstanceType(InstanceTypeT &&value)
ContainerOverrides & WithResourceRequirements(ResourceRequirementsT &&value)
void SetCommand(CommandT &&value)
bool InstanceTypeHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue