AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
CreateStreamUrlRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gameliftstreams/GameLiftStreamsRequest.h>
12#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
13#include <aws/gameliftstreams/model/DisplayConfiguration.h>
14#include <aws/gameliftstreams/model/Protocol.h>
15
16#include <utility>
17
18namespace Aws {
19namespace GameLiftStreams {
20namespace Model {
21
25 public:
26 AWS_GAMELIFTSTREAMS_API CreateStreamUrlRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateStreamUrl"; }
33
34 AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override;
35
37
46 inline const Aws::String& GetIdentifier() const { return m_identifier; }
47 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
48 template <typename IdentifierT = Aws::String>
49 void SetIdentifier(IdentifierT&& value) {
50 m_identifierHasBeenSet = true;
51 m_identifier = std::forward<IdentifierT>(value);
52 }
53 template <typename IdentifierT = Aws::String>
54 CreateStreamUrlRequest& WithIdentifier(IdentifierT&& value) {
55 SetIdentifier(std::forward<IdentifierT>(value));
56 return *this;
57 }
59
61
70 inline const Aws::String& GetApplicationIdentifier() const { return m_applicationIdentifier; }
71 inline bool ApplicationIdentifierHasBeenSet() const { return m_applicationIdentifierHasBeenSet; }
72 template <typename ApplicationIdentifierT = Aws::String>
73 void SetApplicationIdentifier(ApplicationIdentifierT&& value) {
74 m_applicationIdentifierHasBeenSet = true;
75 m_applicationIdentifier = std::forward<ApplicationIdentifierT>(value);
76 }
77 template <typename ApplicationIdentifierT = Aws::String>
78 CreateStreamUrlRequest& WithApplicationIdentifier(ApplicationIdentifierT&& value) {
79 SetApplicationIdentifier(std::forward<ApplicationIdentifierT>(value));
80 return *this;
81 }
83
85
89 inline Protocol GetProtocol() const { return m_protocol; }
90 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
91 inline void SetProtocol(Protocol value) {
92 m_protocolHasBeenSet = true;
93 m_protocol = value;
94 }
96 SetProtocol(value);
97 return *this;
98 }
100
102
111 inline int GetUrlExpiresAfterMinutes() const { return m_urlExpiresAfterMinutes; }
112 inline bool UrlExpiresAfterMinutesHasBeenSet() const { return m_urlExpiresAfterMinutesHasBeenSet; }
113 inline void SetUrlExpiresAfterMinutes(int value) {
114 m_urlExpiresAfterMinutesHasBeenSet = true;
115 m_urlExpiresAfterMinutes = value;
116 }
119 return *this;
120 }
122
124
132 inline int GetUsageLimit() const { return m_usageLimit; }
133 inline bool UsageLimitHasBeenSet() const { return m_usageLimitHasBeenSet; }
134 inline void SetUsageLimit(int value) {
135 m_usageLimitHasBeenSet = true;
136 m_usageLimit = value;
137 }
139 SetUsageLimit(value);
140 return *this;
141 }
143
145
148 inline const Aws::String& GetDescription() const { return m_description; }
149 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
150 template <typename DescriptionT = Aws::String>
151 void SetDescription(DescriptionT&& value) {
152 m_descriptionHasBeenSet = true;
153 m_description = std::forward<DescriptionT>(value);
154 }
155 template <typename DescriptionT = Aws::String>
157 SetDescription(std::forward<DescriptionT>(value));
158 return *this;
159 }
161
163
172 inline const Aws::Vector<Aws::String>& GetLocations() const { return m_locations; }
173 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
174 template <typename LocationsT = Aws::Vector<Aws::String>>
175 void SetLocations(LocationsT&& value) {
176 m_locationsHasBeenSet = true;
177 m_locations = std::forward<LocationsT>(value);
178 }
179 template <typename LocationsT = Aws::Vector<Aws::String>>
181 SetLocations(std::forward<LocationsT>(value));
182 return *this;
183 }
184 template <typename LocationsT = Aws::String>
186 m_locationsHasBeenSet = true;
187 m_locations.emplace_back(std::forward<LocationsT>(value));
188 return *this;
189 }
191
193
198 inline int GetSessionLengthSeconds() const { return m_sessionLengthSeconds; }
199 inline bool SessionLengthSecondsHasBeenSet() const { return m_sessionLengthSecondsHasBeenSet; }
200 inline void SetSessionLengthSeconds(int value) {
201 m_sessionLengthSecondsHasBeenSet = true;
202 m_sessionLengthSeconds = value;
203 }
206 return *this;
207 }
209
211
222 inline const Aws::Vector<Aws::String>& GetAdditionalLaunchArgs() const { return m_additionalLaunchArgs; }
223 inline bool AdditionalLaunchArgsHasBeenSet() const { return m_additionalLaunchArgsHasBeenSet; }
224 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
225 void SetAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
226 m_additionalLaunchArgsHasBeenSet = true;
227 m_additionalLaunchArgs = std::forward<AdditionalLaunchArgsT>(value);
228 }
229 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
230 CreateStreamUrlRequest& WithAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
231 SetAdditionalLaunchArgs(std::forward<AdditionalLaunchArgsT>(value));
232 return *this;
233 }
234 template <typename AdditionalLaunchArgsT = Aws::String>
235 CreateStreamUrlRequest& AddAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
236 m_additionalLaunchArgsHasBeenSet = true;
237 m_additionalLaunchArgs.emplace_back(std::forward<AdditionalLaunchArgsT>(value));
238 return *this;
239 }
241
243
258 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEnvironmentVariables() const { return m_additionalEnvironmentVariables; }
259 inline bool AdditionalEnvironmentVariablesHasBeenSet() const { return m_additionalEnvironmentVariablesHasBeenSet; }
260 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
261 void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
262 m_additionalEnvironmentVariablesHasBeenSet = true;
263 m_additionalEnvironmentVariables = std::forward<AdditionalEnvironmentVariablesT>(value);
264 }
265 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
266 CreateStreamUrlRequest& WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
267 SetAdditionalEnvironmentVariables(std::forward<AdditionalEnvironmentVariablesT>(value));
268 return *this;
269 }
270 template <typename AdditionalEnvironmentVariablesKeyT = Aws::String, typename AdditionalEnvironmentVariablesValueT = Aws::String>
271 CreateStreamUrlRequest& AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT&& key,
272 AdditionalEnvironmentVariablesValueT&& value) {
273 m_additionalEnvironmentVariablesHasBeenSet = true;
274 m_additionalEnvironmentVariables.emplace(std::forward<AdditionalEnvironmentVariablesKeyT>(key),
275 std::forward<AdditionalEnvironmentVariablesValueT>(value));
276 return *this;
277 }
279
281
289 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
290 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
291 template <typename RoleArnT = Aws::String>
292 void SetRoleArn(RoleArnT&& value) {
293 m_roleArnHasBeenSet = true;
294 m_roleArn = std::forward<RoleArnT>(value);
295 }
296 template <typename RoleArnT = Aws::String>
298 SetRoleArn(std::forward<RoleArnT>(value));
299 return *this;
300 }
302
304
308 inline const DisplayConfiguration& GetDisplayConfiguration() const { return m_displayConfiguration; }
309 inline bool DisplayConfigurationHasBeenSet() const { return m_displayConfigurationHasBeenSet; }
310 template <typename DisplayConfigurationT = DisplayConfiguration>
311 void SetDisplayConfiguration(DisplayConfigurationT&& value) {
312 m_displayConfigurationHasBeenSet = true;
313 m_displayConfiguration = std::forward<DisplayConfigurationT>(value);
314 }
315 template <typename DisplayConfigurationT = DisplayConfiguration>
316 CreateStreamUrlRequest& WithDisplayConfiguration(DisplayConfigurationT&& value) {
317 SetDisplayConfiguration(std::forward<DisplayConfigurationT>(value));
318 return *this;
319 }
321
323
329 inline const Aws::String& GetClientToken() const { return m_clientToken; }
330 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
331 template <typename ClientTokenT = Aws::String>
332 void SetClientToken(ClientTokenT&& value) {
333 m_clientTokenHasBeenSet = true;
334 m_clientToken = std::forward<ClientTokenT>(value);
335 }
336 template <typename ClientTokenT = Aws::String>
338 SetClientToken(std::forward<ClientTokenT>(value));
339 return *this;
340 }
342 private:
343 Aws::String m_identifier;
344
345 Aws::String m_applicationIdentifier;
346
347 Protocol m_protocol{Protocol::NOT_SET};
348
349 int m_urlExpiresAfterMinutes{0};
350
351 int m_usageLimit{0};
352
353 Aws::String m_description;
354
355 Aws::Vector<Aws::String> m_locations;
356
357 int m_sessionLengthSeconds{0};
358
359 Aws::Vector<Aws::String> m_additionalLaunchArgs;
360
361 Aws::Map<Aws::String, Aws::String> m_additionalEnvironmentVariables;
362
363 Aws::String m_roleArn;
364
365 DisplayConfiguration m_displayConfiguration;
366
368 bool m_identifierHasBeenSet = false;
369 bool m_applicationIdentifierHasBeenSet = false;
370 bool m_protocolHasBeenSet = false;
371 bool m_urlExpiresAfterMinutesHasBeenSet = false;
372 bool m_usageLimitHasBeenSet = false;
373 bool m_descriptionHasBeenSet = false;
374 bool m_locationsHasBeenSet = false;
375 bool m_sessionLengthSecondsHasBeenSet = false;
376 bool m_additionalLaunchArgsHasBeenSet = false;
377 bool m_additionalEnvironmentVariablesHasBeenSet = false;
378 bool m_roleArnHasBeenSet = false;
379 bool m_displayConfigurationHasBeenSet = false;
380 bool m_clientTokenHasBeenSet = true;
381};
382
383} // namespace Model
384} // namespace GameLiftStreams
385} // namespace Aws
CreateStreamUrlRequest & WithSessionLengthSeconds(int value)
CreateStreamUrlRequest & WithProtocol(Protocol value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEnvironmentVariables() const
void SetDisplayConfiguration(DisplayConfigurationT &&value)
AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override
CreateStreamUrlRequest & WithClientToken(ClientTokenT &&value)
const DisplayConfiguration & GetDisplayConfiguration() const
const Aws::Vector< Aws::String > & GetAdditionalLaunchArgs() const
CreateStreamUrlRequest & WithUrlExpiresAfterMinutes(int value)
CreateStreamUrlRequest & WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT &&value)
CreateStreamUrlRequest & WithRoleArn(RoleArnT &&value)
CreateStreamUrlRequest & AddAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
CreateStreamUrlRequest & WithLocations(LocationsT &&value)
CreateStreamUrlRequest & WithIdentifier(IdentifierT &&value)
void SetAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
CreateStreamUrlRequest & AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT &&key, AdditionalEnvironmentVariablesValueT &&value)
CreateStreamUrlRequest & WithDescription(DescriptionT &&value)
CreateStreamUrlRequest & AddLocations(LocationsT &&value)
CreateStreamUrlRequest & WithApplicationIdentifier(ApplicationIdentifierT &&value)
CreateStreamUrlRequest & WithAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
CreateStreamUrlRequest & WithDisplayConfiguration(DisplayConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
void SetApplicationIdentifier(ApplicationIdentifierT &&value)
AWS_GAMELIFTSTREAMS_API CreateStreamUrlRequest()=default
const Aws::Vector< Aws::String > & GetLocations() const
void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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