AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 Step& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 Step& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const HadoopStepConfig& GetConfig() const { return m_config; }
72 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
73 template<typename ConfigT = HadoopStepConfig>
74 void SetConfig(ConfigT&& value) { m_configHasBeenSet = true; m_config = std::forward<ConfigT>(value); }
75 template<typename ConfigT = HadoopStepConfig>
76 Step& WithConfig(ConfigT&& value) { SetConfig(std::forward<ConfigT>(value)); return *this;}
78
80
97 inline ActionOnFailure GetActionOnFailure() const { return m_actionOnFailure; }
98 inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
99 inline void SetActionOnFailure(ActionOnFailure value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; }
100 inline Step& WithActionOnFailure(ActionOnFailure value) { SetActionOnFailure(value); return *this;}
102
104
107 inline const StepStatus& GetStatus() const { return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
109 template<typename StatusT = StepStatus>
110 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
111 template<typename StatusT = StepStatus>
112 Step& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
114
116
124 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
125 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
126 template<typename ExecutionRoleArnT = Aws::String>
127 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
128 template<typename ExecutionRoleArnT = Aws::String>
129 Step& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
131 private:
132
133 Aws::String m_id;
134 bool m_idHasBeenSet = false;
135
136 Aws::String m_name;
137 bool m_nameHasBeenSet = false;
138
139 HadoopStepConfig m_config;
140 bool m_configHasBeenSet = false;
141
142 ActionOnFailure m_actionOnFailure{ActionOnFailure::NOT_SET};
143 bool m_actionOnFailureHasBeenSet = false;
144
145 StepStatus m_status;
146 bool m_statusHasBeenSet = false;
147
148 Aws::String m_executionRoleArn;
149 bool m_executionRoleArnHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace EMR
154} // namespace Aws
Step & WithId(IdT &&value)
Definition Step.h:52
const StepStatus & GetStatus() const
Definition Step.h:107
Step & WithActionOnFailure(ActionOnFailure value)
Definition Step.h:100
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:99
Step & WithExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Step.h:129
bool NameHasBeenSet() const
Definition Step.h:60
Step & WithConfig(ConfigT &&value)
Definition Step.h:76
void SetConfig(ConfigT &&value)
Definition Step.h:74
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Step.h:127
bool ActionOnFailureHasBeenSet() const
Definition Step.h:98
AWS_EMR_API Step & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ExecutionRoleArnHasBeenSet() const
Definition Step.h:125
bool ConfigHasBeenSet() const
Definition Step.h:72
Step & WithName(NameT &&value)
Definition Step.h:64
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
Step & WithStatus(StatusT &&value)
Definition Step.h:112
void SetId(IdT &&value)
Definition Step.h:50
bool IdHasBeenSet() const
Definition Step.h:48
const Aws::String & GetName() const
Definition Step.h:59
void SetStatus(StatusT &&value)
Definition Step.h:110
const Aws::String & GetExecutionRoleArn() const
Definition Step.h:124
bool StatusHasBeenSet() const
Definition Step.h:108
ActionOnFailure GetActionOnFailure() const
Definition Step.h:97
const Aws::String & GetId() const
Definition Step.h:47
const HadoopStepConfig & GetConfig() const
Definition Step.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue