AWS SDK for C++  1.9.20
AWS SDK for C++
StepSummary.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:
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 StepSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline StepSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
81  inline StepSummary& 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 StepSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
117  inline StepSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
122  inline StepSummary& 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 StepSummary& WithConfig(const HadoopStepConfig& value) { SetConfig(value); return *this;}
149 
153  inline StepSummary& WithConfig(HadoopStepConfig&& value) { SetConfig(std::move(value)); return *this;}
154 
155 
162  inline const ActionOnFailure& GetActionOnFailure() const{ return m_actionOnFailure; }
163 
170  inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
171 
178  inline void SetActionOnFailure(const ActionOnFailure& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; }
179 
186  inline void SetActionOnFailure(ActionOnFailure&& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = std::move(value); }
187 
194  inline StepSummary& WithActionOnFailure(const ActionOnFailure& value) { SetActionOnFailure(value); return *this;}
195 
202  inline StepSummary& WithActionOnFailure(ActionOnFailure&& value) { SetActionOnFailure(std::move(value)); return *this;}
203 
204 
208  inline const StepStatus& GetStatus() const{ return m_status; }
209 
213  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
214 
218  inline void SetStatus(const StepStatus& value) { m_statusHasBeenSet = true; m_status = value; }
219 
223  inline void SetStatus(StepStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
224 
228  inline StepSummary& WithStatus(const StepStatus& value) { SetStatus(value); return *this;}
229 
233  inline StepSummary& WithStatus(StepStatus&& value) { SetStatus(std::move(value)); return *this;}
234 
235  private:
236 
237  Aws::String m_id;
238  bool m_idHasBeenSet;
239 
240  Aws::String m_name;
241  bool m_nameHasBeenSet;
242 
243  HadoopStepConfig m_config;
244  bool m_configHasBeenSet;
245 
246  ActionOnFailure m_actionOnFailure;
247  bool m_actionOnFailureHasBeenSet;
248 
249  StepStatus m_status;
250  bool m_statusHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace EMR
255 } // namespace Aws
Aws::EMR::Model::StepSummary::WithConfig
StepSummary & WithConfig(const HadoopStepConfig &value)
Definition: StepSummary.h:148
Aws::EMR::Model::StepSummary::SetActionOnFailure
void SetActionOnFailure(const ActionOnFailure &value)
Definition: StepSummary.h:178
Aws::EMR::Model::StepSummary::WithConfig
StepSummary & WithConfig(HadoopStepConfig &&value)
Definition: StepSummary.h:153
Aws::EMR::Model::StepSummary
Definition: StepSummary.h:35
Aws::EMR::Model::StepSummary::GetStatus
const StepStatus & GetStatus() const
Definition: StepSummary.h:208
ActionOnFailure.h
Aws::EMR::Model::StepSummary::GetActionOnFailure
const ActionOnFailure & GetActionOnFailure() const
Definition: StepSummary.h:162
EMR_EXPORTS.h
Aws::EMR::Model::ActionOnFailure
ActionOnFailure
Definition: ActionOnFailure.h:17
Aws::EMR::Model::StepSummary::StepSummary
StepSummary()
Aws::EMR::Model::StepSummary::SetId
void SetId(Aws::String &&value)
Definition: StepSummary.h:61
Aws::EMR::Model::StepStatus
Definition: StepStatus.h:36
Aws::EMR::Model::StepSummary::WithId
StepSummary & WithId(Aws::String &&value)
Definition: StepSummary.h:76
Aws::EMR::Model::StepSummary::GetId
const Aws::String & GetId() const
Definition: StepSummary.h:46
Aws::EMR::Model::StepSummary::SetStatus
void SetStatus(StepStatus &&value)
Definition: StepSummary.h:223
Aws::EMR::Model::StepSummary::WithName
StepSummary & WithName(Aws::String &&value)
Definition: StepSummary.h:117
Aws::EMR::Model::StepSummary::SetConfig
void SetConfig(const HadoopStepConfig &value)
Definition: StepSummary.h:138
Aws::EMR::Model::StepSummary::WithStatus
StepSummary & WithStatus(StepStatus &&value)
Definition: StepSummary.h:233
Aws::EMR::Model::StepSummary::GetConfig
const HadoopStepConfig & GetConfig() const
Definition: StepSummary.h:128
Aws::EMR::Model::StepSummary::StepSummary
StepSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::StepSummary::WithId
StepSummary & WithId(const Aws::String &value)
Definition: StepSummary.h:71
Aws::EMR::Model::StepSummary::WithName
StepSummary & WithName(const Aws::String &value)
Definition: StepSummary.h:112
Aws::EMR::Model::StepSummary::NameHasBeenSet
bool NameHasBeenSet() const
Definition: StepSummary.h:92
Aws::EMR::Model::StepSummary::ActionOnFailureHasBeenSet
bool ActionOnFailureHasBeenSet() const
Definition: StepSummary.h:170
Aws::EMR::Model::StepSummary::IdHasBeenSet
bool IdHasBeenSet() const
Definition: StepSummary.h:51
Aws::EMR::Model::StepSummary::WithName
StepSummary & WithName(const char *value)
Definition: StepSummary.h:122
Aws::EMR::Model::StepSummary::operator=
StepSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::StepSummary::WithActionOnFailure
StepSummary & WithActionOnFailure(ActionOnFailure &&value)
Definition: StepSummary.h:202
Aws::EMR::Model::StepSummary::SetName
void SetName(const Aws::String &value)
Definition: StepSummary.h:97
Aws::EMR::Model::StepSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::StepSummary::WithId
StepSummary & WithId(const char *value)
Definition: StepSummary.h:81
Aws::EMR::Model::StepSummary::ConfigHasBeenSet
bool ConfigHasBeenSet() const
Definition: StepSummary.h:133
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
HadoopStepConfig.h
Aws::EMR::Model::StepSummary::SetId
void SetId(const Aws::String &value)
Definition: StepSummary.h:56
Aws::EMR::Model::StepSummary::WithStatus
StepSummary & WithStatus(const StepStatus &value)
Definition: StepSummary.h:228
Aws::EMR::Model::StepSummary::SetId
void SetId(const char *value)
Definition: StepSummary.h:66
Aws::EMR::Model::StepSummary::SetStatus
void SetStatus(const StepStatus &value)
Definition: StepSummary.h:218
Aws::EMR::Model::StepSummary::SetName
void SetName(const char *value)
Definition: StepSummary.h:107
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::StepSummary::GetName
const Aws::String & GetName() const
Definition: StepSummary.h:87
Aws::EMR::Model::StepSummary::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: StepSummary.h:213
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::StepSummary::SetConfig
void SetConfig(HadoopStepConfig &&value)
Definition: StepSummary.h:143
Aws::EMR::Model::StepSummary::WithActionOnFailure
StepSummary & WithActionOnFailure(const ActionOnFailure &value)
Definition: StepSummary.h:194
Aws::EMR::Model::StepSummary::SetActionOnFailure
void SetActionOnFailure(ActionOnFailure &&value)
Definition: StepSummary.h:186
Aws::EMR::Model::StepSummary::SetName
void SetName(Aws::String &&value)
Definition: StepSummary.h:102
StepStatus.h
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::HadoopStepConfig
Definition: HadoopStepConfig.h:36