AWS SDK for C++

AWS SDK for C++ Version 1.11.869

Loading...
Searching...
No Matches
StreamUrlSummary.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/StreamUrlStatus.h>
11#include <aws/gameliftstreams/model/StreamUrlStatusReason.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLiftStreams {
23namespace Model {
24
35 public:
36 AWS_GAMELIFTSTREAMS_API StreamUrlSummary() = default;
37 AWS_GAMELIFTSTREAMS_API StreamUrlSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GAMELIFTSTREAMS_API StreamUrlSummary& 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 StreamUrlSummary& WithArn(ArnT&& value) {
59 SetArn(std::forward<ArnT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetStreamUrlId() const { return m_streamUrlId; }
70 inline bool StreamUrlIdHasBeenSet() const { return m_streamUrlIdHasBeenSet; }
71 template <typename StreamUrlIdT = Aws::String>
72 void SetStreamUrlId(StreamUrlIdT&& value) {
73 m_streamUrlIdHasBeenSet = true;
74 m_streamUrlId = std::forward<StreamUrlIdT>(value);
75 }
76 template <typename StreamUrlIdT = Aws::String>
77 StreamUrlSummary& WithStreamUrlId(StreamUrlIdT&& value) {
78 SetStreamUrlId(std::forward<StreamUrlIdT>(value));
79 return *this;
80 }
82
84
90 inline const Aws::String& GetStreamUrl() const { return m_streamUrl; }
91 inline bool StreamUrlHasBeenSet() const { return m_streamUrlHasBeenSet; }
92 template <typename StreamUrlT = Aws::String>
93 void SetStreamUrl(StreamUrlT&& value) {
94 m_streamUrlHasBeenSet = true;
95 m_streamUrl = std::forward<StreamUrlT>(value);
96 }
97 template <typename StreamUrlT = Aws::String>
98 StreamUrlSummary& WithStreamUrl(StreamUrlT&& value) {
99 SetStreamUrl(std::forward<StreamUrlT>(value));
100 return *this;
101 }
103
105
115 inline StreamUrlStatus GetStatus() const { return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 inline void SetStatus(StreamUrlStatus value) {
118 m_statusHasBeenSet = true;
119 m_status = value;
120 }
122 SetStatus(value);
123 return *this;
124 }
126
128
141 inline StreamUrlStatusReason GetStatusReason() const { return m_statusReason; }
142 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
144 m_statusReasonHasBeenSet = true;
145 m_statusReason = value;
146 }
148 SetStatusReason(value);
149 return *this;
150 }
152
154
159 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
160 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
161 template <typename ExpiresAtT = Aws::Utils::DateTime>
162 void SetExpiresAt(ExpiresAtT&& value) {
163 m_expiresAtHasBeenSet = true;
164 m_expiresAt = std::forward<ExpiresAtT>(value);
165 }
166 template <typename ExpiresAtT = Aws::Utils::DateTime>
167 StreamUrlSummary& WithExpiresAt(ExpiresAtT&& value) {
168 SetExpiresAt(std::forward<ExpiresAtT>(value));
169 return *this;
170 }
172
174
179 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
180 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
181 template <typename CreatedAtT = Aws::Utils::DateTime>
182 void SetCreatedAt(CreatedAtT&& value) {
183 m_createdAtHasBeenSet = true;
184 m_createdAt = std::forward<CreatedAtT>(value);
185 }
186 template <typename CreatedAtT = Aws::Utils::DateTime>
187 StreamUrlSummary& WithCreatedAt(CreatedAtT&& value) {
188 SetCreatedAt(std::forward<CreatedAtT>(value));
189 return *this;
190 }
192
194
197 inline int GetUsageLimit() const { return m_usageLimit; }
198 inline bool UsageLimitHasBeenSet() const { return m_usageLimitHasBeenSet; }
199 inline void SetUsageLimit(int value) {
200 m_usageLimitHasBeenSet = true;
201 m_usageLimit = value;
202 }
203 inline StreamUrlSummary& WithUsageLimit(int value) {
204 SetUsageLimit(value);
205 return *this;
206 }
208
210
214 inline int GetRemainingUses() const { return m_remainingUses; }
215 inline bool RemainingUsesHasBeenSet() const { return m_remainingUsesHasBeenSet; }
216 inline void SetRemainingUses(int value) {
217 m_remainingUsesHasBeenSet = true;
218 m_remainingUses = value;
219 }
221 SetRemainingUses(value);
222 return *this;
223 }
225
227
235 inline const Aws::String& GetStreamGroupArn() const { return m_streamGroupArn; }
236 inline bool StreamGroupArnHasBeenSet() const { return m_streamGroupArnHasBeenSet; }
237 template <typename StreamGroupArnT = Aws::String>
238 void SetStreamGroupArn(StreamGroupArnT&& value) {
239 m_streamGroupArnHasBeenSet = true;
240 m_streamGroupArn = std::forward<StreamGroupArnT>(value);
241 }
242 template <typename StreamGroupArnT = Aws::String>
243 StreamUrlSummary& WithStreamGroupArn(StreamGroupArnT&& value) {
244 SetStreamGroupArn(std::forward<StreamGroupArnT>(value));
245 return *this;
246 }
248
250
258 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
259 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
260 template <typename ApplicationArnT = Aws::String>
261 void SetApplicationArn(ApplicationArnT&& value) {
262 m_applicationArnHasBeenSet = true;
263 m_applicationArn = std::forward<ApplicationArnT>(value);
264 }
265 template <typename ApplicationArnT = Aws::String>
266 StreamUrlSummary& WithApplicationArn(ApplicationArnT&& value) {
267 SetApplicationArn(std::forward<ApplicationArnT>(value));
268 return *this;
269 }
271
273
277 inline int GetSessionLengthSeconds() const { return m_sessionLengthSeconds; }
278 inline bool SessionLengthSecondsHasBeenSet() const { return m_sessionLengthSecondsHasBeenSet; }
279 inline void SetSessionLengthSeconds(int value) {
280 m_sessionLengthSecondsHasBeenSet = true;
281 m_sessionLengthSeconds = value;
282 }
285 return *this;
286 }
288
290
293 inline const Aws::String& GetDescription() const { return m_description; }
294 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
295 template <typename DescriptionT = Aws::String>
296 void SetDescription(DescriptionT&& value) {
297 m_descriptionHasBeenSet = true;
298 m_description = std::forward<DescriptionT>(value);
299 }
300 template <typename DescriptionT = Aws::String>
301 StreamUrlSummary& WithDescription(DescriptionT&& value) {
302 SetDescription(std::forward<DescriptionT>(value));
303 return *this;
304 }
306 private:
307 Aws::String m_arn;
308
309 Aws::String m_streamUrlId;
310
311 Aws::String m_streamUrl;
312
314
316
317 Aws::Utils::DateTime m_expiresAt{};
318
319 Aws::Utils::DateTime m_createdAt{};
320
321 int m_usageLimit{0};
322
323 int m_remainingUses{0};
324
325 Aws::String m_streamGroupArn;
326
327 Aws::String m_applicationArn;
328
329 int m_sessionLengthSeconds{0};
330
331 Aws::String m_description;
332 bool m_arnHasBeenSet = false;
333 bool m_streamUrlIdHasBeenSet = false;
334 bool m_streamUrlHasBeenSet = false;
335 bool m_statusHasBeenSet = false;
336 bool m_statusReasonHasBeenSet = false;
337 bool m_expiresAtHasBeenSet = false;
338 bool m_createdAtHasBeenSet = false;
339 bool m_usageLimitHasBeenSet = false;
340 bool m_remainingUsesHasBeenSet = false;
341 bool m_streamGroupArnHasBeenSet = false;
342 bool m_applicationArnHasBeenSet = false;
343 bool m_sessionLengthSecondsHasBeenSet = false;
344 bool m_descriptionHasBeenSet = false;
345};
346
347} // namespace Model
348} // namespace GameLiftStreams
349} // namespace Aws
StreamUrlSummary & WithStreamUrlId(StreamUrlIdT &&value)
StreamUrlStatusReason GetStatusReason() const
StreamUrlSummary & WithDescription(DescriptionT &&value)
void SetStreamGroupArn(StreamGroupArnT &&value)
AWS_GAMELIFTSTREAMS_API StreamUrlSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamUrlSummary & WithArn(ArnT &&value)
AWS_GAMELIFTSTREAMS_API StreamUrlSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFTSTREAMS_API StreamUrlSummary()=default
StreamUrlSummary & WithApplicationArn(ApplicationArnT &&value)
const Aws::Utils::DateTime & GetExpiresAt() const
StreamUrlSummary & WithStreamUrl(StreamUrlT &&value)
void SetApplicationArn(ApplicationArnT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
StreamUrlSummary & WithCreatedAt(CreatedAtT &&value)
StreamUrlSummary & WithExpiresAt(ExpiresAtT &&value)
StreamUrlSummary & WithSessionLengthSeconds(int value)
StreamUrlSummary & WithRemainingUses(int value)
void SetStatusReason(StreamUrlStatusReason value)
AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
StreamUrlSummary & WithStreamGroupArn(StreamGroupArnT &&value)
StreamUrlSummary & WithStatus(StreamUrlStatus value)
StreamUrlSummary & WithStatusReason(StreamUrlStatusReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue