AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchParameters.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/BatchArrayProperties.h>
10#include <aws/eventbridge/model/BatchRetryStrategy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EventBridge {
22namespace Model {
23
31 public:
32 AWS_EVENTBRIDGE_API BatchParameters() = default;
33 AWS_EVENTBRIDGE_API BatchParameters(Aws::Utils::Json::JsonView jsonValue);
34 AWS_EVENTBRIDGE_API BatchParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetJobDefinition() const { return m_jobDefinition; }
43 inline bool JobDefinitionHasBeenSet() const { return m_jobDefinitionHasBeenSet; }
44 template <typename JobDefinitionT = Aws::String>
45 void SetJobDefinition(JobDefinitionT&& value) {
46 m_jobDefinitionHasBeenSet = true;
47 m_jobDefinition = std::forward<JobDefinitionT>(value);
48 }
49 template <typename JobDefinitionT = Aws::String>
50 BatchParameters& WithJobDefinition(JobDefinitionT&& value) {
51 SetJobDefinition(std::forward<JobDefinitionT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetJobName() const { return m_jobName; }
62 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
63 template <typename JobNameT = Aws::String>
64 void SetJobName(JobNameT&& value) {
65 m_jobNameHasBeenSet = true;
66 m_jobName = std::forward<JobNameT>(value);
67 }
68 template <typename JobNameT = Aws::String>
69 BatchParameters& WithJobName(JobNameT&& value) {
70 SetJobName(std::forward<JobNameT>(value));
71 return *this;
72 }
74
76
82 inline const BatchArrayProperties& GetArrayProperties() const { return m_arrayProperties; }
83 inline bool ArrayPropertiesHasBeenSet() const { return m_arrayPropertiesHasBeenSet; }
84 template <typename ArrayPropertiesT = BatchArrayProperties>
85 void SetArrayProperties(ArrayPropertiesT&& value) {
86 m_arrayPropertiesHasBeenSet = true;
87 m_arrayProperties = std::forward<ArrayPropertiesT>(value);
88 }
89 template <typename ArrayPropertiesT = BatchArrayProperties>
90 BatchParameters& WithArrayProperties(ArrayPropertiesT&& value) {
91 SetArrayProperties(std::forward<ArrayPropertiesT>(value));
92 return *this;
93 }
95
97
103 inline const BatchRetryStrategy& GetRetryStrategy() const { return m_retryStrategy; }
104 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
105 template <typename RetryStrategyT = BatchRetryStrategy>
106 void SetRetryStrategy(RetryStrategyT&& value) {
107 m_retryStrategyHasBeenSet = true;
108 m_retryStrategy = std::forward<RetryStrategyT>(value);
109 }
110 template <typename RetryStrategyT = BatchRetryStrategy>
111 BatchParameters& WithRetryStrategy(RetryStrategyT&& value) {
112 SetRetryStrategy(std::forward<RetryStrategyT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_jobDefinition;
118
119 Aws::String m_jobName;
120
121 BatchArrayProperties m_arrayProperties;
122
123 BatchRetryStrategy m_retryStrategy;
124 bool m_jobDefinitionHasBeenSet = false;
125 bool m_jobNameHasBeenSet = false;
126 bool m_arrayPropertiesHasBeenSet = false;
127 bool m_retryStrategyHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace EventBridge
132} // namespace Aws
BatchParameters & WithRetryStrategy(RetryStrategyT &&value)
AWS_EVENTBRIDGE_API BatchParameters()=default
BatchParameters & WithArrayProperties(ArrayPropertiesT &&value)
const BatchRetryStrategy & GetRetryStrategy() const
BatchParameters & WithJobDefinition(JobDefinitionT &&value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetJobDefinition() const
BatchParameters & WithJobName(JobNameT &&value)
void SetJobDefinition(JobDefinitionT &&value)
void SetRetryStrategy(RetryStrategyT &&value)
AWS_EVENTBRIDGE_API BatchParameters(Aws::Utils::Json::JsonView jsonValue)
const BatchArrayProperties & GetArrayProperties() const
const Aws::String & GetJobName() const
AWS_EVENTBRIDGE_API BatchParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArrayProperties(ArrayPropertiesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue