AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
SessionSummary.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/SessionState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMRServerless {
22namespace Model {
23
31 public:
32 AWS_EMRSERVERLESS_API SessionSummary() = default;
33 AWS_EMRSERVERLESS_API SessionSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_EMRSERVERLESS_API SessionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 template <typename ApplicationIdT = Aws::String>
44 void SetApplicationId(ApplicationIdT&& value) {
45 m_applicationIdHasBeenSet = true;
46 m_applicationId = std::forward<ApplicationIdT>(value);
47 }
48 template <typename ApplicationIdT = Aws::String>
49 SessionSummary& WithApplicationId(ApplicationIdT&& value) {
50 SetApplicationId(std::forward<ApplicationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSessionId() const { return m_sessionId; }
60 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
61 template <typename SessionIdT = Aws::String>
62 void SetSessionId(SessionIdT&& value) {
63 m_sessionIdHasBeenSet = true;
64 m_sessionId = std::forward<SessionIdT>(value);
65 }
66 template <typename SessionIdT = Aws::String>
67 SessionSummary& WithSessionId(SessionIdT&& value) {
68 SetSessionId(std::forward<SessionIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetArn() const { return m_arn; }
78 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
79 template <typename ArnT = Aws::String>
80 void SetArn(ArnT&& value) {
81 m_arnHasBeenSet = true;
82 m_arn = std::forward<ArnT>(value);
83 }
84 template <typename ArnT = Aws::String>
85 SessionSummary& WithArn(ArnT&& value) {
86 SetArn(std::forward<ArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetName() const { return m_name; }
96 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 template <typename NameT = Aws::String>
98 void SetName(NameT&& value) {
99 m_nameHasBeenSet = true;
100 m_name = std::forward<NameT>(value);
101 }
102 template <typename NameT = Aws::String>
103 SessionSummary& WithName(NameT&& value) {
104 SetName(std::forward<NameT>(value));
105 return *this;
106 }
108
110
113 inline SessionState GetState() const { return m_state; }
114 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
115 inline void SetState(SessionState value) {
116 m_stateHasBeenSet = true;
117 m_state = value;
118 }
120 SetState(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
130 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
131 template <typename StateDetailsT = Aws::String>
132 void SetStateDetails(StateDetailsT&& value) {
133 m_stateDetailsHasBeenSet = true;
134 m_stateDetails = std::forward<StateDetailsT>(value);
135 }
136 template <typename StateDetailsT = Aws::String>
137 SessionSummary& WithStateDetails(StateDetailsT&& value) {
138 SetStateDetails(std::forward<StateDetailsT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
148 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
149 template <typename ReleaseLabelT = Aws::String>
150 void SetReleaseLabel(ReleaseLabelT&& value) {
151 m_releaseLabelHasBeenSet = true;
152 m_releaseLabel = std::forward<ReleaseLabelT>(value);
153 }
154 template <typename ReleaseLabelT = Aws::String>
155 SessionSummary& WithReleaseLabel(ReleaseLabelT&& value) {
156 SetReleaseLabel(std::forward<ReleaseLabelT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
166 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
167 template <typename ExecutionRoleArnT = Aws::String>
168 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
169 m_executionRoleArnHasBeenSet = true;
170 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
171 }
172 template <typename ExecutionRoleArnT = Aws::String>
173 SessionSummary& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
174 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
184 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
185 template <typename CreatedByT = Aws::String>
186 void SetCreatedBy(CreatedByT&& value) {
187 m_createdByHasBeenSet = true;
188 m_createdBy = std::forward<CreatedByT>(value);
189 }
190 template <typename CreatedByT = Aws::String>
191 SessionSummary& WithCreatedBy(CreatedByT&& value) {
192 SetCreatedBy(std::forward<CreatedByT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
202 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
203 template <typename CreatedAtT = Aws::Utils::DateTime>
204 void SetCreatedAt(CreatedAtT&& value) {
205 m_createdAtHasBeenSet = true;
206 m_createdAt = std::forward<CreatedAtT>(value);
207 }
208 template <typename CreatedAtT = Aws::Utils::DateTime>
209 SessionSummary& WithCreatedAt(CreatedAtT&& value) {
210 SetCreatedAt(std::forward<CreatedAtT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
220 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
221 template <typename UpdatedAtT = Aws::Utils::DateTime>
222 void SetUpdatedAt(UpdatedAtT&& value) {
223 m_updatedAtHasBeenSet = true;
224 m_updatedAt = std::forward<UpdatedAtT>(value);
225 }
226 template <typename UpdatedAtT = Aws::Utils::DateTime>
227 SessionSummary& WithUpdatedAt(UpdatedAtT&& value) {
228 SetUpdatedAt(std::forward<UpdatedAtT>(value));
229 return *this;
230 }
232 private:
233 Aws::String m_applicationId;
234
235 Aws::String m_sessionId;
236
237 Aws::String m_arn;
238
239 Aws::String m_name;
240
242
243 Aws::String m_stateDetails;
244
245 Aws::String m_releaseLabel;
246
247 Aws::String m_executionRoleArn;
248
249 Aws::String m_createdBy;
250
251 Aws::Utils::DateTime m_createdAt{};
252
253 Aws::Utils::DateTime m_updatedAt{};
254 bool m_applicationIdHasBeenSet = false;
255 bool m_sessionIdHasBeenSet = false;
256 bool m_arnHasBeenSet = false;
257 bool m_nameHasBeenSet = false;
258 bool m_stateHasBeenSet = false;
259 bool m_stateDetailsHasBeenSet = false;
260 bool m_releaseLabelHasBeenSet = false;
261 bool m_executionRoleArnHasBeenSet = false;
262 bool m_createdByHasBeenSet = false;
263 bool m_createdAtHasBeenSet = false;
264 bool m_updatedAtHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace EMRServerless
269} // namespace Aws
AWS_EMRSERVERLESS_API SessionSummary(Aws::Utils::Json::JsonView jsonValue)
SessionSummary & WithReleaseLabel(ReleaseLabelT &&value)
SessionSummary & WithArn(ArnT &&value)
SessionSummary & WithSessionId(SessionIdT &&value)
AWS_EMRSERVERLESS_API SessionSummary()=default
void SetReleaseLabel(ReleaseLabelT &&value)
void SetStateDetails(StateDetailsT &&value)
SessionSummary & WithCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_EMRSERVERLESS_API SessionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
const Aws::String & GetSessionId() const
SessionSummary & WithCreatedAt(CreatedAtT &&value)
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
SessionSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetReleaseLabel() const
void SetApplicationId(ApplicationIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetCreatedBy() const
SessionSummary & WithExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::String & GetExecutionRoleArn() const
const Aws::String & GetStateDetails() const
SessionSummary & WithApplicationId(ApplicationIdT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::String & GetApplicationId() const
SessionSummary & WithStateDetails(StateDetailsT &&value)
SessionSummary & WithState(SessionState value)
SessionSummary & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue