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/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/model/InputTransformer.h>
10#include <aws/eventbridge/model/KinesisParameters.h>
11#include <aws/eventbridge/model/RunCommandParameters.h>
12#include <aws/eventbridge/model/EcsParameters.h>
13#include <aws/eventbridge/model/BatchParameters.h>
14#include <aws/eventbridge/model/SqsParameters.h>
15#include <aws/eventbridge/model/HttpParameters.h>
16#include <aws/eventbridge/model/RedshiftDataParameters.h>
17#include <aws/eventbridge/model/SageMakerPipelineParameters.h>
18#include <aws/eventbridge/model/DeadLetterConfig.h>
19#include <aws/eventbridge/model/RetryPolicy.h>
20#include <aws/eventbridge/model/AppSyncParameters.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30 class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace EventBridge
34{
35namespace Model
36{
37
53 class Target
54 {
55 public:
56 AWS_EVENTBRIDGE_API Target();
57 AWS_EVENTBRIDGE_API Target(Aws::Utils::Json::JsonView jsonValue);
58 AWS_EVENTBRIDGE_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
59 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
60
61
63
68 inline const Aws::String& GetId() const{ return m_id; }
69 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
70 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
71 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
72 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
73 inline Target& WithId(const Aws::String& value) { SetId(value); return *this;}
74 inline Target& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
75 inline Target& WithId(const char* value) { SetId(value); return *this;}
77
79
82 inline const Aws::String& GetArn() const{ return m_arn; }
83 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
84 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
85 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
86 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
87 inline Target& WithArn(const Aws::String& value) { SetArn(value); return *this;}
88 inline Target& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
89 inline Target& WithArn(const char* value) { SetArn(value); return *this;}
91
93
98 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
99 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
100 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
101 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
102 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
103 inline Target& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
104 inline Target& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
105 inline Target& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
107
109
115 inline const Aws::String& GetInput() const{ return m_input; }
116 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
117 inline void SetInput(const Aws::String& value) { m_inputHasBeenSet = true; m_input = value; }
118 inline void SetInput(Aws::String&& value) { m_inputHasBeenSet = true; m_input = std::move(value); }
119 inline void SetInput(const char* value) { m_inputHasBeenSet = true; m_input.assign(value); }
120 inline Target& WithInput(const Aws::String& value) { SetInput(value); return *this;}
121 inline Target& WithInput(Aws::String&& value) { SetInput(std::move(value)); return *this;}
122 inline Target& WithInput(const char* value) { SetInput(value); return *this;}
124
126
132 inline const Aws::String& GetInputPath() const{ return m_inputPath; }
133 inline bool InputPathHasBeenSet() const { return m_inputPathHasBeenSet; }
134 inline void SetInputPath(const Aws::String& value) { m_inputPathHasBeenSet = true; m_inputPath = value; }
135 inline void SetInputPath(Aws::String&& value) { m_inputPathHasBeenSet = true; m_inputPath = std::move(value); }
136 inline void SetInputPath(const char* value) { m_inputPathHasBeenSet = true; m_inputPath.assign(value); }
137 inline Target& WithInputPath(const Aws::String& value) { SetInputPath(value); return *this;}
138 inline Target& WithInputPath(Aws::String&& value) { SetInputPath(std::move(value)); return *this;}
139 inline Target& WithInputPath(const char* value) { SetInputPath(value); return *this;}
141
143
148 inline const InputTransformer& GetInputTransformer() const{ return m_inputTransformer; }
149 inline bool InputTransformerHasBeenSet() const { return m_inputTransformerHasBeenSet; }
150 inline void SetInputTransformer(const InputTransformer& value) { m_inputTransformerHasBeenSet = true; m_inputTransformer = value; }
151 inline void SetInputTransformer(InputTransformer&& value) { m_inputTransformerHasBeenSet = true; m_inputTransformer = std::move(value); }
152 inline Target& WithInputTransformer(const InputTransformer& value) { SetInputTransformer(value); return *this;}
153 inline Target& WithInputTransformer(InputTransformer&& value) { SetInputTransformer(std::move(value)); return *this;}
155
157
162 inline const KinesisParameters& GetKinesisParameters() const{ return m_kinesisParameters; }
163 inline bool KinesisParametersHasBeenSet() const { return m_kinesisParametersHasBeenSet; }
164 inline void SetKinesisParameters(const KinesisParameters& value) { m_kinesisParametersHasBeenSet = true; m_kinesisParameters = value; }
165 inline void SetKinesisParameters(KinesisParameters&& value) { m_kinesisParametersHasBeenSet = true; m_kinesisParameters = std::move(value); }
166 inline Target& WithKinesisParameters(const KinesisParameters& value) { SetKinesisParameters(value); return *this;}
167 inline Target& WithKinesisParameters(KinesisParameters&& value) { SetKinesisParameters(std::move(value)); return *this;}
169
171
175 inline const RunCommandParameters& GetRunCommandParameters() const{ return m_runCommandParameters; }
176 inline bool RunCommandParametersHasBeenSet() const { return m_runCommandParametersHasBeenSet; }
177 inline void SetRunCommandParameters(const RunCommandParameters& value) { m_runCommandParametersHasBeenSet = true; m_runCommandParameters = value; }
178 inline void SetRunCommandParameters(RunCommandParameters&& value) { m_runCommandParametersHasBeenSet = true; m_runCommandParameters = std::move(value); }
180 inline Target& WithRunCommandParameters(RunCommandParameters&& value) { SetRunCommandParameters(std::move(value)); return *this;}
182
184
191 inline const EcsParameters& GetEcsParameters() const{ return m_ecsParameters; }
192 inline bool EcsParametersHasBeenSet() const { return m_ecsParametersHasBeenSet; }
193 inline void SetEcsParameters(const EcsParameters& value) { m_ecsParametersHasBeenSet = true; m_ecsParameters = value; }
194 inline void SetEcsParameters(EcsParameters&& value) { m_ecsParametersHasBeenSet = true; m_ecsParameters = std::move(value); }
195 inline Target& WithEcsParameters(const EcsParameters& value) { SetEcsParameters(value); return *this;}
196 inline Target& WithEcsParameters(EcsParameters&& value) { SetEcsParameters(std::move(value)); return *this;}
198
200
206 inline const BatchParameters& GetBatchParameters() const{ return m_batchParameters; }
207 inline bool BatchParametersHasBeenSet() const { return m_batchParametersHasBeenSet; }
208 inline void SetBatchParameters(const BatchParameters& value) { m_batchParametersHasBeenSet = true; m_batchParameters = value; }
209 inline void SetBatchParameters(BatchParameters&& value) { m_batchParametersHasBeenSet = true; m_batchParameters = std::move(value); }
210 inline Target& WithBatchParameters(const BatchParameters& value) { SetBatchParameters(value); return *this;}
211 inline Target& WithBatchParameters(BatchParameters&& value) { SetBatchParameters(std::move(value)); return *this;}
213
215
220 inline const SqsParameters& GetSqsParameters() const{ return m_sqsParameters; }
221 inline bool SqsParametersHasBeenSet() const { return m_sqsParametersHasBeenSet; }
222 inline void SetSqsParameters(const SqsParameters& value) { m_sqsParametersHasBeenSet = true; m_sqsParameters = value; }
223 inline void SetSqsParameters(SqsParameters&& value) { m_sqsParametersHasBeenSet = true; m_sqsParameters = std::move(value); }
224 inline Target& WithSqsParameters(const SqsParameters& value) { SetSqsParameters(value); return *this;}
225 inline Target& WithSqsParameters(SqsParameters&& value) { SetSqsParameters(std::move(value)); return *this;}
227
229
238 inline const HttpParameters& GetHttpParameters() const{ return m_httpParameters; }
239 inline bool HttpParametersHasBeenSet() const { return m_httpParametersHasBeenSet; }
240 inline void SetHttpParameters(const HttpParameters& value) { m_httpParametersHasBeenSet = true; m_httpParameters = value; }
241 inline void SetHttpParameters(HttpParameters&& value) { m_httpParametersHasBeenSet = true; m_httpParameters = std::move(value); }
242 inline Target& WithHttpParameters(const HttpParameters& value) { SetHttpParameters(value); return *this;}
243 inline Target& WithHttpParameters(HttpParameters&& value) { SetHttpParameters(std::move(value)); return *this;}
245
247
253 inline const RedshiftDataParameters& GetRedshiftDataParameters() const{ return m_redshiftDataParameters; }
254 inline bool RedshiftDataParametersHasBeenSet() const { return m_redshiftDataParametersHasBeenSet; }
255 inline void SetRedshiftDataParameters(const RedshiftDataParameters& value) { m_redshiftDataParametersHasBeenSet = true; m_redshiftDataParameters = value; }
256 inline void SetRedshiftDataParameters(RedshiftDataParameters&& value) { m_redshiftDataParametersHasBeenSet = true; m_redshiftDataParameters = std::move(value); }
258 inline Target& WithRedshiftDataParameters(RedshiftDataParameters&& value) { SetRedshiftDataParameters(std::move(value)); return *this;}
260
262
268 inline const SageMakerPipelineParameters& GetSageMakerPipelineParameters() const{ return m_sageMakerPipelineParameters; }
269 inline bool SageMakerPipelineParametersHasBeenSet() const { return m_sageMakerPipelineParametersHasBeenSet; }
270 inline void SetSageMakerPipelineParameters(const SageMakerPipelineParameters& value) { m_sageMakerPipelineParametersHasBeenSet = true; m_sageMakerPipelineParameters = value; }
271 inline void SetSageMakerPipelineParameters(SageMakerPipelineParameters&& value) { m_sageMakerPipelineParametersHasBeenSet = true; m_sageMakerPipelineParameters = std::move(value); }
275
277
281 inline const DeadLetterConfig& GetDeadLetterConfig() const{ return m_deadLetterConfig; }
282 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
283 inline void SetDeadLetterConfig(const DeadLetterConfig& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = value; }
284 inline void SetDeadLetterConfig(DeadLetterConfig&& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = std::move(value); }
285 inline Target& WithDeadLetterConfig(const DeadLetterConfig& value) { SetDeadLetterConfig(value); return *this;}
286 inline Target& WithDeadLetterConfig(DeadLetterConfig&& value) { SetDeadLetterConfig(std::move(value)); return *this;}
288
290
294 inline const RetryPolicy& GetRetryPolicy() const{ return m_retryPolicy; }
295 inline bool RetryPolicyHasBeenSet() const { return m_retryPolicyHasBeenSet; }
296 inline void SetRetryPolicy(const RetryPolicy& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = value; }
297 inline void SetRetryPolicy(RetryPolicy&& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = std::move(value); }
298 inline Target& WithRetryPolicy(const RetryPolicy& value) { SetRetryPolicy(value); return *this;}
299 inline Target& WithRetryPolicy(RetryPolicy&& value) { SetRetryPolicy(std::move(value)); return *this;}
301
303
307 inline const AppSyncParameters& GetAppSyncParameters() const{ return m_appSyncParameters; }
308 inline bool AppSyncParametersHasBeenSet() const { return m_appSyncParametersHasBeenSet; }
309 inline void SetAppSyncParameters(const AppSyncParameters& value) { m_appSyncParametersHasBeenSet = true; m_appSyncParameters = value; }
310 inline void SetAppSyncParameters(AppSyncParameters&& value) { m_appSyncParametersHasBeenSet = true; m_appSyncParameters = std::move(value); }
311 inline Target& WithAppSyncParameters(const AppSyncParameters& value) { SetAppSyncParameters(value); return *this;}
312 inline Target& WithAppSyncParameters(AppSyncParameters&& value) { SetAppSyncParameters(std::move(value)); return *this;}
314 private:
315
316 Aws::String m_id;
317 bool m_idHasBeenSet = false;
318
319 Aws::String m_arn;
320 bool m_arnHasBeenSet = false;
321
322 Aws::String m_roleArn;
323 bool m_roleArnHasBeenSet = false;
324
325 Aws::String m_input;
326 bool m_inputHasBeenSet = false;
327
328 Aws::String m_inputPath;
329 bool m_inputPathHasBeenSet = false;
330
331 InputTransformer m_inputTransformer;
332 bool m_inputTransformerHasBeenSet = false;
333
334 KinesisParameters m_kinesisParameters;
335 bool m_kinesisParametersHasBeenSet = false;
336
337 RunCommandParameters m_runCommandParameters;
338 bool m_runCommandParametersHasBeenSet = false;
339
340 EcsParameters m_ecsParameters;
341 bool m_ecsParametersHasBeenSet = false;
342
343 BatchParameters m_batchParameters;
344 bool m_batchParametersHasBeenSet = false;
345
346 SqsParameters m_sqsParameters;
347 bool m_sqsParametersHasBeenSet = false;
348
349 HttpParameters m_httpParameters;
350 bool m_httpParametersHasBeenSet = false;
351
352 RedshiftDataParameters m_redshiftDataParameters;
353 bool m_redshiftDataParametersHasBeenSet = false;
354
355 SageMakerPipelineParameters m_sageMakerPipelineParameters;
356 bool m_sageMakerPipelineParametersHasBeenSet = false;
357
358 DeadLetterConfig m_deadLetterConfig;
359 bool m_deadLetterConfigHasBeenSet = false;
360
361 RetryPolicy m_retryPolicy;
362 bool m_retryPolicyHasBeenSet = false;
363
364 AppSyncParameters m_appSyncParameters;
365 bool m_appSyncParametersHasBeenSet = false;
366 };
367
368} // namespace Model
369} // namespace EventBridge
370} // namespace Aws
Target & WithId(const char *value)
Definition Target.h:75
Target & WithRoleArn(Aws::String &&value)
Definition Target.h:104
bool DeadLetterConfigHasBeenSet() const
Definition Target.h:282
void SetRetryPolicy(const RetryPolicy &value)
Definition Target.h:296
Target & WithRoleArn(const Aws::String &value)
Definition Target.h:103
const InputTransformer & GetInputTransformer() const
Definition Target.h:148
void SetInputPath(Aws::String &&value)
Definition Target.h:135
void SetId(const Aws::String &value)
Definition Target.h:70
Target & WithSqsParameters(SqsParameters &&value)
Definition Target.h:225
bool AppSyncParametersHasBeenSet() const
Definition Target.h:308
void SetHttpParameters(HttpParameters &&value)
Definition Target.h:241
void SetRunCommandParameters(const RunCommandParameters &value)
Definition Target.h:177
Target & WithBatchParameters(const BatchParameters &value)
Definition Target.h:210
const EcsParameters & GetEcsParameters() const
Definition Target.h:191
void SetBatchParameters(BatchParameters &&value)
Definition Target.h:209
void SetInput(const char *value)
Definition Target.h:119
AWS_EVENTBRIDGE_API Target(Aws::Utils::Json::JsonView jsonValue)
Target & WithSageMakerPipelineParameters(SageMakerPipelineParameters &&value)
Definition Target.h:273
void SetRetryPolicy(RetryPolicy &&value)
Definition Target.h:297
const Aws::String & GetInput() const
Definition Target.h:115
void SetRedshiftDataParameters(const RedshiftDataParameters &value)
Definition Target.h:255
void SetSqsParameters(const SqsParameters &value)
Definition Target.h:222
AWS_EVENTBRIDGE_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
Target & WithDeadLetterConfig(DeadLetterConfig &&value)
Definition Target.h:286
Target & WithId(const Aws::String &value)
Definition Target.h:73
const DeadLetterConfig & GetDeadLetterConfig() const
Definition Target.h:281
void SetDeadLetterConfig(DeadLetterConfig &&value)
Definition Target.h:284
Target & WithInputTransformer(const InputTransformer &value)
Definition Target.h:152
void SetEcsParameters(EcsParameters &&value)
Definition Target.h:194
const KinesisParameters & GetKinesisParameters() const
Definition Target.h:162
bool SageMakerPipelineParametersHasBeenSet() const
Definition Target.h:269
Target & WithRunCommandParameters(const RunCommandParameters &value)
Definition Target.h:179
const HttpParameters & GetHttpParameters() const
Definition Target.h:238
const Aws::String & GetArn() const
Definition Target.h:82
void SetBatchParameters(const BatchParameters &value)
Definition Target.h:208
const Aws::String & GetInputPath() const
Definition Target.h:132
Target & WithKinesisParameters(KinesisParameters &&value)
Definition Target.h:167
void SetInput(const Aws::String &value)
Definition Target.h:117
Target & WithDeadLetterConfig(const DeadLetterConfig &value)
Definition Target.h:285
void SetInputPath(const Aws::String &value)
Definition Target.h:134
void SetId(const char *value)
Definition Target.h:72
bool InputTransformerHasBeenSet() const
Definition Target.h:149
void SetInputTransformer(InputTransformer &&value)
Definition Target.h:151
void SetInput(Aws::String &&value)
Definition Target.h:118
bool KinesisParametersHasBeenSet() const
Definition Target.h:163
Target & WithKinesisParameters(const KinesisParameters &value)
Definition Target.h:166
void SetArn(Aws::String &&value)
Definition Target.h:85
Target & WithRetryPolicy(RetryPolicy &&value)
Definition Target.h:299
const RetryPolicy & GetRetryPolicy() const
Definition Target.h:294
const AppSyncParameters & GetAppSyncParameters() const
Definition Target.h:307
Target & WithRunCommandParameters(RunCommandParameters &&value)
Definition Target.h:180
Target & WithBatchParameters(BatchParameters &&value)
Definition Target.h:211
Target & WithHttpParameters(HttpParameters &&value)
Definition Target.h:243
void SetArn(const char *value)
Definition Target.h:86
Target & WithRoleArn(const char *value)
Definition Target.h:105
void SetSqsParameters(SqsParameters &&value)
Definition Target.h:223
const RedshiftDataParameters & GetRedshiftDataParameters() const
Definition Target.h:253
void SetId(Aws::String &&value)
Definition Target.h:71
bool RetryPolicyHasBeenSet() const
Definition Target.h:295
Target & WithInput(const char *value)
Definition Target.h:122
Target & WithInput(Aws::String &&value)
Definition Target.h:121
bool SqsParametersHasBeenSet() const
Definition Target.h:221
Target & WithInputPath(Aws::String &&value)
Definition Target.h:138
Target & WithAppSyncParameters(AppSyncParameters &&value)
Definition Target.h:312
void SetRoleArn(Aws::String &&value)
Definition Target.h:101
Target & WithRedshiftDataParameters(const RedshiftDataParameters &value)
Definition Target.h:257
void SetRedshiftDataParameters(RedshiftDataParameters &&value)
Definition Target.h:256
Target & WithInput(const Aws::String &value)
Definition Target.h:120
Target & WithRetryPolicy(const RetryPolicy &value)
Definition Target.h:298
void SetKinesisParameters(const KinesisParameters &value)
Definition Target.h:164
void SetSageMakerPipelineParameters(SageMakerPipelineParameters &&value)
Definition Target.h:271
Target & WithEcsParameters(EcsParameters &&value)
Definition Target.h:196
Target & WithAppSyncParameters(const AppSyncParameters &value)
Definition Target.h:311
bool RedshiftDataParametersHasBeenSet() const
Definition Target.h:254
bool EcsParametersHasBeenSet() const
Definition Target.h:192
bool HttpParametersHasBeenSet() const
Definition Target.h:239
Target & WithId(Aws::String &&value)
Definition Target.h:74
void SetInputPath(const char *value)
Definition Target.h:136
bool RoleArnHasBeenSet() const
Definition Target.h:99
Target & WithInputTransformer(InputTransformer &&value)
Definition Target.h:153
Target & WithSageMakerPipelineParameters(const SageMakerPipelineParameters &value)
Definition Target.h:272
void SetDeadLetterConfig(const DeadLetterConfig &value)
Definition Target.h:283
void SetRunCommandParameters(RunCommandParameters &&value)
Definition Target.h:178
void SetAppSyncParameters(const AppSyncParameters &value)
Definition Target.h:309
const SqsParameters & GetSqsParameters() const
Definition Target.h:220
Target & WithInputPath(const char *value)
Definition Target.h:139
Target & WithArn(const Aws::String &value)
Definition Target.h:87
Target & WithArn(Aws::String &&value)
Definition Target.h:88
bool InputPathHasBeenSet() const
Definition Target.h:133
const SageMakerPipelineParameters & GetSageMakerPipelineParameters() const
Definition Target.h:268
Target & WithHttpParameters(const HttpParameters &value)
Definition Target.h:242
Target & WithRedshiftDataParameters(RedshiftDataParameters &&value)
Definition Target.h:258
void SetSageMakerPipelineParameters(const SageMakerPipelineParameters &value)
Definition Target.h:270
const BatchParameters & GetBatchParameters() const
Definition Target.h:206
void SetAppSyncParameters(AppSyncParameters &&value)
Definition Target.h:310
Target & WithArn(const char *value)
Definition Target.h:89
void SetRoleArn(const char *value)
Definition Target.h:102
const Aws::String & GetRoleArn() const
Definition Target.h:98
bool BatchParametersHasBeenSet() const
Definition Target.h:207
void SetEcsParameters(const EcsParameters &value)
Definition Target.h:193
void SetHttpParameters(const HttpParameters &value)
Definition Target.h:240
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInputTransformer(const InputTransformer &value)
Definition Target.h:150
void SetArn(const Aws::String &value)
Definition Target.h:84
void SetKinesisParameters(KinesisParameters &&value)
Definition Target.h:165
Target & WithEcsParameters(const EcsParameters &value)
Definition Target.h:195
void SetRoleArn(const Aws::String &value)
Definition Target.h:100
const Aws::String & GetId() const
Definition Target.h:68
const RunCommandParameters & GetRunCommandParameters() const
Definition Target.h:175
Target & WithSqsParameters(const SqsParameters &value)
Definition Target.h:224
AWS_EVENTBRIDGE_API Target()
bool RunCommandParametersHasBeenSet() const
Definition Target.h:176
Target & WithInputPath(const Aws::String &value)
Definition Target.h:137
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue