AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
CreateStreamGroupResult.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 CreateStreamGroupResult() = 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>
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 CreateStreamGroupResult& 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 CreateStreamGroupResult& WithLocationStates(LocationStatesT&& value) {
117 SetLocationStates(std::forward<LocationStatesT>(value));
118 return *this;
119 }
120 template <typename LocationStatesT = LocationState>
121 CreateStreamGroupResult& AddLocationStates(LocationStatesT&& value) {
122 m_locationStatesHasBeenSet = true;
123 m_locationStates.emplace_back(std::forward<LocationStatesT>(value));
124 return *this;
125 }
127
129
240 inline StreamClass GetStreamClass() const { return m_streamClass; }
241 inline void SetStreamClass(StreamClass value) {
242 m_streamClassHasBeenSet = true;
243 m_streamClass = value;
244 }
246 SetStreamClass(value);
247 return *this;
248 }
250
252
256 inline const Aws::String& GetId() const { return m_id; }
257 template <typename IdT = Aws::String>
258 void SetId(IdT&& value) {
259 m_idHasBeenSet = true;
260 m_id = std::forward<IdT>(value);
261 }
262 template <typename IdT = Aws::String>
264 SetId(std::forward<IdT>(value));
265 return *this;
266 }
268
270
289 inline StreamGroupStatus GetStatus() const { return m_status; }
290 inline void SetStatus(StreamGroupStatus value) {
291 m_statusHasBeenSet = true;
292 m_status = value;
293 }
295 SetStatus(value);
296 return *this;
297 }
299
301
311 inline StreamGroupStatusReason GetStatusReason() const { return m_statusReason; }
313 m_statusReasonHasBeenSet = true;
314 m_statusReason = value;
315 }
317 SetStatusReason(value);
318 return *this;
319 }
321
323
328 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
329 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
330 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
331 m_lastUpdatedAtHasBeenSet = true;
332 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
333 }
334 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
336 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
337 return *this;
338 }
340
342
347 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
348 template <typename CreatedAtT = Aws::Utils::DateTime>
349 void SetCreatedAt(CreatedAtT&& value) {
350 m_createdAtHasBeenSet = true;
351 m_createdAt = std::forward<CreatedAtT>(value);
352 }
353 template <typename CreatedAtT = Aws::Utils::DateTime>
355 SetCreatedAt(std::forward<CreatedAtT>(value));
356 return *this;
357 }
359
361
368 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
369 template <typename ExpiresAtT = Aws::Utils::DateTime>
370 void SetExpiresAt(ExpiresAtT&& value) {
371 m_expiresAtHasBeenSet = true;
372 m_expiresAt = std::forward<ExpiresAtT>(value);
373 }
374 template <typename ExpiresAtT = Aws::Utils::DateTime>
376 SetExpiresAt(std::forward<ExpiresAtT>(value));
377 return *this;
378 }
380
382
392 inline const Aws::Vector<Aws::String>& GetAssociatedApplications() const { return m_associatedApplications; }
393 template <typename AssociatedApplicationsT = Aws::Vector<Aws::String>>
394 void SetAssociatedApplications(AssociatedApplicationsT&& value) {
395 m_associatedApplicationsHasBeenSet = true;
396 m_associatedApplications = std::forward<AssociatedApplicationsT>(value);
397 }
398 template <typename AssociatedApplicationsT = Aws::Vector<Aws::String>>
399 CreateStreamGroupResult& WithAssociatedApplications(AssociatedApplicationsT&& value) {
400 SetAssociatedApplications(std::forward<AssociatedApplicationsT>(value));
401 return *this;
402 }
403 template <typename AssociatedApplicationsT = Aws::String>
404 CreateStreamGroupResult& AddAssociatedApplications(AssociatedApplicationsT&& value) {
405 m_associatedApplicationsHasBeenSet = true;
406 m_associatedApplications.emplace_back(std::forward<AssociatedApplicationsT>(value));
407 return *this;
408 }
410
412
413 inline const Aws::String& GetRequestId() const { return m_requestId; }
414 template <typename RequestIdT = Aws::String>
415 void SetRequestId(RequestIdT&& value) {
416 m_requestIdHasBeenSet = true;
417 m_requestId = std::forward<RequestIdT>(value);
418 }
419 template <typename RequestIdT = Aws::String>
421 SetRequestId(std::forward<RequestIdT>(value));
422 return *this;
423 }
425 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
426
427 private:
428 Aws::String m_arn;
429
430 Aws::String m_description;
431
432 DefaultApplication m_defaultApplication;
433
434 Aws::Vector<LocationState> m_locationStates;
435
436 StreamClass m_streamClass{StreamClass::NOT_SET};
437
438 Aws::String m_id;
439
441
443
444 Aws::Utils::DateTime m_lastUpdatedAt{};
445
446 Aws::Utils::DateTime m_createdAt{};
447
448 Aws::Utils::DateTime m_expiresAt{};
449
450 Aws::Vector<Aws::String> m_associatedApplications;
451
452 Aws::String m_requestId;
453 Aws::Http::HttpResponseCode m_HttpResponseCode;
454 bool m_arnHasBeenSet = false;
455 bool m_descriptionHasBeenSet = false;
456 bool m_defaultApplicationHasBeenSet = false;
457 bool m_locationStatesHasBeenSet = false;
458 bool m_streamClassHasBeenSet = false;
459 bool m_idHasBeenSet = false;
460 bool m_statusHasBeenSet = false;
461 bool m_statusReasonHasBeenSet = false;
462 bool m_lastUpdatedAtHasBeenSet = false;
463 bool m_createdAtHasBeenSet = false;
464 bool m_expiresAtHasBeenSet = false;
465 bool m_associatedApplicationsHasBeenSet = false;
466 bool m_requestIdHasBeenSet = false;
467};
468
469} // namespace Model
470} // namespace GameLiftStreams
471} // namespace Aws
CreateStreamGroupResult & WithStreamClass(StreamClass value)
const Aws::Vector< LocationState > & GetLocationStates() const
const Aws::Vector< Aws::String > & GetAssociatedApplications() const
CreateStreamGroupResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_GAMELIFTSTREAMS_API CreateStreamGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAssociatedApplications(AssociatedApplicationsT &&value)
CreateStreamGroupResult & WithLocationStates(LocationStatesT &&value)
CreateStreamGroupResult & WithCreatedAt(CreatedAtT &&value)
CreateStreamGroupResult & AddAssociatedApplications(AssociatedApplicationsT &&value)
CreateStreamGroupResult & WithStatusReason(StreamGroupStatusReason value)
CreateStreamGroupResult & WithExpiresAt(ExpiresAtT &&value)
CreateStreamGroupResult & AddLocationStates(LocationStatesT &&value)
AWS_GAMELIFTSTREAMS_API CreateStreamGroupResult()=default
AWS_GAMELIFTSTREAMS_API CreateStreamGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateStreamGroupResult & WithStatus(StreamGroupStatus value)
CreateStreamGroupResult & WithRequestId(RequestIdT &&value)
CreateStreamGroupResult & WithDefaultApplication(DefaultApplicationT &&value)
CreateStreamGroupResult & WithAssociatedApplications(AssociatedApplicationsT &&value)
CreateStreamGroupResult & WithDescription(DescriptionT &&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