AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StepSummary.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
35 {
36 public:
37 AWS_EMR_API StepSummary();
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 StepSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline StepSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline StepSummary& 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 StepSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline StepSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline StepSummary& 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 StepSummary& WithConfig(const HadoopStepConfig& value) { SetConfig(value); return *this;}
80 inline StepSummary& WithConfig(HadoopStepConfig&& value) { SetConfig(std::move(value)); return *this;}
82
84
89 inline const ActionOnFailure& GetActionOnFailure() const{ return m_actionOnFailure; }
90 inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
91 inline void SetActionOnFailure(const ActionOnFailure& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; }
92 inline void SetActionOnFailure(ActionOnFailure&& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = std::move(value); }
93 inline StepSummary& WithActionOnFailure(const ActionOnFailure& value) { SetActionOnFailure(value); return *this;}
94 inline StepSummary& WithActionOnFailure(ActionOnFailure&& value) { SetActionOnFailure(std::move(value)); return *this;}
96
98
101 inline const StepStatus& GetStatus() const{ return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 inline void SetStatus(const StepStatus& value) { m_statusHasBeenSet = true; m_status = value; }
104 inline void SetStatus(StepStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
105 inline StepSummary& WithStatus(const StepStatus& value) { SetStatus(value); return *this;}
106 inline StepSummary& WithStatus(StepStatus&& value) { SetStatus(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_id;
111 bool m_idHasBeenSet = false;
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 HadoopStepConfig m_config;
117 bool m_configHasBeenSet = false;
118
119 ActionOnFailure m_actionOnFailure;
120 bool m_actionOnFailureHasBeenSet = false;
121
122 StepStatus m_status;
123 bool m_statusHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace EMR
128} // namespace Aws
StepSummary & WithId(Aws::String &&value)
Definition StepSummary.h:53
const Aws::String & GetId() const
Definition StepSummary.h:47
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const StepStatus & GetStatus() const
StepSummary & WithActionOnFailure(ActionOnFailure &&value)
Definition StepSummary.h:94
void SetStatus(StepStatus &&value)
const Aws::String & GetName() const
Definition StepSummary.h:61
void SetActionOnFailure(ActionOnFailure &&value)
Definition StepSummary.h:92
bool ActionOnFailureHasBeenSet() const
Definition StepSummary.h:90
AWS_EMR_API StepSummary(Aws::Utils::Json::JsonView jsonValue)
StepSummary & WithId(const char *value)
Definition StepSummary.h:54
const ActionOnFailure & GetActionOnFailure() const
Definition StepSummary.h:89
AWS_EMR_API StepSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
StepSummary & WithConfig(HadoopStepConfig &&value)
Definition StepSummary.h:80
StepSummary & WithActionOnFailure(const ActionOnFailure &value)
Definition StepSummary.h:93
StepSummary & WithName(const char *value)
Definition StepSummary.h:68
void SetId(const Aws::String &value)
Definition StepSummary.h:49
StepSummary & WithConfig(const HadoopStepConfig &value)
Definition StepSummary.h:79
StepSummary & WithStatus(const StepStatus &value)
void SetName(const char *value)
Definition StepSummary.h:65
void SetName(Aws::String &&value)
Definition StepSummary.h:64
void SetConfig(const HadoopStepConfig &value)
Definition StepSummary.h:77
void SetId(Aws::String &&value)
Definition StepSummary.h:50
StepSummary & WithId(const Aws::String &value)
Definition StepSummary.h:52
void SetId(const char *value)
Definition StepSummary.h:51
StepSummary & WithName(Aws::String &&value)
Definition StepSummary.h:67
void SetName(const Aws::String &value)
Definition StepSummary.h:63
StepSummary & WithStatus(StepStatus &&value)
void SetConfig(HadoopStepConfig &&value)
Definition StepSummary.h:78
void SetActionOnFailure(const ActionOnFailure &value)
Definition StepSummary.h:91
void SetStatus(const StepStatus &value)
const HadoopStepConfig & GetConfig() const
Definition StepSummary.h:75
StepSummary & WithName(const Aws::String &value)
Definition StepSummary.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue