AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Target.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/events/model/InputTransformer.h>
10#include <aws/events/model/KinesisParameters.h>
11#include <aws/events/model/RunCommandParameters.h>
12#include <aws/events/model/EcsParameters.h>
13#include <aws/events/model/BatchParameters.h>
14#include <aws/events/model/SqsParameters.h>
15#include <aws/events/model/HttpParameters.h>
16#include <aws/events/model/RedshiftDataParameters.h>
17#include <aws/events/model/SageMakerPipelineParameters.h>
18#include <aws/events/model/DeadLetterConfig.h>
19#include <aws/events/model/RetryPolicy.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace CloudWatchEvents
33{
34namespace Model
35{
36
52 class Target
53 {
54 public:
55 AWS_CLOUDWATCHEVENTS_API Target();
56 AWS_CLOUDWATCHEVENTS_API Target(Aws::Utils::Json::JsonView jsonValue);
57 AWS_CLOUDWATCHEVENTS_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
58 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
59
60
62
65 inline const Aws::String& GetId() const{ return m_id; }
66 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
67 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
68 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
69 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
70 inline Target& WithId(const Aws::String& value) { SetId(value); return *this;}
71 inline Target& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
72 inline Target& WithId(const char* value) { SetId(value); return *this;}
74
76
79 inline const Aws::String& GetArn() const{ return m_arn; }
80 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
81 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
82 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
83 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
84 inline Target& WithArn(const Aws::String& value) { SetArn(value); return *this;}
85 inline Target& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
86 inline Target& WithArn(const char* value) { SetArn(value); return *this;}
88
90
95 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
96 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
97 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
98 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
99 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
100 inline Target& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
101 inline Target& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
102 inline Target& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
104
106
112 inline const Aws::String& GetInput() const{ return m_input; }
113 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
114 inline void SetInput(const Aws::String& value) { m_inputHasBeenSet = true; m_input = value; }
115 inline void SetInput(Aws::String&& value) { m_inputHasBeenSet = true; m_input = std::move(value); }
116 inline void SetInput(const char* value) { m_inputHasBeenSet = true; m_input.assign(value); }
117 inline Target& WithInput(const Aws::String& value) { SetInput(value); return *this;}
118 inline Target& WithInput(Aws::String&& value) { SetInput(std::move(value)); return *this;}
119 inline Target& WithInput(const char* value) { SetInput(value); return *this;}
121
123
129 inline const Aws::String& GetInputPath() const{ return m_inputPath; }
130 inline bool InputPathHasBeenSet() const { return m_inputPathHasBeenSet; }
131 inline void SetInputPath(const Aws::String& value) { m_inputPathHasBeenSet = true; m_inputPath = value; }
132 inline void SetInputPath(Aws::String&& value) { m_inputPathHasBeenSet = true; m_inputPath = std::move(value); }
133 inline void SetInputPath(const char* value) { m_inputPathHasBeenSet = true; m_inputPath.assign(value); }
134 inline Target& WithInputPath(const Aws::String& value) { SetInputPath(value); return *this;}
135 inline Target& WithInputPath(Aws::String&& value) { SetInputPath(std::move(value)); return *this;}
136 inline Target& WithInputPath(const char* value) { SetInputPath(value); return *this;}
138
140
145 inline const InputTransformer& GetInputTransformer() const{ return m_inputTransformer; }
146 inline bool InputTransformerHasBeenSet() const { return m_inputTransformerHasBeenSet; }
147 inline void SetInputTransformer(const InputTransformer& value) { m_inputTransformerHasBeenSet = true; m_inputTransformer = value; }
148 inline void SetInputTransformer(InputTransformer&& value) { m_inputTransformerHasBeenSet = true; m_inputTransformer = std::move(value); }
149 inline Target& WithInputTransformer(const InputTransformer& value) { SetInputTransformer(value); return *this;}
150 inline Target& WithInputTransformer(InputTransformer&& value) { SetInputTransformer(std::move(value)); return *this;}
152
154
159 inline const KinesisParameters& GetKinesisParameters() const{ return m_kinesisParameters; }
160 inline bool KinesisParametersHasBeenSet() const { return m_kinesisParametersHasBeenSet; }
161 inline void SetKinesisParameters(const KinesisParameters& value) { m_kinesisParametersHasBeenSet = true; m_kinesisParameters = value; }
162 inline void SetKinesisParameters(KinesisParameters&& value) { m_kinesisParametersHasBeenSet = true; m_kinesisParameters = std::move(value); }
163 inline Target& WithKinesisParameters(const KinesisParameters& value) { SetKinesisParameters(value); return *this;}
164 inline Target& WithKinesisParameters(KinesisParameters&& value) { SetKinesisParameters(std::move(value)); return *this;}
166
168
172 inline const RunCommandParameters& GetRunCommandParameters() const{ return m_runCommandParameters; }
173 inline bool RunCommandParametersHasBeenSet() const { return m_runCommandParametersHasBeenSet; }
174 inline void SetRunCommandParameters(const RunCommandParameters& value) { m_runCommandParametersHasBeenSet = true; m_runCommandParameters = value; }
175 inline void SetRunCommandParameters(RunCommandParameters&& value) { m_runCommandParametersHasBeenSet = true; m_runCommandParameters = std::move(value); }
177 inline Target& WithRunCommandParameters(RunCommandParameters&& value) { SetRunCommandParameters(std::move(value)); return *this;}
179
181
188 inline const EcsParameters& GetEcsParameters() const{ return m_ecsParameters; }
189 inline bool EcsParametersHasBeenSet() const { return m_ecsParametersHasBeenSet; }
190 inline void SetEcsParameters(const EcsParameters& value) { m_ecsParametersHasBeenSet = true; m_ecsParameters = value; }
191 inline void SetEcsParameters(EcsParameters&& value) { m_ecsParametersHasBeenSet = true; m_ecsParameters = std::move(value); }
192 inline Target& WithEcsParameters(const EcsParameters& value) { SetEcsParameters(value); return *this;}
193 inline Target& WithEcsParameters(EcsParameters&& value) { SetEcsParameters(std::move(value)); return *this;}
195
197
203 inline const BatchParameters& GetBatchParameters() const{ return m_batchParameters; }
204 inline bool BatchParametersHasBeenSet() const { return m_batchParametersHasBeenSet; }
205 inline void SetBatchParameters(const BatchParameters& value) { m_batchParametersHasBeenSet = true; m_batchParameters = value; }
206 inline void SetBatchParameters(BatchParameters&& value) { m_batchParametersHasBeenSet = true; m_batchParameters = std::move(value); }
207 inline Target& WithBatchParameters(const BatchParameters& value) { SetBatchParameters(value); return *this;}
208 inline Target& WithBatchParameters(BatchParameters&& value) { SetBatchParameters(std::move(value)); return *this;}
210
212
217 inline const SqsParameters& GetSqsParameters() const{ return m_sqsParameters; }
218 inline bool SqsParametersHasBeenSet() const { return m_sqsParametersHasBeenSet; }
219 inline void SetSqsParameters(const SqsParameters& value) { m_sqsParametersHasBeenSet = true; m_sqsParameters = value; }
220 inline void SetSqsParameters(SqsParameters&& value) { m_sqsParametersHasBeenSet = true; m_sqsParameters = std::move(value); }
221 inline Target& WithSqsParameters(const SqsParameters& value) { SetSqsParameters(value); return *this;}
222 inline Target& WithSqsParameters(SqsParameters&& value) { SetSqsParameters(std::move(value)); return *this;}
224
226
235 inline const HttpParameters& GetHttpParameters() const{ return m_httpParameters; }
236 inline bool HttpParametersHasBeenSet() const { return m_httpParametersHasBeenSet; }
237 inline void SetHttpParameters(const HttpParameters& value) { m_httpParametersHasBeenSet = true; m_httpParameters = value; }
238 inline void SetHttpParameters(HttpParameters&& value) { m_httpParametersHasBeenSet = true; m_httpParameters = std::move(value); }
239 inline Target& WithHttpParameters(const HttpParameters& value) { SetHttpParameters(value); return *this;}
240 inline Target& WithHttpParameters(HttpParameters&& value) { SetHttpParameters(std::move(value)); return *this;}
242
244
250 inline const RedshiftDataParameters& GetRedshiftDataParameters() const{ return m_redshiftDataParameters; }
251 inline bool RedshiftDataParametersHasBeenSet() const { return m_redshiftDataParametersHasBeenSet; }
252 inline void SetRedshiftDataParameters(const RedshiftDataParameters& value) { m_redshiftDataParametersHasBeenSet = true; m_redshiftDataParameters = value; }
253 inline void SetRedshiftDataParameters(RedshiftDataParameters&& value) { m_redshiftDataParametersHasBeenSet = true; m_redshiftDataParameters = std::move(value); }
255 inline Target& WithRedshiftDataParameters(RedshiftDataParameters&& value) { SetRedshiftDataParameters(std::move(value)); return *this;}
257
259
265 inline const SageMakerPipelineParameters& GetSageMakerPipelineParameters() const{ return m_sageMakerPipelineParameters; }
266 inline bool SageMakerPipelineParametersHasBeenSet() const { return m_sageMakerPipelineParametersHasBeenSet; }
267 inline void SetSageMakerPipelineParameters(const SageMakerPipelineParameters& value) { m_sageMakerPipelineParametersHasBeenSet = true; m_sageMakerPipelineParameters = value; }
268 inline void SetSageMakerPipelineParameters(SageMakerPipelineParameters&& value) { m_sageMakerPipelineParametersHasBeenSet = true; m_sageMakerPipelineParameters = std::move(value); }
272
274
278 inline const DeadLetterConfig& GetDeadLetterConfig() const{ return m_deadLetterConfig; }
279 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
280 inline void SetDeadLetterConfig(const DeadLetterConfig& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = value; }
281 inline void SetDeadLetterConfig(DeadLetterConfig&& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = std::move(value); }
282 inline Target& WithDeadLetterConfig(const DeadLetterConfig& value) { SetDeadLetterConfig(value); return *this;}
283 inline Target& WithDeadLetterConfig(DeadLetterConfig&& value) { SetDeadLetterConfig(std::move(value)); return *this;}
285
287
291 inline const RetryPolicy& GetRetryPolicy() const{ return m_retryPolicy; }
292 inline bool RetryPolicyHasBeenSet() const { return m_retryPolicyHasBeenSet; }
293 inline void SetRetryPolicy(const RetryPolicy& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = value; }
294 inline void SetRetryPolicy(RetryPolicy&& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = std::move(value); }
295 inline Target& WithRetryPolicy(const RetryPolicy& value) { SetRetryPolicy(value); return *this;}
296 inline Target& WithRetryPolicy(RetryPolicy&& value) { SetRetryPolicy(std::move(value)); return *this;}
298 private:
299
300 Aws::String m_id;
301 bool m_idHasBeenSet = false;
302
303 Aws::String m_arn;
304 bool m_arnHasBeenSet = false;
305
306 Aws::String m_roleArn;
307 bool m_roleArnHasBeenSet = false;
308
309 Aws::String m_input;
310 bool m_inputHasBeenSet = false;
311
312 Aws::String m_inputPath;
313 bool m_inputPathHasBeenSet = false;
314
315 InputTransformer m_inputTransformer;
316 bool m_inputTransformerHasBeenSet = false;
317
318 KinesisParameters m_kinesisParameters;
319 bool m_kinesisParametersHasBeenSet = false;
320
321 RunCommandParameters m_runCommandParameters;
322 bool m_runCommandParametersHasBeenSet = false;
323
324 EcsParameters m_ecsParameters;
325 bool m_ecsParametersHasBeenSet = false;
326
327 BatchParameters m_batchParameters;
328 bool m_batchParametersHasBeenSet = false;
329
330 SqsParameters m_sqsParameters;
331 bool m_sqsParametersHasBeenSet = false;
332
333 HttpParameters m_httpParameters;
334 bool m_httpParametersHasBeenSet = false;
335
336 RedshiftDataParameters m_redshiftDataParameters;
337 bool m_redshiftDataParametersHasBeenSet = false;
338
339 SageMakerPipelineParameters m_sageMakerPipelineParameters;
340 bool m_sageMakerPipelineParametersHasBeenSet = false;
341
342 DeadLetterConfig m_deadLetterConfig;
343 bool m_deadLetterConfigHasBeenSet = false;
344
345 RetryPolicy m_retryPolicy;
346 bool m_retryPolicyHasBeenSet = false;
347 };
348
349} // namespace Model
350} // namespace CloudWatchEvents
351} // namespace Aws
void SetSqsParameters(const SqsParameters &value)
Definition Target.h:219
void SetRoleArn(Aws::String &&value)
Definition Target.h:98
Target & WithArn(Aws::String &&value)
Definition Target.h:85
Target & WithInputTransformer(InputTransformer &&value)
Definition Target.h:150
void SetId(const char *value)
Definition Target.h:69
Target & WithRoleArn(const char *value)
Definition Target.h:102
Target & WithKinesisParameters(KinesisParameters &&value)
Definition Target.h:164
void SetBatchParameters(BatchParameters &&value)
Definition Target.h:206
Target & WithRetryPolicy(RetryPolicy &&value)
Definition Target.h:296
Target & WithEcsParameters(const EcsParameters &value)
Definition Target.h:192
void SetRoleArn(const Aws::String &value)
Definition Target.h:97
void SetHttpParameters(const HttpParameters &value)
Definition Target.h:237
Target & WithBatchParameters(const BatchParameters &value)
Definition Target.h:207
void SetArn(const char *value)
Definition Target.h:83
Target & WithHttpParameters(const HttpParameters &value)
Definition Target.h:239
Target & WithBatchParameters(BatchParameters &&value)
Definition Target.h:208
void SetEcsParameters(const EcsParameters &value)
Definition Target.h:190
void SetId(Aws::String &&value)
Definition Target.h:68
const RunCommandParameters & GetRunCommandParameters() const
Definition Target.h:172
void SetSageMakerPipelineParameters(const SageMakerPipelineParameters &value)
Definition Target.h:267
Target & WithKinesisParameters(const KinesisParameters &value)
Definition Target.h:163
void SetDeadLetterConfig(DeadLetterConfig &&value)
Definition Target.h:281
const SageMakerPipelineParameters & GetSageMakerPipelineParameters() const
Definition Target.h:265
const HttpParameters & GetHttpParameters() const
Definition Target.h:235
void SetKinesisParameters(const KinesisParameters &value)
Definition Target.h:161
const EcsParameters & GetEcsParameters() const
Definition Target.h:188
void SetArn(Aws::String &&value)
Definition Target.h:82
Target & WithId(Aws::String &&value)
Definition Target.h:71
void SetInputTransformer(InputTransformer &&value)
Definition Target.h:148
const Aws::String & GetInput() const
Definition Target.h:112
void SetInputPath(const char *value)
Definition Target.h:133
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
Target & WithSqsParameters(const SqsParameters &value)
Definition Target.h:221
void SetInput(const char *value)
Definition Target.h:116
Target & WithRedshiftDataParameters(const RedshiftDataParameters &value)
Definition Target.h:254
Target & WithInputPath(const Aws::String &value)
Definition Target.h:134
const Aws::String & GetId() const
Definition Target.h:65
Target & WithId(const char *value)
Definition Target.h:72
Target & WithInput(const Aws::String &value)
Definition Target.h:117
const BatchParameters & GetBatchParameters() const
Definition Target.h:203
const Aws::String & GetRoleArn() const
Definition Target.h:95
Target & WithSageMakerPipelineParameters(SageMakerPipelineParameters &&value)
Definition Target.h:270
const Aws::String & GetArn() const
Definition Target.h:79
bool SageMakerPipelineParametersHasBeenSet() const
Definition Target.h:266
void SetSageMakerPipelineParameters(SageMakerPipelineParameters &&value)
Definition Target.h:268
void SetInputPath(Aws::String &&value)
Definition Target.h:132
AWS_CLOUDWATCHEVENTS_API Target()
Target & WithEcsParameters(EcsParameters &&value)
Definition Target.h:193
Target & WithInput(const char *value)
Definition Target.h:119
void SetRoleArn(const char *value)
Definition Target.h:99
const SqsParameters & GetSqsParameters() const
Definition Target.h:217
void SetBatchParameters(const BatchParameters &value)
Definition Target.h:205
Target & WithDeadLetterConfig(const DeadLetterConfig &value)
Definition Target.h:282
const KinesisParameters & GetKinesisParameters() const
Definition Target.h:159
void SetRunCommandParameters(RunCommandParameters &&value)
Definition Target.h:175
Target & WithArn(const Aws::String &value)
Definition Target.h:84
void SetRedshiftDataParameters(const RedshiftDataParameters &value)
Definition Target.h:252
const InputTransformer & GetInputTransformer() const
Definition Target.h:145
const DeadLetterConfig & GetDeadLetterConfig() const
Definition Target.h:278
Target & WithArn(const char *value)
Definition Target.h:86
Target & WithSageMakerPipelineParameters(const SageMakerPipelineParameters &value)
Definition Target.h:269
void SetHttpParameters(HttpParameters &&value)
Definition Target.h:238
void SetRunCommandParameters(const RunCommandParameters &value)
Definition Target.h:174
Target & WithId(const Aws::String &value)
Definition Target.h:70
AWS_CLOUDWATCHEVENTS_API Target(Aws::Utils::Json::JsonView jsonValue)
Target & WithRetryPolicy(const RetryPolicy &value)
Definition Target.h:295
const Aws::String & GetInputPath() const
Definition Target.h:129
Target & WithHttpParameters(HttpParameters &&value)
Definition Target.h:240
Target & WithInputTransformer(const InputTransformer &value)
Definition Target.h:149
Target & WithRunCommandParameters(const RunCommandParameters &value)
Definition Target.h:176
Target & WithSqsParameters(SqsParameters &&value)
Definition Target.h:222
void SetInputPath(const Aws::String &value)
Definition Target.h:131
void SetDeadLetterConfig(const DeadLetterConfig &value)
Definition Target.h:280
void SetRedshiftDataParameters(RedshiftDataParameters &&value)
Definition Target.h:253
void SetRetryPolicy(RetryPolicy &&value)
Definition Target.h:294
void SetId(const Aws::String &value)
Definition Target.h:67
void SetSqsParameters(SqsParameters &&value)
Definition Target.h:220
Target & WithInputPath(Aws::String &&value)
Definition Target.h:135
bool RunCommandParametersHasBeenSet() const
Definition Target.h:173
void SetInput(const Aws::String &value)
Definition Target.h:114
void SetKinesisParameters(KinesisParameters &&value)
Definition Target.h:162
Target & WithDeadLetterConfig(DeadLetterConfig &&value)
Definition Target.h:283
Target & WithRedshiftDataParameters(RedshiftDataParameters &&value)
Definition Target.h:255
const RetryPolicy & GetRetryPolicy() const
Definition Target.h:291
void SetInputTransformer(const InputTransformer &value)
Definition Target.h:147
Target & WithInputPath(const char *value)
Definition Target.h:136
AWS_CLOUDWATCHEVENTS_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
Target & WithInput(Aws::String &&value)
Definition Target.h:118
void SetEcsParameters(EcsParameters &&value)
Definition Target.h:191
void SetRetryPolicy(const RetryPolicy &value)
Definition Target.h:293
Target & WithRoleArn(const Aws::String &value)
Definition Target.h:100
Target & WithRunCommandParameters(RunCommandParameters &&value)
Definition Target.h:177
void SetInput(Aws::String &&value)
Definition Target.h:115
const RedshiftDataParameters & GetRedshiftDataParameters() const
Definition Target.h:250
void SetArn(const Aws::String &value)
Definition Target.h:81
Target & WithRoleArn(Aws::String &&value)
Definition Target.h:101
bool RedshiftDataParametersHasBeenSet() const
Definition Target.h:251
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue