AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
StreamGroupSummary.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/DefaultApplication.h>
11#include <aws/gameliftstreams/model/StreamClass.h>
12#include <aws/gameliftstreams/model/StreamGroupStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GameLiftStreams {
24namespace Model {
25
35 public:
36 AWS_GAMELIFTSTREAMS_API StreamGroupSummary() = default;
37 AWS_GAMELIFTSTREAMS_API StreamGroupSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GAMELIFTSTREAMS_API StreamGroupSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template <typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) {
54 m_arnHasBeenSet = true;
55 m_arn = std::forward<ArnT>(value);
56 }
57 template <typename ArnT = Aws::String>
58 StreamGroupSummary& WithArn(ArnT&& value) {
59 SetArn(std::forward<ArnT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetId() const { return m_id; }
70 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
71 template <typename IdT = Aws::String>
72 void SetId(IdT&& value) {
73 m_idHasBeenSet = true;
74 m_id = std::forward<IdT>(value);
75 }
76 template <typename IdT = Aws::String>
77 StreamGroupSummary& WithId(IdT&& value) {
78 SetId(std::forward<IdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
95 StreamGroupSummary& WithDescription(DescriptionT&& value) {
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
106 inline const DefaultApplication& GetDefaultApplication() const { return m_defaultApplication; }
107 inline bool DefaultApplicationHasBeenSet() const { return m_defaultApplicationHasBeenSet; }
108 template <typename DefaultApplicationT = DefaultApplication>
109 void SetDefaultApplication(DefaultApplicationT&& value) {
110 m_defaultApplicationHasBeenSet = true;
111 m_defaultApplication = std::forward<DefaultApplicationT>(value);
112 }
113 template <typename DefaultApplicationT = DefaultApplication>
114 StreamGroupSummary& WithDefaultApplication(DefaultApplicationT&& value) {
115 SetDefaultApplication(std::forward<DefaultApplicationT>(value));
116 return *this;
117 }
119
121
206 inline StreamClass GetStreamClass() const { return m_streamClass; }
207 inline bool StreamClassHasBeenSet() const { return m_streamClassHasBeenSet; }
208 inline void SetStreamClass(StreamClass value) {
209 m_streamClassHasBeenSet = true;
210 m_streamClass = value;
211 }
213 SetStreamClass(value);
214 return *this;
215 }
217
219
238 inline StreamGroupStatus GetStatus() const { return m_status; }
239 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
240 inline void SetStatus(StreamGroupStatus value) {
241 m_statusHasBeenSet = true;
242 m_status = value;
243 }
245 SetStatus(value);
246 return *this;
247 }
249
251
256 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
257 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
258 template <typename CreatedAtT = Aws::Utils::DateTime>
259 void SetCreatedAt(CreatedAtT&& value) {
260 m_createdAtHasBeenSet = true;
261 m_createdAt = std::forward<CreatedAtT>(value);
262 }
263 template <typename CreatedAtT = Aws::Utils::DateTime>
264 StreamGroupSummary& WithCreatedAt(CreatedAtT&& value) {
265 SetCreatedAt(std::forward<CreatedAtT>(value));
266 return *this;
267 }
269
271
276 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
277 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
278 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
279 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
280 m_lastUpdatedAtHasBeenSet = true;
281 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
282 }
283 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
284 StreamGroupSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
285 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
286 return *this;
287 }
289
291
298 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
299 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
300 template <typename ExpiresAtT = Aws::Utils::DateTime>
301 void SetExpiresAt(ExpiresAtT&& value) {
302 m_expiresAtHasBeenSet = true;
303 m_expiresAt = std::forward<ExpiresAtT>(value);
304 }
305 template <typename ExpiresAtT = Aws::Utils::DateTime>
306 StreamGroupSummary& WithExpiresAt(ExpiresAtT&& value) {
307 SetExpiresAt(std::forward<ExpiresAtT>(value));
308 return *this;
309 }
311 private:
312 Aws::String m_arn;
313
314 Aws::String m_id;
315
316 Aws::String m_description;
317
318 DefaultApplication m_defaultApplication;
319
320 StreamClass m_streamClass{StreamClass::NOT_SET};
321
323
324 Aws::Utils::DateTime m_createdAt{};
325
326 Aws::Utils::DateTime m_lastUpdatedAt{};
327
328 Aws::Utils::DateTime m_expiresAt{};
329 bool m_arnHasBeenSet = false;
330 bool m_idHasBeenSet = false;
331 bool m_descriptionHasBeenSet = false;
332 bool m_defaultApplicationHasBeenSet = false;
333 bool m_streamClassHasBeenSet = false;
334 bool m_statusHasBeenSet = false;
335 bool m_createdAtHasBeenSet = false;
336 bool m_lastUpdatedAtHasBeenSet = false;
337 bool m_expiresAtHasBeenSet = false;
338};
339
340} // namespace Model
341} // namespace GameLiftStreams
342} // namespace Aws
void SetDefaultApplication(DefaultApplicationT &&value)
StreamGroupSummary & WithArn(ArnT &&value)
StreamGroupSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
StreamGroupSummary & WithStreamClass(StreamClass value)
AWS_GAMELIFTSTREAMS_API StreamGroupSummary(Aws::Utils::Json::JsonView jsonValue)
StreamGroupSummary & WithDescription(DescriptionT &&value)
AWS_GAMELIFTSTREAMS_API StreamGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const DefaultApplication & GetDefaultApplication() const
AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
StreamGroupSummary & WithStatus(StreamGroupStatus value)
const Aws::Utils::DateTime & GetExpiresAt() const
StreamGroupSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_GAMELIFTSTREAMS_API StreamGroupSummary()=default
StreamGroupSummary & WithExpiresAt(ExpiresAtT &&value)
StreamGroupSummary & WithDefaultApplication(DefaultApplicationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue