AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
BatchContainerOverrides.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pipes/Pipes_EXPORTS.h>
10#include <aws/pipes/model/BatchEnvironmentVariable.h>
11#include <aws/pipes/model/BatchResourceRequirement.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pipes {
23namespace Model {
24
31 public:
32 AWS_PIPES_API BatchContainerOverrides() = default;
35 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
43 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
44 template <typename CommandT = Aws::Vector<Aws::String>>
45 void SetCommand(CommandT&& value) {
46 m_commandHasBeenSet = true;
47 m_command = std::forward<CommandT>(value);
48 }
49 template <typename CommandT = Aws::Vector<Aws::String>>
51 SetCommand(std::forward<CommandT>(value));
52 return *this;
53 }
54 template <typename CommandT = Aws::String>
56 m_commandHasBeenSet = true;
57 m_command.emplace_back(std::forward<CommandT>(value));
58 return *this;
59 }
61
63
71 inline const Aws::Vector<BatchEnvironmentVariable>& GetEnvironment() const { return m_environment; }
72 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
73 template <typename EnvironmentT = Aws::Vector<BatchEnvironmentVariable>>
74 void SetEnvironment(EnvironmentT&& value) {
75 m_environmentHasBeenSet = true;
76 m_environment = std::forward<EnvironmentT>(value);
77 }
78 template <typename EnvironmentT = Aws::Vector<BatchEnvironmentVariable>>
80 SetEnvironment(std::forward<EnvironmentT>(value));
81 return *this;
82 }
83 template <typename EnvironmentT = BatchEnvironmentVariable>
84 BatchContainerOverrides& AddEnvironment(EnvironmentT&& value) {
85 m_environmentHasBeenSet = true;
86 m_environment.emplace_back(std::forward<EnvironmentT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
98 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
99 template <typename InstanceTypeT = Aws::String>
100 void SetInstanceType(InstanceTypeT&& value) {
101 m_instanceTypeHasBeenSet = true;
102 m_instanceType = std::forward<InstanceTypeT>(value);
103 }
104 template <typename InstanceTypeT = Aws::String>
106 SetInstanceType(std::forward<InstanceTypeT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::Vector<BatchResourceRequirement>& GetResourceRequirements() const { return m_resourceRequirements; }
118 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
119 template <typename ResourceRequirementsT = Aws::Vector<BatchResourceRequirement>>
120 void SetResourceRequirements(ResourceRequirementsT&& value) {
121 m_resourceRequirementsHasBeenSet = true;
122 m_resourceRequirements = std::forward<ResourceRequirementsT>(value);
123 }
124 template <typename ResourceRequirementsT = Aws::Vector<BatchResourceRequirement>>
125 BatchContainerOverrides& WithResourceRequirements(ResourceRequirementsT&& value) {
126 SetResourceRequirements(std::forward<ResourceRequirementsT>(value));
127 return *this;
128 }
129 template <typename ResourceRequirementsT = BatchResourceRequirement>
130 BatchContainerOverrides& AddResourceRequirements(ResourceRequirementsT&& value) {
131 m_resourceRequirementsHasBeenSet = true;
132 m_resourceRequirements.emplace_back(std::forward<ResourceRequirementsT>(value));
133 return *this;
134 }
136 private:
137 Aws::Vector<Aws::String> m_command;
138
140
141 Aws::String m_instanceType;
142
143 Aws::Vector<BatchResourceRequirement> m_resourceRequirements;
144 bool m_commandHasBeenSet = false;
145 bool m_environmentHasBeenSet = false;
146 bool m_instanceTypeHasBeenSet = false;
147 bool m_resourceRequirementsHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace Pipes
152} // namespace Aws
void SetResourceRequirements(ResourceRequirementsT &&value)
AWS_PIPES_API BatchContainerOverrides(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< BatchEnvironmentVariable > & GetEnvironment() const
BatchContainerOverrides & WithCommand(CommandT &&value)
BatchContainerOverrides & AddCommand(CommandT &&value)
AWS_PIPES_API BatchContainerOverrides()=default
AWS_PIPES_API BatchContainerOverrides & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchContainerOverrides & WithResourceRequirements(ResourceRequirementsT &&value)
BatchContainerOverrides & WithInstanceType(InstanceTypeT &&value)
BatchContainerOverrides & AddResourceRequirements(ResourceRequirementsT &&value)
BatchContainerOverrides & WithEnvironment(EnvironmentT &&value)
const Aws::Vector< Aws::String > & GetCommand() const
const Aws::Vector< BatchResourceRequirement > & GetResourceRequirements() const
BatchContainerOverrides & AddEnvironment(EnvironmentT &&value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() 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