AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PipeTargetBatchJobParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pipes/Pipes_EXPORTS.h>
11#include <aws/pipes/model/BatchArrayProperties.h>
12#include <aws/pipes/model/BatchContainerOverrides.h>
13#include <aws/pipes/model/BatchJobDependency.h>
14#include <aws/pipes/model/BatchRetryStrategy.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pipes {
26namespace Model {
27
35 public:
36 AWS_PIPES_API PipeTargetBatchJobParameters() = default;
39 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
48 inline const Aws::String& GetJobDefinition() const { return m_jobDefinition; }
49 inline bool JobDefinitionHasBeenSet() const { return m_jobDefinitionHasBeenSet; }
50 template <typename JobDefinitionT = Aws::String>
51 void SetJobDefinition(JobDefinitionT&& value) {
52 m_jobDefinitionHasBeenSet = true;
53 m_jobDefinition = std::forward<JobDefinitionT>(value);
54 }
55 template <typename JobDefinitionT = Aws::String>
57 SetJobDefinition(std::forward<JobDefinitionT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::String& GetJobName() const { return m_jobName; }
69 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
70 template <typename JobNameT = Aws::String>
71 void SetJobName(JobNameT&& value) {
72 m_jobNameHasBeenSet = true;
73 m_jobName = std::forward<JobNameT>(value);
74 }
75 template <typename JobNameT = Aws::String>
77 SetJobName(std::forward<JobNameT>(value));
78 return *this;
79 }
81
83
89 inline const BatchArrayProperties& GetArrayProperties() const { return m_arrayProperties; }
90 inline bool ArrayPropertiesHasBeenSet() const { return m_arrayPropertiesHasBeenSet; }
91 template <typename ArrayPropertiesT = BatchArrayProperties>
92 void SetArrayProperties(ArrayPropertiesT&& value) {
93 m_arrayPropertiesHasBeenSet = true;
94 m_arrayProperties = std::forward<ArrayPropertiesT>(value);
95 }
96 template <typename ArrayPropertiesT = BatchArrayProperties>
98 SetArrayProperties(std::forward<ArrayPropertiesT>(value));
99 return *this;
100 }
102
104
108 inline const BatchRetryStrategy& GetRetryStrategy() const { return m_retryStrategy; }
109 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
110 template <typename RetryStrategyT = BatchRetryStrategy>
111 void SetRetryStrategy(RetryStrategyT&& value) {
112 m_retryStrategyHasBeenSet = true;
113 m_retryStrategy = std::forward<RetryStrategyT>(value);
114 }
115 template <typename RetryStrategyT = BatchRetryStrategy>
117 SetRetryStrategy(std::forward<RetryStrategyT>(value));
118 return *this;
119 }
121
123
126 inline const BatchContainerOverrides& GetContainerOverrides() const { return m_containerOverrides; }
127 inline bool ContainerOverridesHasBeenSet() const { return m_containerOverridesHasBeenSet; }
128 template <typename ContainerOverridesT = BatchContainerOverrides>
129 void SetContainerOverrides(ContainerOverridesT&& value) {
130 m_containerOverridesHasBeenSet = true;
131 m_containerOverrides = std::forward<ContainerOverridesT>(value);
132 }
133 template <typename ContainerOverridesT = BatchContainerOverrides>
135 SetContainerOverrides(std::forward<ContainerOverridesT>(value));
136 return *this;
137 }
139
141
150 inline const Aws::Vector<BatchJobDependency>& GetDependsOn() const { return m_dependsOn; }
151 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
152 template <typename DependsOnT = Aws::Vector<BatchJobDependency>>
153 void SetDependsOn(DependsOnT&& value) {
154 m_dependsOnHasBeenSet = true;
155 m_dependsOn = std::forward<DependsOnT>(value);
156 }
157 template <typename DependsOnT = Aws::Vector<BatchJobDependency>>
159 SetDependsOn(std::forward<DependsOnT>(value));
160 return *this;
161 }
162 template <typename DependsOnT = BatchJobDependency>
164 m_dependsOnHasBeenSet = true;
165 m_dependsOn.emplace_back(std::forward<DependsOnT>(value));
166 return *this;
167 }
169
171
177 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
178 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
179 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
180 void SetParameters(ParametersT&& value) {
181 m_parametersHasBeenSet = true;
182 m_parameters = std::forward<ParametersT>(value);
183 }
184 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
186 SetParameters(std::forward<ParametersT>(value));
187 return *this;
188 }
189 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
190 PipeTargetBatchJobParameters& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
191 m_parametersHasBeenSet = true;
192 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_jobDefinition;
198
199 Aws::String m_jobName;
200
201 BatchArrayProperties m_arrayProperties;
202
203 BatchRetryStrategy m_retryStrategy;
204
205 BatchContainerOverrides m_containerOverrides;
206
208
210 bool m_jobDefinitionHasBeenSet = false;
211 bool m_jobNameHasBeenSet = false;
212 bool m_arrayPropertiesHasBeenSet = false;
213 bool m_retryStrategyHasBeenSet = false;
214 bool m_containerOverridesHasBeenSet = false;
215 bool m_dependsOnHasBeenSet = false;
216 bool m_parametersHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace Pipes
221} // namespace Aws
PipeTargetBatchJobParameters & WithDependsOn(DependsOnT &&value)
PipeTargetBatchJobParameters & WithJobDefinition(JobDefinitionT &&value)
AWS_PIPES_API PipeTargetBatchJobParameters()=default
PipeTargetBatchJobParameters & WithParameters(ParametersT &&value)
PipeTargetBatchJobParameters & WithContainerOverrides(ContainerOverridesT &&value)
const BatchContainerOverrides & GetContainerOverrides() const
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
PipeTargetBatchJobParameters & WithArrayProperties(ArrayPropertiesT &&value)
AWS_PIPES_API PipeTargetBatchJobParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
PipeTargetBatchJobParameters & WithJobName(JobNameT &&value)
PipeTargetBatchJobParameters & AddDependsOn(DependsOnT &&value)
AWS_PIPES_API PipeTargetBatchJobParameters(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< BatchJobDependency > & GetDependsOn() const
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
PipeTargetBatchJobParameters & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
PipeTargetBatchJobParameters & WithRetryStrategy(RetryStrategyT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue