AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StepSummary.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/HadoopStepConfig.h>
11#include <aws/elasticmapreduce/model/StepStatus.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 StepSummary() = default;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 StepSummary& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
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) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 StepSummary& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const HadoopStepConfig& GetConfig() const { return m_config; }
78 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
79 template <typename ConfigT = HadoopStepConfig>
80 void SetConfig(ConfigT&& value) {
81 m_configHasBeenSet = true;
82 m_config = std::forward<ConfigT>(value);
83 }
84 template <typename ConfigT = HadoopStepConfig>
85 StepSummary& WithConfig(ConfigT&& value) {
86 SetConfig(std::forward<ConfigT>(value));
87 return *this;
88 }
90
92
97 inline ActionOnFailure GetActionOnFailure() const { return m_actionOnFailure; }
98 inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
100 m_actionOnFailureHasBeenSet = true;
101 m_actionOnFailure = value;
102 }
104 SetActionOnFailure(value);
105 return *this;
106 }
108
110
113 inline const StepStatus& GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 template <typename StatusT = StepStatus>
116 void SetStatus(StatusT&& value) {
117 m_statusHasBeenSet = true;
118 m_status = std::forward<StatusT>(value);
119 }
120 template <typename StatusT = StepStatus>
121 StepSummary& WithStatus(StatusT&& value) {
122 SetStatus(std::forward<StatusT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetLogUri() const { return m_logUri; }
132 inline bool LogUriHasBeenSet() const { return m_logUriHasBeenSet; }
133 template <typename LogUriT = Aws::String>
134 void SetLogUri(LogUriT&& value) {
135 m_logUriHasBeenSet = true;
136 m_logUri = std::forward<LogUriT>(value);
137 }
138 template <typename LogUriT = Aws::String>
139 StepSummary& WithLogUri(LogUriT&& value) {
140 SetLogUri(std::forward<LogUriT>(value));
141 return *this;
142 }
144
146
150 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
151 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
152 template <typename EncryptionKeyArnT = Aws::String>
153 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
154 m_encryptionKeyArnHasBeenSet = true;
155 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
156 }
157 template <typename EncryptionKeyArnT = Aws::String>
158 StepSummary& WithEncryptionKeyArn(EncryptionKeyArnT&& value) {
159 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_id;
165
166 Aws::String m_name;
167
168 HadoopStepConfig m_config;
169
170 ActionOnFailure m_actionOnFailure{ActionOnFailure::NOT_SET};
171
172 StepStatus m_status;
173
174 Aws::String m_logUri;
175
176 Aws::String m_encryptionKeyArn;
177 bool m_idHasBeenSet = false;
178 bool m_nameHasBeenSet = false;
179 bool m_configHasBeenSet = false;
180 bool m_actionOnFailureHasBeenSet = false;
181 bool m_statusHasBeenSet = false;
182 bool m_logUriHasBeenSet = false;
183 bool m_encryptionKeyArnHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace EMR
188} // namespace Aws
StepSummary & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
const Aws::String & GetEncryptionKeyArn() const
const Aws::String & GetId() const
Definition StepSummary.h:41
AWS_EMR_API StepSummary()=default
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogUri(LogUriT &&value)
ActionOnFailure GetActionOnFailure() const
Definition StepSummary.h:97
StepSummary & WithLogUri(LogUriT &&value)
const StepStatus & GetStatus() const
StepSummary & WithConfig(ConfigT &&value)
Definition StepSummary.h:85
const Aws::String & GetName() const
Definition StepSummary.h:59
void SetName(NameT &&value)
Definition StepSummary.h:62
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
StepSummary & WithActionOnFailure(ActionOnFailure value)
void SetActionOnFailure(ActionOnFailure value)
Definition StepSummary.h:99
bool ActionOnFailureHasBeenSet() const
Definition StepSummary.h:98
AWS_EMR_API StepSummary(Aws::Utils::Json::JsonView jsonValue)
StepSummary & WithId(IdT &&value)
Definition StepSummary.h:49
AWS_EMR_API StepSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(StatusT &&value)
void SetId(IdT &&value)
Definition StepSummary.h:44
StepSummary & WithStatus(StatusT &&value)
StepSummary & WithName(NameT &&value)
Definition StepSummary.h:67
bool EncryptionKeyArnHasBeenSet() const
const Aws::String & GetLogUri() const
void SetConfig(ConfigT &&value)
Definition StepSummary.h:80
const HadoopStepConfig & GetConfig() const
Definition StepSummary.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue