AWS SDK for C++

AWS SDK for C++ Version 1.11.928

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/StepAdditionalInfo.h>
12#include <aws/elasticmapreduce/model/StepStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMR {
24namespace Model {
25
32 public:
33 AWS_EMR_API StepSummary() = default;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 StepSummary& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 StepSummary& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const HadoopStepConfig& GetConfig() const { return m_config; }
79 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
80 template <typename ConfigT = HadoopStepConfig>
81 void SetConfig(ConfigT&& value) {
82 m_configHasBeenSet = true;
83 m_config = std::forward<ConfigT>(value);
84 }
85 template <typename ConfigT = HadoopStepConfig>
86 StepSummary& WithConfig(ConfigT&& value) {
87 SetConfig(std::forward<ConfigT>(value));
88 return *this;
89 }
91
93
98 inline ActionOnFailure GetActionOnFailure() const { return m_actionOnFailure; }
99 inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
101 m_actionOnFailureHasBeenSet = true;
102 m_actionOnFailure = value;
103 }
105 SetActionOnFailure(value);
106 return *this;
107 }
109
111
114 inline const StepStatus& GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 template <typename StatusT = StepStatus>
117 void SetStatus(StatusT&& value) {
118 m_statusHasBeenSet = true;
119 m_status = std::forward<StatusT>(value);
120 }
121 template <typename StatusT = StepStatus>
122 StepSummary& WithStatus(StatusT&& value) {
123 SetStatus(std::forward<StatusT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetLogUri() const { return m_logUri; }
133 inline bool LogUriHasBeenSet() const { return m_logUriHasBeenSet; }
134 template <typename LogUriT = Aws::String>
135 void SetLogUri(LogUriT&& value) {
136 m_logUriHasBeenSet = true;
137 m_logUri = std::forward<LogUriT>(value);
138 }
139 template <typename LogUriT = Aws::String>
140 StepSummary& WithLogUri(LogUriT&& value) {
141 SetLogUri(std::forward<LogUriT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
152 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
153 template <typename EncryptionKeyArnT = Aws::String>
154 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
155 m_encryptionKeyArnHasBeenSet = true;
156 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
157 }
158 template <typename EncryptionKeyArnT = Aws::String>
159 StepSummary& WithEncryptionKeyArn(EncryptionKeyArnT&& value) {
160 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
161 return *this;
162 }
164
166
170 inline const StepAdditionalInfo& GetAdditionalInfo() const { return m_additionalInfo; }
171 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
172 template <typename AdditionalInfoT = StepAdditionalInfo>
173 void SetAdditionalInfo(AdditionalInfoT&& value) {
174 m_additionalInfoHasBeenSet = true;
175 m_additionalInfo = std::forward<AdditionalInfoT>(value);
176 }
177 template <typename AdditionalInfoT = StepAdditionalInfo>
178 StepSummary& WithAdditionalInfo(AdditionalInfoT&& value) {
179 SetAdditionalInfo(std::forward<AdditionalInfoT>(value));
180 return *this;
181 }
183 private:
184 Aws::String m_id;
185
186 Aws::String m_name;
187
188 HadoopStepConfig m_config;
189
190 ActionOnFailure m_actionOnFailure{ActionOnFailure::NOT_SET};
191
192 StepStatus m_status;
193
194 Aws::String m_logUri;
195
196 Aws::String m_encryptionKeyArn;
197
198 StepAdditionalInfo m_additionalInfo;
199 bool m_idHasBeenSet = false;
200 bool m_nameHasBeenSet = false;
201 bool m_configHasBeenSet = false;
202 bool m_actionOnFailureHasBeenSet = false;
203 bool m_statusHasBeenSet = false;
204 bool m_logUriHasBeenSet = false;
205 bool m_encryptionKeyArnHasBeenSet = false;
206 bool m_additionalInfoHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace EMR
211} // namespace Aws
StepSummary & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
const Aws::String & GetEncryptionKeyArn() const
const Aws::String & GetId() const
Definition StepSummary.h:42
AWS_EMR_API StepSummary()=default
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogUri(LogUriT &&value)
ActionOnFailure GetActionOnFailure() const
Definition StepSummary.h:98
StepSummary & WithLogUri(LogUriT &&value)
const StepStatus & GetStatus() const
void SetAdditionalInfo(AdditionalInfoT &&value)
StepSummary & WithConfig(ConfigT &&value)
Definition StepSummary.h:86
const Aws::String & GetName() const
Definition StepSummary.h:60
void SetName(NameT &&value)
Definition StepSummary.h:63
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
StepSummary & WithActionOnFailure(ActionOnFailure value)
void SetActionOnFailure(ActionOnFailure value)
bool ActionOnFailureHasBeenSet() const
Definition StepSummary.h:99
AWS_EMR_API StepSummary(Aws::Utils::Json::JsonView jsonValue)
StepSummary & WithId(IdT &&value)
Definition StepSummary.h:50
AWS_EMR_API StepSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(StatusT &&value)
void SetId(IdT &&value)
Definition StepSummary.h:45
bool AdditionalInfoHasBeenSet() const
StepSummary & WithStatus(StatusT &&value)
StepSummary & WithAdditionalInfo(AdditionalInfoT &&value)
StepSummary & WithName(NameT &&value)
Definition StepSummary.h:68
bool EncryptionKeyArnHasBeenSet() const
const Aws::String & GetLogUri() const
void SetConfig(ConfigT &&value)
Definition StepSummary.h:81
const HadoopStepConfig & GetConfig() const
Definition StepSummary.h:78
const StepAdditionalInfo & GetAdditionalInfo() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue