AWS SDK for C++  1.9.19
AWS SDK for C++
StepConfig.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace EMR
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline StepConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline StepConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline StepConfig& WithName(const char* value) { SetName(value); return *this;}
81 
82 
88  inline const ActionOnFailure& GetActionOnFailure() const{ return m_actionOnFailure; }
89 
95  inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
96 
102  inline void SetActionOnFailure(const ActionOnFailure& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; }
103 
109  inline void SetActionOnFailure(ActionOnFailure&& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = std::move(value); }
110 
116  inline StepConfig& WithActionOnFailure(const ActionOnFailure& value) { SetActionOnFailure(value); return *this;}
117 
123  inline StepConfig& WithActionOnFailure(ActionOnFailure&& value) { SetActionOnFailure(std::move(value)); return *this;}
124 
125 
129  inline const HadoopJarStepConfig& GetHadoopJarStep() const{ return m_hadoopJarStep; }
130 
134  inline bool HadoopJarStepHasBeenSet() const { return m_hadoopJarStepHasBeenSet; }
135 
139  inline void SetHadoopJarStep(const HadoopJarStepConfig& value) { m_hadoopJarStepHasBeenSet = true; m_hadoopJarStep = value; }
140 
144  inline void SetHadoopJarStep(HadoopJarStepConfig&& value) { m_hadoopJarStepHasBeenSet = true; m_hadoopJarStep = std::move(value); }
145 
149  inline StepConfig& WithHadoopJarStep(const HadoopJarStepConfig& value) { SetHadoopJarStep(value); return *this;}
150 
154  inline StepConfig& WithHadoopJarStep(HadoopJarStepConfig&& value) { SetHadoopJarStep(std::move(value)); return *this;}
155 
156  private:
157 
158  Aws::String m_name;
159  bool m_nameHasBeenSet;
160 
161  ActionOnFailure m_actionOnFailure;
162  bool m_actionOnFailureHasBeenSet;
163 
164  HadoopJarStepConfig m_hadoopJarStep;
165  bool m_hadoopJarStepHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace EMR
170 } // namespace Aws
Aws::EMR::Model::StepConfig::ActionOnFailureHasBeenSet
bool ActionOnFailureHasBeenSet() const
Definition: StepConfig.h:95
Aws::EMR::Model::StepConfig::StepConfig
StepConfig()
Aws::EMR::Model::StepConfig::operator=
StepConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::StepConfig::SetHadoopJarStep
void SetHadoopJarStep(const HadoopJarStepConfig &value)
Definition: StepConfig.h:139
ActionOnFailure.h
EMR_EXPORTS.h
Aws::EMR::Model::ActionOnFailure
ActionOnFailure
Definition: ActionOnFailure.h:17
HadoopJarStepConfig.h
Aws::EMR::Model::StepConfig::SetName
void SetName(Aws::String &&value)
Definition: StepConfig.h:60
Aws::EMR::Model::StepConfig::WithActionOnFailure
StepConfig & WithActionOnFailure(ActionOnFailure &&value)
Definition: StepConfig.h:123
Aws::EMR::Model::StepConfig::SetName
void SetName(const Aws::String &value)
Definition: StepConfig.h:55
Aws::EMR::Model::StepConfig::SetHadoopJarStep
void SetHadoopJarStep(HadoopJarStepConfig &&value)
Definition: StepConfig.h:144
Aws::EMR::Model::HadoopJarStepConfig
Definition: HadoopJarStepConfig.h:36
Aws::EMR::Model::StepConfig
Definition: StepConfig.h:34
Aws::EMR::Model::StepConfig::WithName
StepConfig & WithName(const char *value)
Definition: StepConfig.h:80
Aws::EMR::Model::StepConfig::WithHadoopJarStep
StepConfig & WithHadoopJarStep(const HadoopJarStepConfig &value)
Definition: StepConfig.h:149
Aws::EMR::Model::StepConfig::SetActionOnFailure
void SetActionOnFailure(const ActionOnFailure &value)
Definition: StepConfig.h:102
Aws::EMR::Model::StepConfig::StepConfig
StepConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::StepConfig::WithHadoopJarStep
StepConfig & WithHadoopJarStep(HadoopJarStepConfig &&value)
Definition: StepConfig.h:154
Aws::EMR::Model::StepConfig::GetName
const Aws::String & GetName() const
Definition: StepConfig.h:45
Aws::EMR::Model::StepConfig::HadoopJarStepHasBeenSet
bool HadoopJarStepHasBeenSet() const
Definition: StepConfig.h:134
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
Aws::EMR::Model::StepConfig::WithName
StepConfig & WithName(const Aws::String &value)
Definition: StepConfig.h:70
Aws::EMR::Model::StepConfig::NameHasBeenSet
bool NameHasBeenSet() const
Definition: StepConfig.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::StepConfig::WithName
StepConfig & WithName(Aws::String &&value)
Definition: StepConfig.h:75
Aws::EMR::Model::StepConfig::WithActionOnFailure
StepConfig & WithActionOnFailure(const ActionOnFailure &value)
Definition: StepConfig.h:116
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::StepConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::StepConfig::SetName
void SetName(const char *value)
Definition: StepConfig.h:65
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::StepConfig::GetActionOnFailure
const ActionOnFailure & GetActionOnFailure() const
Definition: StepConfig.h:88
Aws::EMR::Model::StepConfig::SetActionOnFailure
void SetActionOnFailure(ActionOnFailure &&value)
Definition: StepConfig.h:109
Aws::EMR::Model::StepConfig::GetHadoopJarStep
const HadoopJarStepConfig & GetHadoopJarStep() const
Definition: StepConfig.h:129