AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Target.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridge_EXPORTS.h>
9#include <aws/eventbridge/model/AppSyncParameters.h>
10#include <aws/eventbridge/model/BatchParameters.h>
11#include <aws/eventbridge/model/DeadLetterConfig.h>
12#include <aws/eventbridge/model/EcsParameters.h>
13#include <aws/eventbridge/model/HttpParameters.h>
14#include <aws/eventbridge/model/InputTransformer.h>
15#include <aws/eventbridge/model/KinesisParameters.h>
16#include <aws/eventbridge/model/RedshiftDataParameters.h>
17#include <aws/eventbridge/model/RetryPolicy.h>
18#include <aws/eventbridge/model/RunCommandParameters.h>
19#include <aws/eventbridge/model/SageMakerPipelineParameters.h>
20#include <aws/eventbridge/model/SqsParameters.h>
21
22#include <utility>
23
24namespace Aws {
25namespace Utils {
26namespace Json {
27class JsonValue;
28class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace EventBridge {
32namespace Model {
33
49class Target {
50 public:
51 AWS_EVENTBRIDGE_API Target() = default;
52 AWS_EVENTBRIDGE_API Target(Aws::Utils::Json::JsonView jsonValue);
53 AWS_EVENTBRIDGE_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
54 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
55
57
62 inline const Aws::String& GetId() const { return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 template <typename IdT = Aws::String>
65 void SetId(IdT&& value) {
66 m_idHasBeenSet = true;
67 m_id = std::forward<IdT>(value);
68 }
69 template <typename IdT = Aws::String>
70 Target& WithId(IdT&& value) {
71 SetId(std::forward<IdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetArn() const { return m_arn; }
81 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
82 template <typename ArnT = Aws::String>
83 void SetArn(ArnT&& value) {
84 m_arnHasBeenSet = true;
85 m_arn = std::forward<ArnT>(value);
86 }
87 template <typename ArnT = Aws::String>
88 Target& WithArn(ArnT&& value) {
89 SetArn(std::forward<ArnT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
101 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
102 template <typename RoleArnT = Aws::String>
103 void SetRoleArn(RoleArnT&& value) {
104 m_roleArnHasBeenSet = true;
105 m_roleArn = std::forward<RoleArnT>(value);
106 }
107 template <typename RoleArnT = Aws::String>
108 Target& WithRoleArn(RoleArnT&& value) {
109 SetRoleArn(std::forward<RoleArnT>(value));
110 return *this;
111 }
113
115
121 inline const Aws::String& GetInput() const { return m_input; }
122 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
123 template <typename InputT = Aws::String>
124 void SetInput(InputT&& value) {
125 m_inputHasBeenSet = true;
126 m_input = std::forward<InputT>(value);
127 }
128 template <typename InputT = Aws::String>
129 Target& WithInput(InputT&& value) {
130 SetInput(std::forward<InputT>(value));
131 return *this;
132 }
134
136
142 inline const Aws::String& GetInputPath() const { return m_inputPath; }
143 inline bool InputPathHasBeenSet() const { return m_inputPathHasBeenSet; }
144 template <typename InputPathT = Aws::String>
145 void SetInputPath(InputPathT&& value) {
146 m_inputPathHasBeenSet = true;
147 m_inputPath = std::forward<InputPathT>(value);
148 }
149 template <typename InputPathT = Aws::String>
150 Target& WithInputPath(InputPathT&& value) {
151 SetInputPath(std::forward<InputPathT>(value));
152 return *this;
153 }
155
157
162 inline const InputTransformer& GetInputTransformer() const { return m_inputTransformer; }
163 inline bool InputTransformerHasBeenSet() const { return m_inputTransformerHasBeenSet; }
164 template <typename InputTransformerT = InputTransformer>
165 void SetInputTransformer(InputTransformerT&& value) {
166 m_inputTransformerHasBeenSet = true;
167 m_inputTransformer = std::forward<InputTransformerT>(value);
168 }
169 template <typename InputTransformerT = InputTransformer>
170 Target& WithInputTransformer(InputTransformerT&& value) {
171 SetInputTransformer(std::forward<InputTransformerT>(value));
172 return *this;
173 }
175
177
182 inline const KinesisParameters& GetKinesisParameters() const { return m_kinesisParameters; }
183 inline bool KinesisParametersHasBeenSet() const { return m_kinesisParametersHasBeenSet; }
184 template <typename KinesisParametersT = KinesisParameters>
185 void SetKinesisParameters(KinesisParametersT&& value) {
186 m_kinesisParametersHasBeenSet = true;
187 m_kinesisParameters = std::forward<KinesisParametersT>(value);
188 }
189 template <typename KinesisParametersT = KinesisParameters>
190 Target& WithKinesisParameters(KinesisParametersT&& value) {
191 SetKinesisParameters(std::forward<KinesisParametersT>(value));
192 return *this;
193 }
195
197
201 inline const RunCommandParameters& GetRunCommandParameters() const { return m_runCommandParameters; }
202 inline bool RunCommandParametersHasBeenSet() const { return m_runCommandParametersHasBeenSet; }
203 template <typename RunCommandParametersT = RunCommandParameters>
204 void SetRunCommandParameters(RunCommandParametersT&& value) {
205 m_runCommandParametersHasBeenSet = true;
206 m_runCommandParameters = std::forward<RunCommandParametersT>(value);
207 }
208 template <typename RunCommandParametersT = RunCommandParameters>
209 Target& WithRunCommandParameters(RunCommandParametersT&& value) {
210 SetRunCommandParameters(std::forward<RunCommandParametersT>(value));
211 return *this;
212 }
214
216
223 inline const EcsParameters& GetEcsParameters() const { return m_ecsParameters; }
224 inline bool EcsParametersHasBeenSet() const { return m_ecsParametersHasBeenSet; }
225 template <typename EcsParametersT = EcsParameters>
226 void SetEcsParameters(EcsParametersT&& value) {
227 m_ecsParametersHasBeenSet = true;
228 m_ecsParameters = std::forward<EcsParametersT>(value);
229 }
230 template <typename EcsParametersT = EcsParameters>
231 Target& WithEcsParameters(EcsParametersT&& value) {
232 SetEcsParameters(std::forward<EcsParametersT>(value));
233 return *this;
234 }
236
238
244 inline const BatchParameters& GetBatchParameters() const { return m_batchParameters; }
245 inline bool BatchParametersHasBeenSet() const { return m_batchParametersHasBeenSet; }
246 template <typename BatchParametersT = BatchParameters>
247 void SetBatchParameters(BatchParametersT&& value) {
248 m_batchParametersHasBeenSet = true;
249 m_batchParameters = std::forward<BatchParametersT>(value);
250 }
251 template <typename BatchParametersT = BatchParameters>
252 Target& WithBatchParameters(BatchParametersT&& value) {
253 SetBatchParameters(std::forward<BatchParametersT>(value));
254 return *this;
255 }
257
259
264 inline const SqsParameters& GetSqsParameters() const { return m_sqsParameters; }
265 inline bool SqsParametersHasBeenSet() const { return m_sqsParametersHasBeenSet; }
266 template <typename SqsParametersT = SqsParameters>
267 void SetSqsParameters(SqsParametersT&& value) {
268 m_sqsParametersHasBeenSet = true;
269 m_sqsParameters = std::forward<SqsParametersT>(value);
270 }
271 template <typename SqsParametersT = SqsParameters>
272 Target& WithSqsParameters(SqsParametersT&& value) {
273 SetSqsParameters(std::forward<SqsParametersT>(value));
274 return *this;
275 }
277
279
288 inline const HttpParameters& GetHttpParameters() const { return m_httpParameters; }
289 inline bool HttpParametersHasBeenSet() const { return m_httpParametersHasBeenSet; }
290 template <typename HttpParametersT = HttpParameters>
291 void SetHttpParameters(HttpParametersT&& value) {
292 m_httpParametersHasBeenSet = true;
293 m_httpParameters = std::forward<HttpParametersT>(value);
294 }
295 template <typename HttpParametersT = HttpParameters>
296 Target& WithHttpParameters(HttpParametersT&& value) {
297 SetHttpParameters(std::forward<HttpParametersT>(value));
298 return *this;
299 }
301
303
309 inline const RedshiftDataParameters& GetRedshiftDataParameters() const { return m_redshiftDataParameters; }
310 inline bool RedshiftDataParametersHasBeenSet() const { return m_redshiftDataParametersHasBeenSet; }
311 template <typename RedshiftDataParametersT = RedshiftDataParameters>
312 void SetRedshiftDataParameters(RedshiftDataParametersT&& value) {
313 m_redshiftDataParametersHasBeenSet = true;
314 m_redshiftDataParameters = std::forward<RedshiftDataParametersT>(value);
315 }
316 template <typename RedshiftDataParametersT = RedshiftDataParameters>
317 Target& WithRedshiftDataParameters(RedshiftDataParametersT&& value) {
318 SetRedshiftDataParameters(std::forward<RedshiftDataParametersT>(value));
319 return *this;
320 }
322
324
330 inline const SageMakerPipelineParameters& GetSageMakerPipelineParameters() const { return m_sageMakerPipelineParameters; }
331 inline bool SageMakerPipelineParametersHasBeenSet() const { return m_sageMakerPipelineParametersHasBeenSet; }
332 template <typename SageMakerPipelineParametersT = SageMakerPipelineParameters>
333 void SetSageMakerPipelineParameters(SageMakerPipelineParametersT&& value) {
334 m_sageMakerPipelineParametersHasBeenSet = true;
335 m_sageMakerPipelineParameters = std::forward<SageMakerPipelineParametersT>(value);
336 }
337 template <typename SageMakerPipelineParametersT = SageMakerPipelineParameters>
338 Target& WithSageMakerPipelineParameters(SageMakerPipelineParametersT&& value) {
339 SetSageMakerPipelineParameters(std::forward<SageMakerPipelineParametersT>(value));
340 return *this;
341 }
343
345
349 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
350 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
351 template <typename DeadLetterConfigT = DeadLetterConfig>
352 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
353 m_deadLetterConfigHasBeenSet = true;
354 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
355 }
356 template <typename DeadLetterConfigT = DeadLetterConfig>
357 Target& WithDeadLetterConfig(DeadLetterConfigT&& value) {
358 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
359 return *this;
360 }
362
364
367 inline const RetryPolicy& GetRetryPolicy() const { return m_retryPolicy; }
368 inline bool RetryPolicyHasBeenSet() const { return m_retryPolicyHasBeenSet; }
369 template <typename RetryPolicyT = RetryPolicy>
370 void SetRetryPolicy(RetryPolicyT&& value) {
371 m_retryPolicyHasBeenSet = true;
372 m_retryPolicy = std::forward<RetryPolicyT>(value);
373 }
374 template <typename RetryPolicyT = RetryPolicy>
375 Target& WithRetryPolicy(RetryPolicyT&& value) {
376 SetRetryPolicy(std::forward<RetryPolicyT>(value));
377 return *this;
378 }
380
382
386 inline const AppSyncParameters& GetAppSyncParameters() const { return m_appSyncParameters; }
387 inline bool AppSyncParametersHasBeenSet() const { return m_appSyncParametersHasBeenSet; }
388 template <typename AppSyncParametersT = AppSyncParameters>
389 void SetAppSyncParameters(AppSyncParametersT&& value) {
390 m_appSyncParametersHasBeenSet = true;
391 m_appSyncParameters = std::forward<AppSyncParametersT>(value);
392 }
393 template <typename AppSyncParametersT = AppSyncParameters>
394 Target& WithAppSyncParameters(AppSyncParametersT&& value) {
395 SetAppSyncParameters(std::forward<AppSyncParametersT>(value));
396 return *this;
397 }
399 private:
400 Aws::String m_id;
401
402 Aws::String m_arn;
403
404 Aws::String m_roleArn;
405
406 Aws::String m_input;
407
408 Aws::String m_inputPath;
409
410 InputTransformer m_inputTransformer;
411
412 KinesisParameters m_kinesisParameters;
413
414 RunCommandParameters m_runCommandParameters;
415
416 EcsParameters m_ecsParameters;
417
418 BatchParameters m_batchParameters;
419
420 SqsParameters m_sqsParameters;
421
422 HttpParameters m_httpParameters;
423
424 RedshiftDataParameters m_redshiftDataParameters;
425
426 SageMakerPipelineParameters m_sageMakerPipelineParameters;
427
428 DeadLetterConfig m_deadLetterConfig;
429
430 RetryPolicy m_retryPolicy;
431
432 AppSyncParameters m_appSyncParameters;
433 bool m_idHasBeenSet = false;
434 bool m_arnHasBeenSet = false;
435 bool m_roleArnHasBeenSet = false;
436 bool m_inputHasBeenSet = false;
437 bool m_inputPathHasBeenSet = false;
438 bool m_inputTransformerHasBeenSet = false;
439 bool m_kinesisParametersHasBeenSet = false;
440 bool m_runCommandParametersHasBeenSet = false;
441 bool m_ecsParametersHasBeenSet = false;
442 bool m_batchParametersHasBeenSet = false;
443 bool m_sqsParametersHasBeenSet = false;
444 bool m_httpParametersHasBeenSet = false;
445 bool m_redshiftDataParametersHasBeenSet = false;
446 bool m_sageMakerPipelineParametersHasBeenSet = false;
447 bool m_deadLetterConfigHasBeenSet = false;
448 bool m_retryPolicyHasBeenSet = false;
449 bool m_appSyncParametersHasBeenSet = false;
450};
451
452} // namespace Model
453} // namespace EventBridge
454} // namespace Aws
bool DeadLetterConfigHasBeenSet() const
Definition Target.h:350
Target & WithDeadLetterConfig(DeadLetterConfigT &&value)
Definition Target.h:357
const InputTransformer & GetInputTransformer() const
Definition Target.h:162
Target & WithId(IdT &&value)
Definition Target.h:70
void SetSageMakerPipelineParameters(SageMakerPipelineParametersT &&value)
Definition Target.h:333
bool AppSyncParametersHasBeenSet() const
Definition Target.h:387
void SetInput(InputT &&value)
Definition Target.h:124
const EcsParameters & GetEcsParameters() const
Definition Target.h:223
Target & WithKinesisParameters(KinesisParametersT &&value)
Definition Target.h:190
AWS_EVENTBRIDGE_API Target(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInput() const
Definition Target.h:121
AWS_EVENTBRIDGE_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
Target & WithInputTransformer(InputTransformerT &&value)
Definition Target.h:170
const DeadLetterConfig & GetDeadLetterConfig() const
Definition Target.h:349
Target & WithSqsParameters(SqsParametersT &&value)
Definition Target.h:272
Target & WithRoleArn(RoleArnT &&value)
Definition Target.h:108
Target & WithArn(ArnT &&value)
Definition Target.h:88
const KinesisParameters & GetKinesisParameters() const
Definition Target.h:182
bool SageMakerPipelineParametersHasBeenSet() const
Definition Target.h:331
const HttpParameters & GetHttpParameters() const
Definition Target.h:288
const Aws::String & GetArn() const
Definition Target.h:80
const Aws::String & GetInputPath() const
Definition Target.h:142
void SetArn(ArnT &&value)
Definition Target.h:83
void SetEcsParameters(EcsParametersT &&value)
Definition Target.h:226
Target & WithEcsParameters(EcsParametersT &&value)
Definition Target.h:231
void SetRoleArn(RoleArnT &&value)
Definition Target.h:103
bool InputTransformerHasBeenSet() const
Definition Target.h:163
bool KinesisParametersHasBeenSet() const
Definition Target.h:183
Target & WithRunCommandParameters(RunCommandParametersT &&value)
Definition Target.h:209
const RetryPolicy & GetRetryPolicy() const
Definition Target.h:367
const AppSyncParameters & GetAppSyncParameters() const
Definition Target.h:386
void SetRedshiftDataParameters(RedshiftDataParametersT &&value)
Definition Target.h:312
Target & WithInputPath(InputPathT &&value)
Definition Target.h:150
Target & WithBatchParameters(BatchParametersT &&value)
Definition Target.h:252
const RedshiftDataParameters & GetRedshiftDataParameters() const
Definition Target.h:309
void SetBatchParameters(BatchParametersT &&value)
Definition Target.h:247
bool RetryPolicyHasBeenSet() const
Definition Target.h:368
void SetSqsParameters(SqsParametersT &&value)
Definition Target.h:267
bool SqsParametersHasBeenSet() const
Definition Target.h:265
Target & WithInput(InputT &&value)
Definition Target.h:129
void SetInputTransformer(InputTransformerT &&value)
Definition Target.h:165
Target & WithHttpParameters(HttpParametersT &&value)
Definition Target.h:296
Target & WithRetryPolicy(RetryPolicyT &&value)
Definition Target.h:375
void SetId(IdT &&value)
Definition Target.h:65
void SetRetryPolicy(RetryPolicyT &&value)
Definition Target.h:370
Target & WithRedshiftDataParameters(RedshiftDataParametersT &&value)
Definition Target.h:317
bool RedshiftDataParametersHasBeenSet() const
Definition Target.h:310
bool EcsParametersHasBeenSet() const
Definition Target.h:224
bool HttpParametersHasBeenSet() const
Definition Target.h:289
void SetAppSyncParameters(AppSyncParametersT &&value)
Definition Target.h:389
void SetRunCommandParameters(RunCommandParametersT &&value)
Definition Target.h:204
void SetDeadLetterConfig(DeadLetterConfigT &&value)
Definition Target.h:352
const SqsParameters & GetSqsParameters() const
Definition Target.h:264
bool InputPathHasBeenSet() const
Definition Target.h:143
const SageMakerPipelineParameters & GetSageMakerPipelineParameters() const
Definition Target.h:330
const BatchParameters & GetBatchParameters() const
Definition Target.h:244
void SetInputPath(InputPathT &&value)
Definition Target.h:145
Target & WithSageMakerPipelineParameters(SageMakerPipelineParametersT &&value)
Definition Target.h:338
const Aws::String & GetRoleArn() const
Definition Target.h:100
void SetHttpParameters(HttpParametersT &&value)
Definition Target.h:291
bool BatchParametersHasBeenSet() const
Definition Target.h:245
Target & WithAppSyncParameters(AppSyncParametersT &&value)
Definition Target.h:394
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EVENTBRIDGE_API Target()=default
const Aws::String & GetId() const
Definition Target.h:62
const RunCommandParameters & GetRunCommandParameters() const
Definition Target.h:201
bool RunCommandParametersHasBeenSet() const
Definition Target.h:202
void SetKinesisParameters(KinesisParametersT &&value)
Definition Target.h:185
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue