AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
Step.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.h>
9#include <aws/elasticmapreduce/model/ActionOnFailure.h>
10#include <aws/elasticmapreduce/model/HadoopStepConfig.h>
11#include <aws/elasticmapreduce/model/StepAdditionalInfo.h>
12#include <aws/elasticmapreduce/model/StepStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMR {
24namespace Model {
25
31class Step {
32 public:
33 AWS_EMR_API Step() = default;
34 AWS_EMR_API Step(Aws::Utils::Json::JsonView jsonValue);
35 AWS_EMR_API Step& operator=(Aws::Utils::Json::JsonView jsonValue);
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 Step& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 Step& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const HadoopStepConfig& GetConfig() const { return m_config; }
79 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
80 template <typename ConfigT = HadoopStepConfig>
81 void SetConfig(ConfigT&& value) {
82 m_configHasBeenSet = true;
83 m_config = std::forward<ConfigT>(value);
84 }
85 template <typename ConfigT = HadoopStepConfig>
86 Step& WithConfig(ConfigT&& value) {
87 SetConfig(std::forward<ConfigT>(value));
88 return *this;
89 }
91
93
110 inline ActionOnFailure GetActionOnFailure() const { return m_actionOnFailure; }
111 inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
113 m_actionOnFailureHasBeenSet = true;
114 m_actionOnFailure = value;
115 }
117 SetActionOnFailure(value);
118 return *this;
119 }
121
123
126 inline const StepStatus& GetStatus() const { return m_status; }
127 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
128 template <typename StatusT = StepStatus>
129 void SetStatus(StatusT&& value) {
130 m_statusHasBeenSet = true;
131 m_status = std::forward<StatusT>(value);
132 }
133 template <typename StatusT = StepStatus>
134 Step& WithStatus(StatusT&& value) {
135 SetStatus(std::forward<StatusT>(value));
136 return *this;
137 }
139
141
149 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
150 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
151 template <typename ExecutionRoleArnT = Aws::String>
152 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
153 m_executionRoleArnHasBeenSet = true;
154 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
155 }
156 template <typename ExecutionRoleArnT = Aws::String>
157 Step& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
158 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetLogUri() const { return m_logUri; }
168 inline bool LogUriHasBeenSet() const { return m_logUriHasBeenSet; }
169 template <typename LogUriT = Aws::String>
170 void SetLogUri(LogUriT&& value) {
171 m_logUriHasBeenSet = true;
172 m_logUri = std::forward<LogUriT>(value);
173 }
174 template <typename LogUriT = Aws::String>
175 Step& WithLogUri(LogUriT&& value) {
176 SetLogUri(std::forward<LogUriT>(value));
177 return *this;
178 }
180
182
186 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
187 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
188 template <typename EncryptionKeyArnT = Aws::String>
189 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
190 m_encryptionKeyArnHasBeenSet = true;
191 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
192 }
193 template <typename EncryptionKeyArnT = Aws::String>
194 Step& WithEncryptionKeyArn(EncryptionKeyArnT&& value) {
195 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
196 return *this;
197 }
199
201
205 inline const StepAdditionalInfo& GetAdditionalInfo() const { return m_additionalInfo; }
206 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
207 template <typename AdditionalInfoT = StepAdditionalInfo>
208 void SetAdditionalInfo(AdditionalInfoT&& value) {
209 m_additionalInfoHasBeenSet = true;
210 m_additionalInfo = std::forward<AdditionalInfoT>(value);
211 }
212 template <typename AdditionalInfoT = StepAdditionalInfo>
213 Step& WithAdditionalInfo(AdditionalInfoT&& value) {
214 SetAdditionalInfo(std::forward<AdditionalInfoT>(value));
215 return *this;
216 }
218 private:
219 Aws::String m_id;
220
221 Aws::String m_name;
222
223 HadoopStepConfig m_config;
224
225 ActionOnFailure m_actionOnFailure{ActionOnFailure::NOT_SET};
226
227 StepStatus m_status;
228
229 Aws::String m_executionRoleArn;
230
231 Aws::String m_logUri;
232
233 Aws::String m_encryptionKeyArn;
234
235 StepAdditionalInfo m_additionalInfo;
236 bool m_idHasBeenSet = false;
237 bool m_nameHasBeenSet = false;
238 bool m_configHasBeenSet = false;
239 bool m_actionOnFailureHasBeenSet = false;
240 bool m_statusHasBeenSet = false;
241 bool m_executionRoleArnHasBeenSet = false;
242 bool m_logUriHasBeenSet = false;
243 bool m_encryptionKeyArnHasBeenSet = false;
244 bool m_additionalInfoHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace EMR
249} // namespace Aws
Step & WithId(IdT &&value)
Definition Step.h:50
Step & WithAdditionalInfo(AdditionalInfoT &&value)
Definition Step.h:213
const StepStatus & GetStatus() const
Definition Step.h:126
Step & WithActionOnFailure(ActionOnFailure value)
Definition Step.h:116
void SetName(NameT &&value)
Definition Step.h:63
AWS_EMR_API Step(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API Step()=default
void SetActionOnFailure(ActionOnFailure value)
Definition Step.h:112
Step & WithExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Step.h:157
const StepAdditionalInfo & GetAdditionalInfo() const
Definition Step.h:205
bool NameHasBeenSet() const
Definition Step.h:61
Step & WithConfig(ConfigT &&value)
Definition Step.h:86
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
Definition Step.h:189
void SetConfig(ConfigT &&value)
Definition Step.h:81
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Step.h:152
bool ActionOnFailureHasBeenSet() const
Definition Step.h:111
bool AdditionalInfoHasBeenSet() const
Definition Step.h:206
AWS_EMR_API Step & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ExecutionRoleArnHasBeenSet() const
Definition Step.h:150
Step & WithLogUri(LogUriT &&value)
Definition Step.h:175
bool ConfigHasBeenSet() const
Definition Step.h:79
Step & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
Definition Step.h:194
Step & WithName(NameT &&value)
Definition Step.h:68
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
Step & WithStatus(StatusT &&value)
Definition Step.h:134
void SetId(IdT &&value)
Definition Step.h:45
bool IdHasBeenSet() const
Definition Step.h:43
void SetAdditionalInfo(AdditionalInfoT &&value)
Definition Step.h:208
const Aws::String & GetName() const
Definition Step.h:60
void SetStatus(StatusT &&value)
Definition Step.h:129
const Aws::String & GetExecutionRoleArn() const
Definition Step.h:149
const Aws::String & GetLogUri() const
Definition Step.h:167
bool StatusHasBeenSet() const
Definition Step.h:127
ActionOnFailure GetActionOnFailure() const
Definition Step.h:110
bool EncryptionKeyArnHasBeenSet() const
Definition Step.h:187
const Aws::String & GetEncryptionKeyArn() const
Definition Step.h:186
const Aws::String & GetId() const
Definition Step.h:42
void SetLogUri(LogUriT &&value)
Definition Step.h:170
const HadoopStepConfig & GetConfig() const
Definition Step.h:78
bool LogUriHasBeenSet() const
Definition Step.h:168
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue