AWS SDK for C++  1.9.19
AWS SDK for C++
Step.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace EMR
25 {
26 namespace Model
27 {
28 
35  {
36  public:
37  Step();
41 
42 
46  inline const Aws::String& GetId() const{ return m_id; }
47 
51  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 
56  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 
66  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 
71  inline Step& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline Step& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
81  inline Step& WithId(const char* value) { SetId(value); return *this;}
82 
83 
87  inline const Aws::String& GetName() const{ return m_name; }
88 
92  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 
97  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
98 
102  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 
107  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
108 
112  inline Step& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
117  inline Step& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
122  inline Step& WithName(const char* value) { SetName(value); return *this;}
123 
124 
128  inline const HadoopStepConfig& GetConfig() const{ return m_config; }
129 
133  inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
134 
138  inline void SetConfig(const HadoopStepConfig& value) { m_configHasBeenSet = true; m_config = value; }
139 
143  inline void SetConfig(HadoopStepConfig&& value) { m_configHasBeenSet = true; m_config = std::move(value); }
144 
148  inline Step& WithConfig(const HadoopStepConfig& value) { SetConfig(value); return *this;}
149 
153  inline Step& WithConfig(HadoopStepConfig&& value) { SetConfig(std::move(value)); return *this;}
154 
155 
161  inline const ActionOnFailure& GetActionOnFailure() const{ return m_actionOnFailure; }
162 
168  inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
169 
175  inline void SetActionOnFailure(const ActionOnFailure& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; }
176 
182  inline void SetActionOnFailure(ActionOnFailure&& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = std::move(value); }
183 
189  inline Step& WithActionOnFailure(const ActionOnFailure& value) { SetActionOnFailure(value); return *this;}
190 
196  inline Step& WithActionOnFailure(ActionOnFailure&& value) { SetActionOnFailure(std::move(value)); return *this;}
197 
198 
202  inline const StepStatus& GetStatus() const{ return m_status; }
203 
207  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
208 
212  inline void SetStatus(const StepStatus& value) { m_statusHasBeenSet = true; m_status = value; }
213 
217  inline void SetStatus(StepStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
218 
222  inline Step& WithStatus(const StepStatus& value) { SetStatus(value); return *this;}
223 
227  inline Step& WithStatus(StepStatus&& value) { SetStatus(std::move(value)); return *this;}
228 
229  private:
230 
231  Aws::String m_id;
232  bool m_idHasBeenSet;
233 
234  Aws::String m_name;
235  bool m_nameHasBeenSet;
236 
237  HadoopStepConfig m_config;
238  bool m_configHasBeenSet;
239 
240  ActionOnFailure m_actionOnFailure;
241  bool m_actionOnFailureHasBeenSet;
242 
243  StepStatus m_status;
244  bool m_statusHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace EMR
249 } // namespace Aws
Aws::EMR::Model::Step
Definition: Step.h:35
Aws::EMR::Model::Step::SetName
void SetName(const char *value)
Definition: Step.h:107
Aws::EMR::Model::Step::WithId
Step & WithId(const Aws::String &value)
Definition: Step.h:71
Aws::EMR::Model::Step::SetConfig
void SetConfig(const HadoopStepConfig &value)
Definition: Step.h:138
Aws::EMR::Model::Step::SetName
void SetName(Aws::String &&value)
Definition: Step.h:102
Aws::EMR::Model::Step::GetName
const Aws::String & GetName() const
Definition: Step.h:87
Aws::EMR::Model::Step::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Step.h:207
Aws::EMR::Model::Step::SetId
void SetId(const char *value)
Definition: Step.h:66
Aws::EMR::Model::Step::operator=
Step & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionOnFailure.h
EMR_EXPORTS.h
Aws::EMR::Model::Step::WithName
Step & WithName(const char *value)
Definition: Step.h:122
Aws::EMR::Model::ActionOnFailure
ActionOnFailure
Definition: ActionOnFailure.h:17
Aws::EMR::Model::StepStatus
Definition: StepStatus.h:36
Aws::EMR::Model::Step::SetStatus
void SetStatus(const StepStatus &value)
Definition: Step.h:212
Aws::EMR::Model::Step::WithStatus
Step & WithStatus(const StepStatus &value)
Definition: Step.h:222
Aws::EMR::Model::Step::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::Step::SetName
void SetName(const Aws::String &value)
Definition: Step.h:97
Aws::EMR::Model::Step::WithActionOnFailure
Step & WithActionOnFailure(const ActionOnFailure &value)
Definition: Step.h:189
Aws::EMR::Model::Step::GetId
const Aws::String & GetId() const
Definition: Step.h:46
Aws::EMR::Model::Step::ConfigHasBeenSet
bool ConfigHasBeenSet() const
Definition: Step.h:133
Aws::EMR::Model::Step::Step
Step()
Aws::EMR::Model::Step::WithStatus
Step & WithStatus(StepStatus &&value)
Definition: Step.h:227
Aws::EMR::Model::Step::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Step.h:92
Aws::EMR::Model::Step::WithActionOnFailure
Step & WithActionOnFailure(ActionOnFailure &&value)
Definition: Step.h:196
Aws::EMR::Model::Step::WithConfig
Step & WithConfig(const HadoopStepConfig &value)
Definition: Step.h:148
Aws::EMR::Model::Step::WithId
Step & WithId(const char *value)
Definition: Step.h:81
Aws::EMR::Model::Step::GetActionOnFailure
const ActionOnFailure & GetActionOnFailure() const
Definition: Step.h:161
Aws::EMR::Model::Step::SetConfig
void SetConfig(HadoopStepConfig &&value)
Definition: Step.h:143
Aws::EMR::Model::Step::ActionOnFailureHasBeenSet
bool ActionOnFailureHasBeenSet() const
Definition: Step.h:168
Aws::EMR::Model::Step::GetStatus
const StepStatus & GetStatus() const
Definition: Step.h:202
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::EMR::Model::Step::Step
Step(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
HadoopStepConfig.h
Aws::EMR::Model::Step::WithName
Step & WithName(const Aws::String &value)
Definition: Step.h:112
Aws::EMR::Model::Step::SetActionOnFailure
void SetActionOnFailure(ActionOnFailure &&value)
Definition: Step.h:182
Aws::EMR::Model::Step::SetId
void SetId(Aws::String &&value)
Definition: Step.h:61
Aws::EMR::Model::Step::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Step.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::Step::SetId
void SetId(const Aws::String &value)
Definition: Step.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::Step::WithConfig
Step & WithConfig(HadoopStepConfig &&value)
Definition: Step.h:153
Aws::EMR::Model::Step::GetConfig
const HadoopStepConfig & GetConfig() const
Definition: Step.h:128
Aws::EMR::Model::Step::SetStatus
void SetStatus(StepStatus &&value)
Definition: Step.h:217
Aws::EMR::Model::Step::WithName
Step & WithName(Aws::String &&value)
Definition: Step.h:117
StepStatus.h
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::Step::SetActionOnFailure
void SetActionOnFailure(const ActionOnFailure &value)
Definition: Step.h:175
Aws::EMR::Model::Step::WithId
Step & WithId(Aws::String &&value)
Definition: Step.h:76
Aws::EMR::Model::HadoopStepConfig
Definition: HadoopStepConfig.h:36