AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
ApplicationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
10#include <aws/emr-serverless/model/ApplicationState.h>
11#include <aws/emr-serverless/model/Architecture.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMRServerless {
23namespace Model {
24
32 public:
33 AWS_EMRSERVERLESS_API ApplicationSummary() = default;
34 AWS_EMRSERVERLESS_API ApplicationSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_EMRSERVERLESS_API ApplicationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
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 ApplicationSummary& 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 ApplicationSummary& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetArn() const { return m_arn; }
79 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
80 template <typename ArnT = Aws::String>
81 void SetArn(ArnT&& value) {
82 m_arnHasBeenSet = true;
83 m_arn = std::forward<ArnT>(value);
84 }
85 template <typename ArnT = Aws::String>
86 ApplicationSummary& WithArn(ArnT&& value) {
87 SetArn(std::forward<ArnT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
97 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
98 template <typename ReleaseLabelT = Aws::String>
99 void SetReleaseLabel(ReleaseLabelT&& value) {
100 m_releaseLabelHasBeenSet = true;
101 m_releaseLabel = std::forward<ReleaseLabelT>(value);
102 }
103 template <typename ReleaseLabelT = Aws::String>
104 ApplicationSummary& WithReleaseLabel(ReleaseLabelT&& value) {
105 SetReleaseLabel(std::forward<ReleaseLabelT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetType() const { return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 template <typename TypeT = Aws::String>
117 void SetType(TypeT&& value) {
118 m_typeHasBeenSet = true;
119 m_type = std::forward<TypeT>(value);
120 }
121 template <typename TypeT = Aws::String>
122 ApplicationSummary& WithType(TypeT&& value) {
123 SetType(std::forward<TypeT>(value));
124 return *this;
125 }
127
129
132 inline ApplicationState GetState() const { return m_state; }
133 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
134 inline void SetState(ApplicationState value) {
135 m_stateHasBeenSet = true;
136 m_state = value;
137 }
139 SetState(value);
140 return *this;
141 }
143
145
148 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
149 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
150 template <typename StateDetailsT = Aws::String>
151 void SetStateDetails(StateDetailsT&& value) {
152 m_stateDetailsHasBeenSet = true;
153 m_stateDetails = std::forward<StateDetailsT>(value);
154 }
155 template <typename StateDetailsT = Aws::String>
156 ApplicationSummary& WithStateDetails(StateDetailsT&& value) {
157 SetStateDetails(std::forward<StateDetailsT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
167 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
168 template <typename CreatedAtT = Aws::Utils::DateTime>
169 void SetCreatedAt(CreatedAtT&& value) {
170 m_createdAtHasBeenSet = true;
171 m_createdAt = std::forward<CreatedAtT>(value);
172 }
173 template <typename CreatedAtT = Aws::Utils::DateTime>
174 ApplicationSummary& WithCreatedAt(CreatedAtT&& value) {
175 SetCreatedAt(std::forward<CreatedAtT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
185 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
186 template <typename UpdatedAtT = Aws::Utils::DateTime>
187 void SetUpdatedAt(UpdatedAtT&& value) {
188 m_updatedAtHasBeenSet = true;
189 m_updatedAt = std::forward<UpdatedAtT>(value);
190 }
191 template <typename UpdatedAtT = Aws::Utils::DateTime>
192 ApplicationSummary& WithUpdatedAt(UpdatedAtT&& value) {
193 SetUpdatedAt(std::forward<UpdatedAtT>(value));
194 return *this;
195 }
197
199
202 inline Architecture GetArchitecture() const { return m_architecture; }
203 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
204 inline void SetArchitecture(Architecture value) {
205 m_architectureHasBeenSet = true;
206 m_architecture = value;
207 }
209 SetArchitecture(value);
210 return *this;
211 }
213 private:
214 Aws::String m_id;
215
216 Aws::String m_name;
217
218 Aws::String m_arn;
219
220 Aws::String m_releaseLabel;
221
222 Aws::String m_type;
223
225
226 Aws::String m_stateDetails;
227
228 Aws::Utils::DateTime m_createdAt{};
229
230 Aws::Utils::DateTime m_updatedAt{};
231
232 Architecture m_architecture{Architecture::NOT_SET};
233 bool m_idHasBeenSet = false;
234 bool m_nameHasBeenSet = false;
235 bool m_arnHasBeenSet = false;
236 bool m_releaseLabelHasBeenSet = false;
237 bool m_typeHasBeenSet = false;
238 bool m_stateHasBeenSet = false;
239 bool m_stateDetailsHasBeenSet = false;
240 bool m_createdAtHasBeenSet = false;
241 bool m_updatedAtHasBeenSet = false;
242 bool m_architectureHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace EMRServerless
247} // namespace Aws
AWS_EMRSERVERLESS_API ApplicationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
ApplicationSummary & WithType(TypeT &&value)
ApplicationSummary & WithState(ApplicationState value)
const Aws::Utils::DateTime & GetUpdatedAt() const
ApplicationSummary & WithName(NameT &&value)
ApplicationSummary & WithStateDetails(StateDetailsT &&value)
AWS_EMRSERVERLESS_API ApplicationSummary()=default
ApplicationSummary & WithReleaseLabel(ReleaseLabelT &&value)
ApplicationSummary & WithUpdatedAt(UpdatedAtT &&value)
ApplicationSummary & WithArn(ArnT &&value)
ApplicationSummary & WithId(IdT &&value)
ApplicationSummary & WithArchitecture(Architecture value)
AWS_EMRSERVERLESS_API ApplicationSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
ApplicationSummary & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue