AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
StreamSessionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
10#include <aws/gameliftstreams/model/ExportFilesMetadata.h>
11#include <aws/gameliftstreams/model/Protocol.h>
12#include <aws/gameliftstreams/model/StreamSessionStatus.h>
13#include <aws/gameliftstreams/model/StreamSessionStatusReason.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GameLiftStreams {
25namespace Model {
26
36 public:
37 AWS_GAMELIFTSTREAMS_API StreamSessionSummary() = default;
38 AWS_GAMELIFTSTREAMS_API StreamSessionSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GAMELIFTSTREAMS_API StreamSessionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
51 inline const Aws::String& GetArn() const { return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 template <typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) {
55 m_arnHasBeenSet = true;
56 m_arn = std::forward<ArnT>(value);
57 }
58 template <typename ArnT = Aws::String>
60 SetArn(std::forward<ArnT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetUserId() const { return m_userId; }
70 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
71 template <typename UserIdT = Aws::String>
72 void SetUserId(UserIdT&& value) {
73 m_userIdHasBeenSet = true;
74 m_userId = std::forward<UserIdT>(value);
75 }
76 template <typename UserIdT = Aws::String>
77 StreamSessionSummary& WithUserId(UserIdT&& value) {
78 SetUserId(std::forward<UserIdT>(value));
79 return *this;
80 }
82
84
112 inline StreamSessionStatus GetStatus() const { return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 inline void SetStatus(StreamSessionStatus value) {
115 m_statusHasBeenSet = true;
116 m_status = value;
117 }
119 SetStatus(value);
120 return *this;
121 }
123
125
157 inline StreamSessionStatusReason GetStatusReason() const { return m_statusReason; }
158 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
160 m_statusReasonHasBeenSet = true;
161 m_statusReason = value;
162 }
164 SetStatusReason(value);
165 return *this;
166 }
168
170
173 inline Protocol GetProtocol() const { return m_protocol; }
174 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
175 inline void SetProtocol(Protocol value) {
176 m_protocolHasBeenSet = true;
177 m_protocol = value;
178 }
180 SetProtocol(value);
181 return *this;
182 }
184
186
191 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
192 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
193 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
194 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
195 m_lastUpdatedAtHasBeenSet = true;
196 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
197 }
198 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
199 StreamSessionSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
200 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
201 return *this;
202 }
204
206
211 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
212 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
213 template <typename CreatedAtT = Aws::Utils::DateTime>
214 void SetCreatedAt(CreatedAtT&& value) {
215 m_createdAtHasBeenSet = true;
216 m_createdAt = std::forward<CreatedAtT>(value);
217 }
218 template <typename CreatedAtT = Aws::Utils::DateTime>
219 StreamSessionSummary& WithCreatedAt(CreatedAtT&& value) {
220 SetCreatedAt(std::forward<CreatedAtT>(value));
221 return *this;
222 }
224
226
234 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
235 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
236 template <typename ApplicationArnT = Aws::String>
237 void SetApplicationArn(ApplicationArnT&& value) {
238 m_applicationArnHasBeenSet = true;
239 m_applicationArn = std::forward<ApplicationArnT>(value);
240 }
241 template <typename ApplicationArnT = Aws::String>
242 StreamSessionSummary& WithApplicationArn(ApplicationArnT&& value) {
243 SetApplicationArn(std::forward<ApplicationArnT>(value));
244 return *this;
245 }
247
249
252 inline const ExportFilesMetadata& GetExportFilesMetadata() const { return m_exportFilesMetadata; }
253 inline bool ExportFilesMetadataHasBeenSet() const { return m_exportFilesMetadataHasBeenSet; }
254 template <typename ExportFilesMetadataT = ExportFilesMetadata>
255 void SetExportFilesMetadata(ExportFilesMetadataT&& value) {
256 m_exportFilesMetadataHasBeenSet = true;
257 m_exportFilesMetadata = std::forward<ExportFilesMetadataT>(value);
258 }
259 template <typename ExportFilesMetadataT = ExportFilesMetadata>
260 StreamSessionSummary& WithExportFilesMetadata(ExportFilesMetadataT&& value) {
261 SetExportFilesMetadata(std::forward<ExportFilesMetadataT>(value));
262 return *this;
263 }
265
267
275 inline const Aws::String& GetLocation() const { return m_location; }
276 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
277 template <typename LocationT = Aws::String>
278 void SetLocation(LocationT&& value) {
279 m_locationHasBeenSet = true;
280 m_location = std::forward<LocationT>(value);
281 }
282 template <typename LocationT = Aws::String>
283 StreamSessionSummary& WithLocation(LocationT&& value) {
284 SetLocation(std::forward<LocationT>(value));
285 return *this;
286 }
288 private:
289 Aws::String m_arn;
290
291 Aws::String m_userId;
292
294
296
297 Protocol m_protocol{Protocol::NOT_SET};
298
299 Aws::Utils::DateTime m_lastUpdatedAt{};
300
301 Aws::Utils::DateTime m_createdAt{};
302
303 Aws::String m_applicationArn;
304
305 ExportFilesMetadata m_exportFilesMetadata;
306
307 Aws::String m_location;
308 bool m_arnHasBeenSet = false;
309 bool m_userIdHasBeenSet = false;
310 bool m_statusHasBeenSet = false;
311 bool m_statusReasonHasBeenSet = false;
312 bool m_protocolHasBeenSet = false;
313 bool m_lastUpdatedAtHasBeenSet = false;
314 bool m_createdAtHasBeenSet = false;
315 bool m_applicationArnHasBeenSet = false;
316 bool m_exportFilesMetadataHasBeenSet = false;
317 bool m_locationHasBeenSet = false;
318};
319
320} // namespace Model
321} // namespace GameLiftStreams
322} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
StreamSessionSummary & WithStatus(StreamSessionStatus value)
const ExportFilesMetadata & GetExportFilesMetadata() const
AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
StreamSessionSummary & WithCreatedAt(CreatedAtT &&value)
StreamSessionSummary & WithStatusReason(StreamSessionStatusReason value)
StreamSessionSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_GAMELIFTSTREAMS_API StreamSessionSummary(Aws::Utils::Json::JsonView jsonValue)
StreamSessionSummary & WithLocation(LocationT &&value)
void SetExportFilesMetadata(ExportFilesMetadataT &&value)
StreamSessionSummary & WithProtocol(Protocol value)
AWS_GAMELIFTSTREAMS_API StreamSessionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamSessionSummary & WithExportFilesMetadata(ExportFilesMetadataT &&value)
AWS_GAMELIFTSTREAMS_API StreamSessionSummary()=default
StreamSessionSummary & WithUserId(UserIdT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetStatusReason(StreamSessionStatusReason value)
StreamSessionSummary & WithApplicationArn(ApplicationArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue