AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/StepStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR {
23namespace Model {
24
30class Step {
31 public:
32 AWS_EMR_API Step() = default;
33 AWS_EMR_API Step(Aws::Utils::Json::JsonView jsonValue);
34 AWS_EMR_API Step& operator=(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 Step& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 Step& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const HadoopStepConfig& GetConfig() const { return m_config; }
78 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
79 template <typename ConfigT = HadoopStepConfig>
80 void SetConfig(ConfigT&& value) {
81 m_configHasBeenSet = true;
82 m_config = std::forward<ConfigT>(value);
83 }
84 template <typename ConfigT = HadoopStepConfig>
85 Step& WithConfig(ConfigT&& value) {
86 SetConfig(std::forward<ConfigT>(value));
87 return *this;
88 }
90
92
109 inline ActionOnFailure GetActionOnFailure() const { return m_actionOnFailure; }
110 inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
112 m_actionOnFailureHasBeenSet = true;
113 m_actionOnFailure = value;
114 }
116 SetActionOnFailure(value);
117 return *this;
118 }
120
122
125 inline const StepStatus& GetStatus() const { return m_status; }
126 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
127 template <typename StatusT = StepStatus>
128 void SetStatus(StatusT&& value) {
129 m_statusHasBeenSet = true;
130 m_status = std::forward<StatusT>(value);
131 }
132 template <typename StatusT = StepStatus>
133 Step& WithStatus(StatusT&& value) {
134 SetStatus(std::forward<StatusT>(value));
135 return *this;
136 }
138
140
148 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
149 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
150 template <typename ExecutionRoleArnT = Aws::String>
151 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
152 m_executionRoleArnHasBeenSet = true;
153 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
154 }
155 template <typename ExecutionRoleArnT = Aws::String>
156 Step& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
157 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetLogUri() const { return m_logUri; }
167 inline bool LogUriHasBeenSet() const { return m_logUriHasBeenSet; }
168 template <typename LogUriT = Aws::String>
169 void SetLogUri(LogUriT&& value) {
170 m_logUriHasBeenSet = true;
171 m_logUri = std::forward<LogUriT>(value);
172 }
173 template <typename LogUriT = Aws::String>
174 Step& WithLogUri(LogUriT&& value) {
175 SetLogUri(std::forward<LogUriT>(value));
176 return *this;
177 }
179
181
185 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
186 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
187 template <typename EncryptionKeyArnT = Aws::String>
188 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
189 m_encryptionKeyArnHasBeenSet = true;
190 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
191 }
192 template <typename EncryptionKeyArnT = Aws::String>
193 Step& WithEncryptionKeyArn(EncryptionKeyArnT&& value) {
194 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_id;
200
201 Aws::String m_name;
202
203 HadoopStepConfig m_config;
204
205 ActionOnFailure m_actionOnFailure{ActionOnFailure::NOT_SET};
206
207 StepStatus m_status;
208
209 Aws::String m_executionRoleArn;
210
211 Aws::String m_logUri;
212
213 Aws::String m_encryptionKeyArn;
214 bool m_idHasBeenSet = false;
215 bool m_nameHasBeenSet = false;
216 bool m_configHasBeenSet = false;
217 bool m_actionOnFailureHasBeenSet = false;
218 bool m_statusHasBeenSet = false;
219 bool m_executionRoleArnHasBeenSet = false;
220 bool m_logUriHasBeenSet = false;
221 bool m_encryptionKeyArnHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace EMR
226} // namespace Aws
Step & WithId(IdT &&value)
Definition Step.h:49
const StepStatus & GetStatus() const
Definition Step.h:125
Step & WithActionOnFailure(ActionOnFailure value)
Definition Step.h:115
void SetName(NameT &&value)
Definition Step.h:62
AWS_EMR_API Step(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API Step()=default
void SetActionOnFailure(ActionOnFailure value)
Definition Step.h:111
Step & WithExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Step.h:156
bool NameHasBeenSet() const
Definition Step.h:60
Step & WithConfig(ConfigT &&value)
Definition Step.h:85
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
Definition Step.h:188
void SetConfig(ConfigT &&value)
Definition Step.h:80
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Step.h:151
bool ActionOnFailureHasBeenSet() const
Definition Step.h:110
AWS_EMR_API Step & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ExecutionRoleArnHasBeenSet() const
Definition Step.h:149
Step & WithLogUri(LogUriT &&value)
Definition Step.h:174
bool ConfigHasBeenSet() const
Definition Step.h:78
Step & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
Definition Step.h:193
Step & WithName(NameT &&value)
Definition Step.h:67
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
Step & WithStatus(StatusT &&value)
Definition Step.h:133
void SetId(IdT &&value)
Definition Step.h:44
bool IdHasBeenSet() const
Definition Step.h:42
const Aws::String & GetName() const
Definition Step.h:59
void SetStatus(StatusT &&value)
Definition Step.h:128
const Aws::String & GetExecutionRoleArn() const
Definition Step.h:148
const Aws::String & GetLogUri() const
Definition Step.h:166
bool StatusHasBeenSet() const
Definition Step.h:126
ActionOnFailure GetActionOnFailure() const
Definition Step.h:109
bool EncryptionKeyArnHasBeenSet() const
Definition Step.h:186
const Aws::String & GetEncryptionKeyArn() const
Definition Step.h:185
const Aws::String & GetId() const
Definition Step.h:41
void SetLogUri(LogUriT &&value)
Definition Step.h:169
const HadoopStepConfig & GetConfig() const
Definition Step.h:77
bool LogUriHasBeenSet() const
Definition Step.h:167
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue