AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetStreamGroupResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
12#include <aws/gameliftstreams/model/DefaultApplication.h>
13#include <aws/gameliftstreams/model/LocationState.h>
14#include <aws/gameliftstreams/model/StreamClass.h>
15#include <aws/gameliftstreams/model/StreamGroupStatus.h>
16#include <aws/gameliftstreams/model/StreamGroupStatusReason.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace GameLiftStreams {
30namespace Model {
32 public:
33 AWS_GAMELIFTSTREAMS_API GetStreamGroupResult() = default;
36
38
46 inline const Aws::String& GetArn() const { return m_arn; }
47 template <typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) {
49 m_arnHasBeenSet = true;
50 m_arn = std::forward<ArnT>(value);
51 }
52 template <typename ArnT = Aws::String>
54 SetArn(std::forward<ArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
70 GetStreamGroupResult& WithDescription(DescriptionT&& value) {
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
81 inline const DefaultApplication& GetDefaultApplication() const { return m_defaultApplication; }
82 template <typename DefaultApplicationT = DefaultApplication>
83 void SetDefaultApplication(DefaultApplicationT&& value) {
84 m_defaultApplicationHasBeenSet = true;
85 m_defaultApplication = std::forward<DefaultApplicationT>(value);
86 }
87 template <typename DefaultApplicationT = DefaultApplication>
88 GetStreamGroupResult& WithDefaultApplication(DefaultApplicationT&& value) {
89 SetDefaultApplication(std::forward<DefaultApplicationT>(value));
90 return *this;
91 }
93
95
109 inline const Aws::Vector<LocationState>& GetLocationStates() const { return m_locationStates; }
110 template <typename LocationStatesT = Aws::Vector<LocationState>>
111 void SetLocationStates(LocationStatesT&& value) {
112 m_locationStatesHasBeenSet = true;
113 m_locationStates = std::forward<LocationStatesT>(value);
114 }
115 template <typename LocationStatesT = Aws::Vector<LocationState>>
116 GetStreamGroupResult& WithLocationStates(LocationStatesT&& value) {
117 SetLocationStates(std::forward<LocationStatesT>(value));
118 return *this;
119 }
120 template <typename LocationStatesT = LocationState>
121 GetStreamGroupResult& AddLocationStates(LocationStatesT&& value) {
122 m_locationStatesHasBeenSet = true;
123 m_locationStates.emplace_back(std::forward<LocationStatesT>(value));
124 return *this;
125 }
127
129
214 inline StreamClass GetStreamClass() const { return m_streamClass; }
215 inline void SetStreamClass(StreamClass value) {
216 m_streamClassHasBeenSet = true;
217 m_streamClass = value;
218 }
220 SetStreamClass(value);
221 return *this;
222 }
224
226
230 inline const Aws::String& GetId() const { return m_id; }
231 template <typename IdT = Aws::String>
232 void SetId(IdT&& value) {
233 m_idHasBeenSet = true;
234 m_id = std::forward<IdT>(value);
235 }
236 template <typename IdT = Aws::String>
238 SetId(std::forward<IdT>(value));
239 return *this;
240 }
242
244
263 inline StreamGroupStatus GetStatus() const { return m_status; }
264 inline void SetStatus(StreamGroupStatus value) {
265 m_statusHasBeenSet = true;
266 m_status = value;
267 }
269 SetStatus(value);
270 return *this;
271 }
273
275
285 inline StreamGroupStatusReason GetStatusReason() const { return m_statusReason; }
287 m_statusReasonHasBeenSet = true;
288 m_statusReason = value;
289 }
291 SetStatusReason(value);
292 return *this;
293 }
295
297
302 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
303 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
304 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
305 m_lastUpdatedAtHasBeenSet = true;
306 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
307 }
308 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
309 GetStreamGroupResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
310 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
311 return *this;
312 }
314
316
321 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
322 template <typename CreatedAtT = Aws::Utils::DateTime>
323 void SetCreatedAt(CreatedAtT&& value) {
324 m_createdAtHasBeenSet = true;
325 m_createdAt = std::forward<CreatedAtT>(value);
326 }
327 template <typename CreatedAtT = Aws::Utils::DateTime>
328 GetStreamGroupResult& WithCreatedAt(CreatedAtT&& value) {
329 SetCreatedAt(std::forward<CreatedAtT>(value));
330 return *this;
331 }
333
335
342 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
343 template <typename ExpiresAtT = Aws::Utils::DateTime>
344 void SetExpiresAt(ExpiresAtT&& value) {
345 m_expiresAtHasBeenSet = true;
346 m_expiresAt = std::forward<ExpiresAtT>(value);
347 }
348 template <typename ExpiresAtT = Aws::Utils::DateTime>
349 GetStreamGroupResult& WithExpiresAt(ExpiresAtT&& value) {
350 SetExpiresAt(std::forward<ExpiresAtT>(value));
351 return *this;
352 }
354
356
366 inline const Aws::Vector<Aws::String>& GetAssociatedApplications() const { return m_associatedApplications; }
367 template <typename AssociatedApplicationsT = Aws::Vector<Aws::String>>
368 void SetAssociatedApplications(AssociatedApplicationsT&& value) {
369 m_associatedApplicationsHasBeenSet = true;
370 m_associatedApplications = std::forward<AssociatedApplicationsT>(value);
371 }
372 template <typename AssociatedApplicationsT = Aws::Vector<Aws::String>>
373 GetStreamGroupResult& WithAssociatedApplications(AssociatedApplicationsT&& value) {
374 SetAssociatedApplications(std::forward<AssociatedApplicationsT>(value));
375 return *this;
376 }
377 template <typename AssociatedApplicationsT = Aws::String>
378 GetStreamGroupResult& AddAssociatedApplications(AssociatedApplicationsT&& value) {
379 m_associatedApplicationsHasBeenSet = true;
380 m_associatedApplications.emplace_back(std::forward<AssociatedApplicationsT>(value));
381 return *this;
382 }
384
386
387 inline const Aws::String& GetRequestId() const { return m_requestId; }
388 template <typename RequestIdT = Aws::String>
389 void SetRequestId(RequestIdT&& value) {
390 m_requestIdHasBeenSet = true;
391 m_requestId = std::forward<RequestIdT>(value);
392 }
393 template <typename RequestIdT = Aws::String>
394 GetStreamGroupResult& WithRequestId(RequestIdT&& value) {
395 SetRequestId(std::forward<RequestIdT>(value));
396 return *this;
397 }
399 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
400
401 private:
402 Aws::String m_arn;
403
404 Aws::String m_description;
405
406 DefaultApplication m_defaultApplication;
407
408 Aws::Vector<LocationState> m_locationStates;
409
410 StreamClass m_streamClass{StreamClass::NOT_SET};
411
412 Aws::String m_id;
413
415
417
418 Aws::Utils::DateTime m_lastUpdatedAt{};
419
420 Aws::Utils::DateTime m_createdAt{};
421
422 Aws::Utils::DateTime m_expiresAt{};
423
424 Aws::Vector<Aws::String> m_associatedApplications;
425
426 Aws::String m_requestId;
427 Aws::Http::HttpResponseCode m_HttpResponseCode;
428 bool m_arnHasBeenSet = false;
429 bool m_descriptionHasBeenSet = false;
430 bool m_defaultApplicationHasBeenSet = false;
431 bool m_locationStatesHasBeenSet = false;
432 bool m_streamClassHasBeenSet = false;
433 bool m_idHasBeenSet = false;
434 bool m_statusHasBeenSet = false;
435 bool m_statusReasonHasBeenSet = false;
436 bool m_lastUpdatedAtHasBeenSet = false;
437 bool m_createdAtHasBeenSet = false;
438 bool m_expiresAtHasBeenSet = false;
439 bool m_associatedApplicationsHasBeenSet = false;
440 bool m_requestIdHasBeenSet = false;
441};
442
443} // namespace Model
444} // namespace GameLiftStreams
445} // namespace Aws
const Aws::Vector< LocationState > & GetLocationStates() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetStreamGroupResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetStreamGroupResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetExpiresAt() const
const Aws::Vector< Aws::String > & GetAssociatedApplications() const
GetStreamGroupResult & WithExpiresAt(ExpiresAtT &&value)
GetStreamGroupResult & AddLocationStates(LocationStatesT &&value)
GetStreamGroupResult & WithRequestId(RequestIdT &&value)
void SetStatusReason(StreamGroupStatusReason value)
AWS_GAMELIFTSTREAMS_API GetStreamGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDefaultApplication(DefaultApplicationT &&value)
AWS_GAMELIFTSTREAMS_API GetStreamGroupResult()=default
const DefaultApplication & GetDefaultApplication() const
GetStreamGroupResult & WithDescription(DescriptionT &&value)
AWS_GAMELIFTSTREAMS_API GetStreamGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedAt() const
GetStreamGroupResult & WithDefaultApplication(DefaultApplicationT &&value)
GetStreamGroupResult & WithLocationStates(LocationStatesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetStreamGroupResult & AddAssociatedApplications(AssociatedApplicationsT &&value)
GetStreamGroupResult & WithStreamClass(StreamClass value)
void SetAssociatedApplications(AssociatedApplicationsT &&value)
GetStreamGroupResult & WithStatusReason(StreamGroupStatusReason value)
GetStreamGroupResult & WithStatus(StreamGroupStatus value)
GetStreamGroupResult & WithAssociatedApplications(AssociatedApplicationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue