AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StepConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.h>
9#include <aws/elasticmapreduce/model/ActionOnFailure.h>
10#include <aws/elasticmapreduce/model/HadoopJarStepConfig.h>
11#include <aws/elasticmapreduce/model/StepMonitoringConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR {
23namespace Model {
24
31 public:
32 AWS_EMR_API StepConfig() = default;
33 AWS_EMR_API StepConfig(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 StepConfig& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
77 inline ActionOnFailure GetActionOnFailure() const { return m_actionOnFailure; }
78 inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
80 m_actionOnFailureHasBeenSet = true;
81 m_actionOnFailure = value;
82 }
84 SetActionOnFailure(value);
85 return *this;
86 }
88
90
93 inline const HadoopJarStepConfig& GetHadoopJarStep() const { return m_hadoopJarStep; }
94 inline bool HadoopJarStepHasBeenSet() const { return m_hadoopJarStepHasBeenSet; }
95 template <typename HadoopJarStepT = HadoopJarStepConfig>
96 void SetHadoopJarStep(HadoopJarStepT&& value) {
97 m_hadoopJarStepHasBeenSet = true;
98 m_hadoopJarStep = std::forward<HadoopJarStepT>(value);
99 }
100 template <typename HadoopJarStepT = HadoopJarStepConfig>
101 StepConfig& WithHadoopJarStep(HadoopJarStepT&& value) {
102 SetHadoopJarStep(std::forward<HadoopJarStepT>(value));
103 return *this;
104 }
106
108
111 inline const StepMonitoringConfiguration& GetStepMonitoringConfiguration() const { return m_stepMonitoringConfiguration; }
112 inline bool StepMonitoringConfigurationHasBeenSet() const { return m_stepMonitoringConfigurationHasBeenSet; }
113 template <typename StepMonitoringConfigurationT = StepMonitoringConfiguration>
114 void SetStepMonitoringConfiguration(StepMonitoringConfigurationT&& value) {
115 m_stepMonitoringConfigurationHasBeenSet = true;
116 m_stepMonitoringConfiguration = std::forward<StepMonitoringConfigurationT>(value);
117 }
118 template <typename StepMonitoringConfigurationT = StepMonitoringConfiguration>
119 StepConfig& WithStepMonitoringConfiguration(StepMonitoringConfigurationT&& value) {
120 SetStepMonitoringConfiguration(std::forward<StepMonitoringConfigurationT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_name;
126
127 ActionOnFailure m_actionOnFailure{ActionOnFailure::NOT_SET};
128
129 HadoopJarStepConfig m_hadoopJarStep;
130
131 StepMonitoringConfiguration m_stepMonitoringConfiguration;
132 bool m_nameHasBeenSet = false;
133 bool m_actionOnFailureHasBeenSet = false;
134 bool m_hadoopJarStepHasBeenSet = false;
135 bool m_stepMonitoringConfigurationHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace EMR
140} // namespace Aws
void SetActionOnFailure(ActionOnFailure value)
Definition StepConfig.h:79
bool ActionOnFailureHasBeenSet() const
Definition StepConfig.h:78
AWS_EMR_API StepConfig(Aws::Utils::Json::JsonView jsonValue)
void SetHadoopJarStep(HadoopJarStepT &&value)
Definition StepConfig.h:96
StepConfig & WithName(NameT &&value)
Definition StepConfig.h:49
ActionOnFailure GetActionOnFailure() const
Definition StepConfig.h:77
AWS_EMR_API StepConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
bool HadoopJarStepHasBeenSet() const
Definition StepConfig.h:94
StepConfig & WithActionOnFailure(ActionOnFailure value)
Definition StepConfig.h:83
const StepMonitoringConfiguration & GetStepMonitoringConfiguration() const
Definition StepConfig.h:111
StepConfig & WithHadoopJarStep(HadoopJarStepT &&value)
Definition StepConfig.h:101
const HadoopJarStepConfig & GetHadoopJarStep() const
Definition StepConfig.h:93
void SetName(NameT &&value)
Definition StepConfig.h:44
bool StepMonitoringConfigurationHasBeenSet() const
Definition StepConfig.h:112
AWS_EMR_API StepConfig()=default
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
StepConfig & WithStepMonitoringConfiguration(StepMonitoringConfigurationT &&value)
Definition StepConfig.h:119
void SetStepMonitoringConfiguration(StepMonitoringConfigurationT &&value)
Definition StepConfig.h:114
const Aws::String & GetName() const
Definition StepConfig.h:41
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue