AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Step.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/model/HadoopStepConfig.h>
10#include <aws/elasticmapreduce/model/ActionOnFailure.h>
11#include <aws/elasticmapreduce/model/StepStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EMR
25{
26namespace Model
27{
28
34 class Step
35 {
36 public:
37 AWS_EMR_API Step();
38 AWS_EMR_API Step(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EMR_API Step& operator=(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline Step& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline Step& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline Step& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline Step& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline Step& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline Step& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const HadoopStepConfig& GetConfig() const{ return m_config; }
76 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
77 inline void SetConfig(const HadoopStepConfig& value) { m_configHasBeenSet = true; m_config = value; }
78 inline void SetConfig(HadoopStepConfig&& value) { m_configHasBeenSet = true; m_config = std::move(value); }
79 inline Step& WithConfig(const HadoopStepConfig& value) { SetConfig(value); return *this;}
80 inline Step& WithConfig(HadoopStepConfig&& value) { SetConfig(std::move(value)); return *this;}
82
84
101 inline const ActionOnFailure& GetActionOnFailure() const{ return m_actionOnFailure; }
102 inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
103 inline void SetActionOnFailure(const ActionOnFailure& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; }
104 inline void SetActionOnFailure(ActionOnFailure&& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = std::move(value); }
105 inline Step& WithActionOnFailure(const ActionOnFailure& value) { SetActionOnFailure(value); return *this;}
106 inline Step& WithActionOnFailure(ActionOnFailure&& value) { SetActionOnFailure(std::move(value)); return *this;}
108
110
113 inline const StepStatus& GetStatus() const{ return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 inline void SetStatus(const StepStatus& value) { m_statusHasBeenSet = true; m_status = value; }
116 inline void SetStatus(StepStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
117 inline Step& WithStatus(const StepStatus& value) { SetStatus(value); return *this;}
118 inline Step& WithStatus(StepStatus&& value) { SetStatus(std::move(value)); return *this;}
120
122
130 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
131 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
132 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
133 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
134 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
135 inline Step& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
136 inline Step& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
137 inline Step& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
139 private:
140
141 Aws::String m_id;
142 bool m_idHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 HadoopStepConfig m_config;
148 bool m_configHasBeenSet = false;
149
150 ActionOnFailure m_actionOnFailure;
151 bool m_actionOnFailureHasBeenSet = false;
152
153 StepStatus m_status;
154 bool m_statusHasBeenSet = false;
155
156 Aws::String m_executionRoleArn;
157 bool m_executionRoleArnHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace EMR
162} // namespace Aws
Step & WithStatus(StepStatus &&value)
Definition Step.h:118
const StepStatus & GetStatus() const
Definition Step.h:113
Step & WithExecutionRoleArn(const char *value)
Definition Step.h:137
AWS_EMR_API Step(Aws::Utils::Json::JsonView jsonValue)
Step & WithExecutionRoleArn(Aws::String &&value)
Definition Step.h:136
Step & WithName(const char *value)
Definition Step.h:68
void SetId(const char *value)
Definition Step.h:51
const ActionOnFailure & GetActionOnFailure() const
Definition Step.h:101
Step & WithId(const char *value)
Definition Step.h:54
void SetActionOnFailure(ActionOnFailure &&value)
Definition Step.h:104
void SetName(const char *value)
Definition Step.h:65
void SetActionOnFailure(const ActionOnFailure &value)
Definition Step.h:103
bool NameHasBeenSet() const
Definition Step.h:62
void SetId(Aws::String &&value)
Definition Step.h:50
void SetName(Aws::String &&value)
Definition Step.h:64
bool ActionOnFailureHasBeenSet() const
Definition Step.h:102
void SetConfig(HadoopStepConfig &&value)
Definition Step.h:78
AWS_EMR_API Step & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(StepStatus &&value)
Definition Step.h:116
Step & WithConfig(HadoopStepConfig &&value)
Definition Step.h:80
void SetExecutionRoleArn(Aws::String &&value)
Definition Step.h:133
bool ExecutionRoleArnHasBeenSet() const
Definition Step.h:131
Step & WithName(Aws::String &&value)
Definition Step.h:67
Step & WithName(const Aws::String &value)
Definition Step.h:66
Step & WithId(Aws::String &&value)
Definition Step.h:53
bool ConfigHasBeenSet() const
Definition Step.h:76
Step & WithId(const Aws::String &value)
Definition Step.h:52
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConfig(const HadoopStepConfig &value)
Definition Step.h:77
void SetName(const Aws::String &value)
Definition Step.h:63
void SetStatus(const StepStatus &value)
Definition Step.h:115
bool IdHasBeenSet() const
Definition Step.h:48
const Aws::String & GetName() const
Definition Step.h:61
void SetExecutionRoleArn(const char *value)
Definition Step.h:134
const Aws::String & GetExecutionRoleArn() const
Definition Step.h:130
void SetId(const Aws::String &value)
Definition Step.h:49
bool StatusHasBeenSet() const
Definition Step.h:114
Step & WithExecutionRoleArn(const Aws::String &value)
Definition Step.h:135
Step & WithActionOnFailure(const ActionOnFailure &value)
Definition Step.h:105
Step & WithActionOnFailure(ActionOnFailure &&value)
Definition Step.h:106
AWS_EMR_API Step()
Step & WithConfig(const HadoopStepConfig &value)
Definition Step.h:79
const Aws::String & GetId() const
Definition Step.h:47
Step & WithStatus(const StepStatus &value)
Definition Step.h:117
const HadoopStepConfig & GetConfig() const
Definition Step.h:75
void SetExecutionRoleArn(const Aws::String &value)
Definition Step.h:132
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue