AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
CreateStreamUrlResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
13#include <aws/gameliftstreams/model/DisplayConfiguration.h>
14#include <aws/gameliftstreams/model/Protocol.h>
15#include <aws/gameliftstreams/model/StreamUrlStatus.h>
16#include <aws/gameliftstreams/model/StreamUrlStatusReason.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 CreateStreamUrlResult() = 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
64 inline const Aws::String& GetStreamUrlId() const { return m_streamUrlId; }
65 template <typename StreamUrlIdT = Aws::String>
66 void SetStreamUrlId(StreamUrlIdT&& value) {
67 m_streamUrlIdHasBeenSet = true;
68 m_streamUrlId = std::forward<StreamUrlIdT>(value);
69 }
70 template <typename StreamUrlIdT = Aws::String>
71 CreateStreamUrlResult& WithStreamUrlId(StreamUrlIdT&& value) {
72 SetStreamUrlId(std::forward<StreamUrlIdT>(value));
73 return *this;
74 }
76
78
84 inline const Aws::String& GetStreamUrl() const { return m_streamUrl; }
85 template <typename StreamUrlT = Aws::String>
86 void SetStreamUrl(StreamUrlT&& value) {
87 m_streamUrlHasBeenSet = true;
88 m_streamUrl = std::forward<StreamUrlT>(value);
89 }
90 template <typename StreamUrlT = Aws::String>
91 CreateStreamUrlResult& WithStreamUrl(StreamUrlT&& value) {
92 SetStreamUrl(std::forward<StreamUrlT>(value));
93 return *this;
94 }
96
98
108 inline StreamUrlStatus GetStatus() const { return m_status; }
109 inline void SetStatus(StreamUrlStatus value) {
110 m_statusHasBeenSet = true;
111 m_status = value;
112 }
114 SetStatus(value);
115 return *this;
116 }
118
120
133 inline StreamUrlStatusReason GetStatusReason() const { return m_statusReason; }
135 m_statusReasonHasBeenSet = true;
136 m_statusReason = value;
137 }
139 SetStatusReason(value);
140 return *this;
141 }
143
145
150 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
151 template <typename ExpiresAtT = Aws::Utils::DateTime>
152 void SetExpiresAt(ExpiresAtT&& value) {
153 m_expiresAtHasBeenSet = true;
154 m_expiresAt = std::forward<ExpiresAtT>(value);
155 }
156 template <typename ExpiresAtT = Aws::Utils::DateTime>
158 SetExpiresAt(std::forward<ExpiresAtT>(value));
159 return *this;
160 }
162
164
169 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
170 template <typename CreatedAtT = Aws::Utils::DateTime>
171 void SetCreatedAt(CreatedAtT&& value) {
172 m_createdAtHasBeenSet = true;
173 m_createdAt = std::forward<CreatedAtT>(value);
174 }
175 template <typename CreatedAtT = Aws::Utils::DateTime>
177 SetCreatedAt(std::forward<CreatedAtT>(value));
178 return *this;
179 }
181
183
186 inline int GetUsageLimit() const { return m_usageLimit; }
187 inline void SetUsageLimit(int value) {
188 m_usageLimitHasBeenSet = true;
189 m_usageLimit = value;
190 }
192 SetUsageLimit(value);
193 return *this;
194 }
196
198
202 inline int GetRemainingUses() const { return m_remainingUses; }
203 inline void SetRemainingUses(int value) {
204 m_remainingUsesHasBeenSet = true;
205 m_remainingUses = value;
206 }
208 SetRemainingUses(value);
209 return *this;
210 }
212
214
222 inline const Aws::String& GetStreamGroupArn() const { return m_streamGroupArn; }
223 template <typename StreamGroupArnT = Aws::String>
224 void SetStreamGroupArn(StreamGroupArnT&& value) {
225 m_streamGroupArnHasBeenSet = true;
226 m_streamGroupArn = std::forward<StreamGroupArnT>(value);
227 }
228 template <typename StreamGroupArnT = Aws::String>
229 CreateStreamUrlResult& WithStreamGroupArn(StreamGroupArnT&& value) {
230 SetStreamGroupArn(std::forward<StreamGroupArnT>(value));
231 return *this;
232 }
234
236
244 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
245 template <typename ApplicationArnT = Aws::String>
246 void SetApplicationArn(ApplicationArnT&& value) {
247 m_applicationArnHasBeenSet = true;
248 m_applicationArn = std::forward<ApplicationArnT>(value);
249 }
250 template <typename ApplicationArnT = Aws::String>
251 CreateStreamUrlResult& WithApplicationArn(ApplicationArnT&& value) {
252 SetApplicationArn(std::forward<ApplicationArnT>(value));
253 return *this;
254 }
256
258
262 inline Protocol GetProtocol() const { return m_protocol; }
263 inline void SetProtocol(Protocol value) {
264 m_protocolHasBeenSet = true;
265 m_protocol = value;
266 }
268 SetProtocol(value);
269 return *this;
270 }
272
274
282 inline const Aws::Vector<Aws::String>& GetLocations() const { return m_locations; }
283 template <typename LocationsT = Aws::Vector<Aws::String>>
284 void SetLocations(LocationsT&& value) {
285 m_locationsHasBeenSet = true;
286 m_locations = std::forward<LocationsT>(value);
287 }
288 template <typename LocationsT = Aws::Vector<Aws::String>>
290 SetLocations(std::forward<LocationsT>(value));
291 return *this;
292 }
293 template <typename LocationsT = Aws::String>
294 CreateStreamUrlResult& AddLocations(LocationsT&& value) {
295 m_locationsHasBeenSet = true;
296 m_locations.emplace_back(std::forward<LocationsT>(value));
297 return *this;
298 }
300
302
306 inline int GetSessionLengthSeconds() const { return m_sessionLengthSeconds; }
307 inline void SetSessionLengthSeconds(int value) {
308 m_sessionLengthSecondsHasBeenSet = true;
309 m_sessionLengthSeconds = value;
310 }
313 return *this;
314 }
316
318
321 inline const Aws::String& GetDescription() const { return m_description; }
322 template <typename DescriptionT = Aws::String>
323 void SetDescription(DescriptionT&& value) {
324 m_descriptionHasBeenSet = true;
325 m_description = std::forward<DescriptionT>(value);
326 }
327 template <typename DescriptionT = Aws::String>
328 CreateStreamUrlResult& WithDescription(DescriptionT&& value) {
329 SetDescription(std::forward<DescriptionT>(value));
330 return *this;
331 }
333
335
339 inline const Aws::Vector<Aws::String>& GetAdditionalLaunchArgs() const { return m_additionalLaunchArgs; }
340 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
341 void SetAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
342 m_additionalLaunchArgsHasBeenSet = true;
343 m_additionalLaunchArgs = std::forward<AdditionalLaunchArgsT>(value);
344 }
345 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
346 CreateStreamUrlResult& WithAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
347 SetAdditionalLaunchArgs(std::forward<AdditionalLaunchArgsT>(value));
348 return *this;
349 }
350 template <typename AdditionalLaunchArgsT = Aws::String>
351 CreateStreamUrlResult& AddAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
352 m_additionalLaunchArgsHasBeenSet = true;
353 m_additionalLaunchArgs.emplace_back(std::forward<AdditionalLaunchArgsT>(value));
354 return *this;
355 }
357
359
363 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEnvironmentVariables() const { return m_additionalEnvironmentVariables; }
364 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
365 void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
366 m_additionalEnvironmentVariablesHasBeenSet = true;
367 m_additionalEnvironmentVariables = std::forward<AdditionalEnvironmentVariablesT>(value);
368 }
369 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
370 CreateStreamUrlResult& WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
371 SetAdditionalEnvironmentVariables(std::forward<AdditionalEnvironmentVariablesT>(value));
372 return *this;
373 }
374 template <typename AdditionalEnvironmentVariablesKeyT = Aws::String, typename AdditionalEnvironmentVariablesValueT = Aws::String>
375 CreateStreamUrlResult& AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT&& key,
376 AdditionalEnvironmentVariablesValueT&& value) {
377 m_additionalEnvironmentVariablesHasBeenSet = true;
378 m_additionalEnvironmentVariables.emplace(std::forward<AdditionalEnvironmentVariablesKeyT>(key),
379 std::forward<AdditionalEnvironmentVariablesValueT>(value));
380 return *this;
381 }
383
385
393 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
394 template <typename RoleArnT = Aws::String>
395 void SetRoleArn(RoleArnT&& value) {
396 m_roleArnHasBeenSet = true;
397 m_roleArn = std::forward<RoleArnT>(value);
398 }
399 template <typename RoleArnT = Aws::String>
401 SetRoleArn(std::forward<RoleArnT>(value));
402 return *this;
403 }
405
407
411 inline const DisplayConfiguration& GetDisplayConfiguration() const { return m_displayConfiguration; }
412 template <typename DisplayConfigurationT = DisplayConfiguration>
413 void SetDisplayConfiguration(DisplayConfigurationT&& value) {
414 m_displayConfigurationHasBeenSet = true;
415 m_displayConfiguration = std::forward<DisplayConfigurationT>(value);
416 }
417 template <typename DisplayConfigurationT = DisplayConfiguration>
418 CreateStreamUrlResult& WithDisplayConfiguration(DisplayConfigurationT&& value) {
419 SetDisplayConfiguration(std::forward<DisplayConfigurationT>(value));
420 return *this;
421 }
423
425
426 inline const Aws::String& GetRequestId() const { return m_requestId; }
427 template <typename RequestIdT = Aws::String>
428 void SetRequestId(RequestIdT&& value) {
429 m_requestIdHasBeenSet = true;
430 m_requestId = std::forward<RequestIdT>(value);
431 }
432 template <typename RequestIdT = Aws::String>
434 SetRequestId(std::forward<RequestIdT>(value));
435 return *this;
436 }
438 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
439
440 private:
441 Aws::String m_arn;
442
443 Aws::String m_streamUrlId;
444
445 Aws::String m_streamUrl;
446
448
450
451 Aws::Utils::DateTime m_expiresAt{};
452
453 Aws::Utils::DateTime m_createdAt{};
454
455 int m_usageLimit{0};
456
457 int m_remainingUses{0};
458
459 Aws::String m_streamGroupArn;
460
461 Aws::String m_applicationArn;
462
463 Protocol m_protocol{Protocol::NOT_SET};
464
465 Aws::Vector<Aws::String> m_locations;
466
467 int m_sessionLengthSeconds{0};
468
469 Aws::String m_description;
470
471 Aws::Vector<Aws::String> m_additionalLaunchArgs;
472
473 Aws::Map<Aws::String, Aws::String> m_additionalEnvironmentVariables;
474
475 Aws::String m_roleArn;
476
477 DisplayConfiguration m_displayConfiguration;
478
479 Aws::String m_requestId;
480 Aws::Http::HttpResponseCode m_HttpResponseCode;
481 bool m_arnHasBeenSet = false;
482 bool m_streamUrlIdHasBeenSet = false;
483 bool m_streamUrlHasBeenSet = false;
484 bool m_statusHasBeenSet = false;
485 bool m_statusReasonHasBeenSet = false;
486 bool m_expiresAtHasBeenSet = false;
487 bool m_createdAtHasBeenSet = false;
488 bool m_usageLimitHasBeenSet = false;
489 bool m_remainingUsesHasBeenSet = false;
490 bool m_streamGroupArnHasBeenSet = false;
491 bool m_applicationArnHasBeenSet = false;
492 bool m_protocolHasBeenSet = false;
493 bool m_locationsHasBeenSet = false;
494 bool m_sessionLengthSecondsHasBeenSet = false;
495 bool m_descriptionHasBeenSet = false;
496 bool m_additionalLaunchArgsHasBeenSet = false;
497 bool m_additionalEnvironmentVariablesHasBeenSet = false;
498 bool m_roleArnHasBeenSet = false;
499 bool m_displayConfigurationHasBeenSet = false;
500 bool m_requestIdHasBeenSet = false;
501};
502
503} // namespace Model
504} // namespace GameLiftStreams
505} // namespace Aws
const Aws::Vector< Aws::String > & GetAdditionalLaunchArgs() const
CreateStreamUrlResult & WithDescription(DescriptionT &&value)
CreateStreamUrlResult & WithLocations(LocationsT &&value)
CreateStreamUrlResult & WithProtocol(Protocol value)
CreateStreamUrlResult & WithStreamUrlId(StreamUrlIdT &&value)
CreateStreamUrlResult & WithStreamGroupArn(StreamGroupArnT &&value)
CreateStreamUrlResult & WithStatusReason(StreamUrlStatusReason value)
void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT &&value)
AWS_GAMELIFTSTREAMS_API CreateStreamUrlResult()=default
AWS_GAMELIFTSTREAMS_API CreateStreamUrlResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateStreamUrlResult & WithStreamUrl(StreamUrlT &&value)
AWS_GAMELIFTSTREAMS_API CreateStreamUrlResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateStreamUrlResult & WithCreatedAt(CreatedAtT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< Aws::String > & GetLocations() const
CreateStreamUrlResult & WithSessionLengthSeconds(int value)
CreateStreamUrlResult & AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT &&key, AdditionalEnvironmentVariablesValueT &&value)
CreateStreamUrlResult & WithApplicationArn(ApplicationArnT &&value)
CreateStreamUrlResult & WithRoleArn(RoleArnT &&value)
CreateStreamUrlResult & WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT &&value)
CreateStreamUrlResult & WithExpiresAt(ExpiresAtT &&value)
CreateStreamUrlResult & WithStatus(StreamUrlStatus value)
void SetAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
void SetDisplayConfiguration(DisplayConfigurationT &&value)
CreateStreamUrlResult & WithRequestId(RequestIdT &&value)
CreateStreamUrlResult & WithDisplayConfiguration(DisplayConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEnvironmentVariables() const
const DisplayConfiguration & GetDisplayConfiguration() const
CreateStreamUrlResult & AddAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
CreateStreamUrlResult & WithAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
CreateStreamUrlResult & AddLocations(LocationsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue