AWS SDK for C++

AWS SDK for C++ Version 1.11.830

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
155 inline StreamSessionStatusReason GetStatusReason() const { return m_statusReason; }
156 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
158 m_statusReasonHasBeenSet = true;
159 m_statusReason = value;
160 }
162 SetStatusReason(value);
163 return *this;
164 }
166
168
171 inline Protocol GetProtocol() const { return m_protocol; }
172 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
173 inline void SetProtocol(Protocol value) {
174 m_protocolHasBeenSet = true;
175 m_protocol = value;
176 }
178 SetProtocol(value);
179 return *this;
180 }
182
184
189 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
190 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
191 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
192 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
193 m_lastUpdatedAtHasBeenSet = true;
194 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
195 }
196 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
197 StreamSessionSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
198 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
199 return *this;
200 }
202
204
209 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
210 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
211 template <typename CreatedAtT = Aws::Utils::DateTime>
212 void SetCreatedAt(CreatedAtT&& value) {
213 m_createdAtHasBeenSet = true;
214 m_createdAt = std::forward<CreatedAtT>(value);
215 }
216 template <typename CreatedAtT = Aws::Utils::DateTime>
217 StreamSessionSummary& WithCreatedAt(CreatedAtT&& value) {
218 SetCreatedAt(std::forward<CreatedAtT>(value));
219 return *this;
220 }
222
224
232 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
233 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
234 template <typename ApplicationArnT = Aws::String>
235 void SetApplicationArn(ApplicationArnT&& value) {
236 m_applicationArnHasBeenSet = true;
237 m_applicationArn = std::forward<ApplicationArnT>(value);
238 }
239 template <typename ApplicationArnT = Aws::String>
240 StreamSessionSummary& WithApplicationArn(ApplicationArnT&& value) {
241 SetApplicationArn(std::forward<ApplicationArnT>(value));
242 return *this;
243 }
245
247
250 inline const ExportFilesMetadata& GetExportFilesMetadata() const { return m_exportFilesMetadata; }
251 inline bool ExportFilesMetadataHasBeenSet() const { return m_exportFilesMetadataHasBeenSet; }
252 template <typename ExportFilesMetadataT = ExportFilesMetadata>
253 void SetExportFilesMetadata(ExportFilesMetadataT&& value) {
254 m_exportFilesMetadataHasBeenSet = true;
255 m_exportFilesMetadata = std::forward<ExportFilesMetadataT>(value);
256 }
257 template <typename ExportFilesMetadataT = ExportFilesMetadata>
258 StreamSessionSummary& WithExportFilesMetadata(ExportFilesMetadataT&& value) {
259 SetExportFilesMetadata(std::forward<ExportFilesMetadataT>(value));
260 return *this;
261 }
263
265
273 inline const Aws::String& GetLocation() const { return m_location; }
274 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
275 template <typename LocationT = Aws::String>
276 void SetLocation(LocationT&& value) {
277 m_locationHasBeenSet = true;
278 m_location = std::forward<LocationT>(value);
279 }
280 template <typename LocationT = Aws::String>
281 StreamSessionSummary& WithLocation(LocationT&& value) {
282 SetLocation(std::forward<LocationT>(value));
283 return *this;
284 }
286 private:
287 Aws::String m_arn;
288
289 Aws::String m_userId;
290
292
294
295 Protocol m_protocol{Protocol::NOT_SET};
296
297 Aws::Utils::DateTime m_lastUpdatedAt{};
298
299 Aws::Utils::DateTime m_createdAt{};
300
301 Aws::String m_applicationArn;
302
303 ExportFilesMetadata m_exportFilesMetadata;
304
305 Aws::String m_location;
306 bool m_arnHasBeenSet = false;
307 bool m_userIdHasBeenSet = false;
308 bool m_statusHasBeenSet = false;
309 bool m_statusReasonHasBeenSet = false;
310 bool m_protocolHasBeenSet = false;
311 bool m_lastUpdatedAtHasBeenSet = false;
312 bool m_createdAtHasBeenSet = false;
313 bool m_applicationArnHasBeenSet = false;
314 bool m_exportFilesMetadataHasBeenSet = false;
315 bool m_locationHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace GameLiftStreams
320} // 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