AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateStreamGroupResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
11#include <aws/gameliftstreams/model/DefaultApplication.h>
12#include <aws/gameliftstreams/model/LocationState.h>
13#include <aws/gameliftstreams/model/StreamClass.h>
14#include <aws/gameliftstreams/model/StreamGroupStatus.h>
15#include <aws/gameliftstreams/model/StreamGroupStatusReason.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace GameLiftStreams {
29namespace Model {
31 public:
32 AWS_GAMELIFTSTREAMS_API CreateStreamGroupResult() = default;
35
37
45 inline const Aws::String& GetArn() const { return m_arn; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
80 inline const DefaultApplication& GetDefaultApplication() const { return m_defaultApplication; }
81 template <typename DefaultApplicationT = DefaultApplication>
82 void SetDefaultApplication(DefaultApplicationT&& value) {
83 m_defaultApplicationHasBeenSet = true;
84 m_defaultApplication = std::forward<DefaultApplicationT>(value);
85 }
86 template <typename DefaultApplicationT = DefaultApplication>
87 CreateStreamGroupResult& WithDefaultApplication(DefaultApplicationT&& value) {
88 SetDefaultApplication(std::forward<DefaultApplicationT>(value));
89 return *this;
90 }
92
94
108 inline const Aws::Vector<LocationState>& GetLocationStates() const { return m_locationStates; }
109 template <typename LocationStatesT = Aws::Vector<LocationState>>
110 void SetLocationStates(LocationStatesT&& value) {
111 m_locationStatesHasBeenSet = true;
112 m_locationStates = std::forward<LocationStatesT>(value);
113 }
114 template <typename LocationStatesT = Aws::Vector<LocationState>>
115 CreateStreamGroupResult& WithLocationStates(LocationStatesT&& value) {
116 SetLocationStates(std::forward<LocationStatesT>(value));
117 return *this;
118 }
119 template <typename LocationStatesT = LocationState>
120 CreateStreamGroupResult& AddLocationStates(LocationStatesT&& value) {
121 m_locationStatesHasBeenSet = true;
122 m_locationStates.emplace_back(std::forward<LocationStatesT>(value));
123 return *this;
124 }
126
128
213 inline StreamClass GetStreamClass() const { return m_streamClass; }
214 inline void SetStreamClass(StreamClass value) {
215 m_streamClassHasBeenSet = true;
216 m_streamClass = value;
217 }
219 SetStreamClass(value);
220 return *this;
221 }
223
225
229 inline const Aws::String& GetId() const { return m_id; }
230 template <typename IdT = Aws::String>
231 void SetId(IdT&& value) {
232 m_idHasBeenSet = true;
233 m_id = std::forward<IdT>(value);
234 }
235 template <typename IdT = Aws::String>
237 SetId(std::forward<IdT>(value));
238 return *this;
239 }
241
243
262 inline StreamGroupStatus GetStatus() const { return m_status; }
263 inline void SetStatus(StreamGroupStatus value) {
264 m_statusHasBeenSet = true;
265 m_status = value;
266 }
268 SetStatus(value);
269 return *this;
270 }
272
274
284 inline StreamGroupStatusReason GetStatusReason() const { return m_statusReason; }
286 m_statusReasonHasBeenSet = true;
287 m_statusReason = value;
288 }
290 SetStatusReason(value);
291 return *this;
292 }
294
296
301 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
302 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
303 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
304 m_lastUpdatedAtHasBeenSet = true;
305 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
306 }
307 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
309 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
310 return *this;
311 }
313
315
320 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
321 template <typename CreatedAtT = Aws::Utils::DateTime>
322 void SetCreatedAt(CreatedAtT&& value) {
323 m_createdAtHasBeenSet = true;
324 m_createdAt = std::forward<CreatedAtT>(value);
325 }
326 template <typename CreatedAtT = Aws::Utils::DateTime>
328 SetCreatedAt(std::forward<CreatedAtT>(value));
329 return *this;
330 }
332
334
341 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
342 template <typename ExpiresAtT = Aws::Utils::DateTime>
343 void SetExpiresAt(ExpiresAtT&& value) {
344 m_expiresAtHasBeenSet = true;
345 m_expiresAt = std::forward<ExpiresAtT>(value);
346 }
347 template <typename ExpiresAtT = Aws::Utils::DateTime>
349 SetExpiresAt(std::forward<ExpiresAtT>(value));
350 return *this;
351 }
353
355
365 inline const Aws::Vector<Aws::String>& GetAssociatedApplications() const { return m_associatedApplications; }
366 template <typename AssociatedApplicationsT = Aws::Vector<Aws::String>>
367 void SetAssociatedApplications(AssociatedApplicationsT&& value) {
368 m_associatedApplicationsHasBeenSet = true;
369 m_associatedApplications = std::forward<AssociatedApplicationsT>(value);
370 }
371 template <typename AssociatedApplicationsT = Aws::Vector<Aws::String>>
372 CreateStreamGroupResult& WithAssociatedApplications(AssociatedApplicationsT&& value) {
373 SetAssociatedApplications(std::forward<AssociatedApplicationsT>(value));
374 return *this;
375 }
376 template <typename AssociatedApplicationsT = Aws::String>
377 CreateStreamGroupResult& AddAssociatedApplications(AssociatedApplicationsT&& value) {
378 m_associatedApplicationsHasBeenSet = true;
379 m_associatedApplications.emplace_back(std::forward<AssociatedApplicationsT>(value));
380 return *this;
381 }
383
385
386 inline const Aws::String& GetRequestId() const { return m_requestId; }
387 template <typename RequestIdT = Aws::String>
388 void SetRequestId(RequestIdT&& value) {
389 m_requestIdHasBeenSet = true;
390 m_requestId = std::forward<RequestIdT>(value);
391 }
392 template <typename RequestIdT = Aws::String>
394 SetRequestId(std::forward<RequestIdT>(value));
395 return *this;
396 }
398 private:
399 Aws::String m_arn;
400
401 Aws::String m_description;
402
403 DefaultApplication m_defaultApplication;
404
405 Aws::Vector<LocationState> m_locationStates;
406
407 StreamClass m_streamClass{StreamClass::NOT_SET};
408
409 Aws::String m_id;
410
412
414
415 Aws::Utils::DateTime m_lastUpdatedAt{};
416
417 Aws::Utils::DateTime m_createdAt{};
418
419 Aws::Utils::DateTime m_expiresAt{};
420
421 Aws::Vector<Aws::String> m_associatedApplications;
422
423 Aws::String m_requestId;
424 bool m_arnHasBeenSet = false;
425 bool m_descriptionHasBeenSet = false;
426 bool m_defaultApplicationHasBeenSet = false;
427 bool m_locationStatesHasBeenSet = false;
428 bool m_streamClassHasBeenSet = false;
429 bool m_idHasBeenSet = false;
430 bool m_statusHasBeenSet = false;
431 bool m_statusReasonHasBeenSet = false;
432 bool m_lastUpdatedAtHasBeenSet = false;
433 bool m_createdAtHasBeenSet = false;
434 bool m_expiresAtHasBeenSet = false;
435 bool m_associatedApplicationsHasBeenSet = false;
436 bool m_requestIdHasBeenSet = false;
437};
438
439} // namespace Model
440} // namespace GameLiftStreams
441} // 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