AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
CreateStreamGroupRequest.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/LocationConfiguration.h>
14#include <aws/gameliftstreams/model/StreamClass.h>
15
16#include <utility>
17
18namespace Aws {
19namespace GameLiftStreams {
20namespace Model {
21
25 public:
26 AWS_GAMELIFTSTREAMS_API CreateStreamGroupRequest() = 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 "CreateStreamGroup"; }
33
34 AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetDescription() const { return m_description; }
41 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
42 template <typename DescriptionT = Aws::String>
43 void SetDescription(DescriptionT&& value) {
44 m_descriptionHasBeenSet = true;
45 m_description = std::forward<DescriptionT>(value);
46 }
47 template <typename DescriptionT = Aws::String>
49 SetDescription(std::forward<DescriptionT>(value));
50 return *this;
51 }
53
55
169 inline StreamClass GetStreamClass() const { return m_streamClass; }
170 inline bool StreamClassHasBeenSet() const { return m_streamClassHasBeenSet; }
171 inline void SetStreamClass(StreamClass value) {
172 m_streamClassHasBeenSet = true;
173 m_streamClass = value;
174 }
176 SetStreamClass(value);
177 return *this;
178 }
180
182
198 inline const Aws::String& GetDefaultApplicationIdentifier() const { return m_defaultApplicationIdentifier; }
199 inline bool DefaultApplicationIdentifierHasBeenSet() const { return m_defaultApplicationIdentifierHasBeenSet; }
200 template <typename DefaultApplicationIdentifierT = Aws::String>
201 void SetDefaultApplicationIdentifier(DefaultApplicationIdentifierT&& value) {
202 m_defaultApplicationIdentifierHasBeenSet = true;
203 m_defaultApplicationIdentifier = std::forward<DefaultApplicationIdentifierT>(value);
204 }
205 template <typename DefaultApplicationIdentifierT = Aws::String>
206 CreateStreamGroupRequest& WithDefaultApplicationIdentifier(DefaultApplicationIdentifierT&& value) {
207 SetDefaultApplicationIdentifier(std::forward<DefaultApplicationIdentifierT>(value));
208 return *this;
209 }
211
213
217 inline const Aws::Vector<LocationConfiguration>& GetLocationConfigurations() const { return m_locationConfigurations; }
218 inline bool LocationConfigurationsHasBeenSet() const { return m_locationConfigurationsHasBeenSet; }
219 template <typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
220 void SetLocationConfigurations(LocationConfigurationsT&& value) {
221 m_locationConfigurationsHasBeenSet = true;
222 m_locationConfigurations = std::forward<LocationConfigurationsT>(value);
223 }
224 template <typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
225 CreateStreamGroupRequest& WithLocationConfigurations(LocationConfigurationsT&& value) {
226 SetLocationConfigurations(std::forward<LocationConfigurationsT>(value));
227 return *this;
228 }
229 template <typename LocationConfigurationsT = LocationConfiguration>
230 CreateStreamGroupRequest& AddLocationConfigurations(LocationConfigurationsT&& value) {
231 m_locationConfigurationsHasBeenSet = true;
232 m_locationConfigurations.emplace_back(std::forward<LocationConfigurationsT>(value));
233 return *this;
234 }
236
238
252 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
253 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
254 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
255 void SetTags(TagsT&& value) {
256 m_tagsHasBeenSet = true;
257 m_tags = std::forward<TagsT>(value);
258 }
259 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
261 SetTags(std::forward<TagsT>(value));
262 return *this;
263 }
264 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
265 CreateStreamGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
266 m_tagsHasBeenSet = true;
267 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
268 return *this;
269 }
271
273
278 inline const Aws::String& GetClientToken() const { return m_clientToken; }
279 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
280 template <typename ClientTokenT = Aws::String>
281 void SetClientToken(ClientTokenT&& value) {
282 m_clientTokenHasBeenSet = true;
283 m_clientToken = std::forward<ClientTokenT>(value);
284 }
285 template <typename ClientTokenT = Aws::String>
287 SetClientToken(std::forward<ClientTokenT>(value));
288 return *this;
289 }
291 private:
292 Aws::String m_description;
293
294 StreamClass m_streamClass{StreamClass::NOT_SET};
295
296 Aws::String m_defaultApplicationIdentifier;
297
298 Aws::Vector<LocationConfiguration> m_locationConfigurations;
299
301
303 bool m_descriptionHasBeenSet = false;
304 bool m_streamClassHasBeenSet = false;
305 bool m_defaultApplicationIdentifierHasBeenSet = false;
306 bool m_locationConfigurationsHasBeenSet = false;
307 bool m_tagsHasBeenSet = false;
308 bool m_clientTokenHasBeenSet = true;
309};
310
311} // namespace Model
312} // namespace GameLiftStreams
313} // namespace Aws
void SetLocationConfigurations(LocationConfigurationsT &&value)
AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override
CreateStreamGroupRequest & WithLocationConfigurations(LocationConfigurationsT &&value)
CreateStreamGroupRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
CreateStreamGroupRequest & AddLocationConfigurations(LocationConfigurationsT &&value)
CreateStreamGroupRequest & WithStreamClass(StreamClass value)
const Aws::Vector< LocationConfiguration > & GetLocationConfigurations() const
CreateStreamGroupRequest & WithDefaultApplicationIdentifier(DefaultApplicationIdentifierT &&value)
CreateStreamGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetDefaultApplicationIdentifier(DefaultApplicationIdentifierT &&value)
AWS_GAMELIFTSTREAMS_API CreateStreamGroupRequest()=default
CreateStreamGroupRequest & WithClientToken(ClientTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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