AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StepConfig.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/ActionOnFailure.h>
10#include <aws/elasticmapreduce/model/HadoopJarStepConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMR
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EMR_API StepConfig();
37 AWS_EMR_API StepConfig(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline StepConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline StepConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline StepConfig& WithName(const char* value) { SetName(value); return *this;}
55
57
78 inline const ActionOnFailure& GetActionOnFailure() const{ return m_actionOnFailure; }
79 inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
80 inline void SetActionOnFailure(const ActionOnFailure& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; }
81 inline void SetActionOnFailure(ActionOnFailure&& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = std::move(value); }
82 inline StepConfig& WithActionOnFailure(const ActionOnFailure& value) { SetActionOnFailure(value); return *this;}
83 inline StepConfig& WithActionOnFailure(ActionOnFailure&& value) { SetActionOnFailure(std::move(value)); return *this;}
85
87
90 inline const HadoopJarStepConfig& GetHadoopJarStep() const{ return m_hadoopJarStep; }
91 inline bool HadoopJarStepHasBeenSet() const { return m_hadoopJarStepHasBeenSet; }
92 inline void SetHadoopJarStep(const HadoopJarStepConfig& value) { m_hadoopJarStepHasBeenSet = true; m_hadoopJarStep = value; }
93 inline void SetHadoopJarStep(HadoopJarStepConfig&& value) { m_hadoopJarStepHasBeenSet = true; m_hadoopJarStep = std::move(value); }
94 inline StepConfig& WithHadoopJarStep(const HadoopJarStepConfig& value) { SetHadoopJarStep(value); return *this;}
95 inline StepConfig& WithHadoopJarStep(HadoopJarStepConfig&& value) { SetHadoopJarStep(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 ActionOnFailure m_actionOnFailure;
103 bool m_actionOnFailureHasBeenSet = false;
104
105 HadoopJarStepConfig m_hadoopJarStep;
106 bool m_hadoopJarStepHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EMR
111} // namespace Aws
bool ActionOnFailureHasBeenSet() const
Definition StepConfig.h:79
void SetActionOnFailure(ActionOnFailure &&value)
Definition StepConfig.h:81
void SetHadoopJarStep(HadoopJarStepConfig &&value)
Definition StepConfig.h:93
void SetHadoopJarStep(const HadoopJarStepConfig &value)
Definition StepConfig.h:92
AWS_EMR_API StepConfig(Aws::Utils::Json::JsonView jsonValue)
StepConfig & WithActionOnFailure(const ActionOnFailure &value)
Definition StepConfig.h:82
void SetActionOnFailure(const ActionOnFailure &value)
Definition StepConfig.h:80
StepConfig & WithHadoopJarStep(const HadoopJarStepConfig &value)
Definition StepConfig.h:94
AWS_EMR_API StepConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const ActionOnFailure & GetActionOnFailure() const
Definition StepConfig.h:78
StepConfig & WithName(Aws::String &&value)
Definition StepConfig.h:52
StepConfig & WithName(const char *value)
Definition StepConfig.h:53
void SetName(const Aws::String &value)
Definition StepConfig.h:48
bool HadoopJarStepHasBeenSet() const
Definition StepConfig.h:91
StepConfig & WithActionOnFailure(ActionOnFailure &&value)
Definition StepConfig.h:83
const HadoopJarStepConfig & GetHadoopJarStep() const
Definition StepConfig.h:90
StepConfig & WithName(const Aws::String &value)
Definition StepConfig.h:51
void SetName(const char *value)
Definition StepConfig.h:50
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition StepConfig.h:46
void SetName(Aws::String &&value)
Definition StepConfig.h:49
StepConfig & WithHadoopJarStep(HadoopJarStepConfig &&value)
Definition StepConfig.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue