AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateStreamGroupRequest.h
1
6#pragma once
7#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
8#include <aws/gameliftstreams/GameLiftStreamsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gameliftstreams/model/StreamClass.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/gameliftstreams/model/LocationConfiguration.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace GameLiftStreams
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_GAMELIFTSTREAMS_API CreateStreamGroupRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateStreamGroup"; }
36
37 AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override;
38
39
41
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 template<typename ClientTokenT = Aws::String>
49 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
50 template<typename ClientTokenT = Aws::String>
51 CreateStreamGroupRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
53
55
71 inline const Aws::String& GetDefaultApplicationIdentifier() const { return m_defaultApplicationIdentifier; }
72 inline bool DefaultApplicationIdentifierHasBeenSet() const { return m_defaultApplicationIdentifierHasBeenSet; }
73 template<typename DefaultApplicationIdentifierT = Aws::String>
74 void SetDefaultApplicationIdentifier(DefaultApplicationIdentifierT&& value) { m_defaultApplicationIdentifierHasBeenSet = true; m_defaultApplicationIdentifier = std::forward<DefaultApplicationIdentifierT>(value); }
75 template<typename DefaultApplicationIdentifierT = Aws::String>
76 CreateStreamGroupRequest& WithDefaultApplicationIdentifier(DefaultApplicationIdentifierT&& value) { SetDefaultApplicationIdentifier(std::forward<DefaultApplicationIdentifierT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template<typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
87 template<typename DescriptionT = Aws::String>
88 CreateStreamGroupRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
90
92
96 inline const Aws::Vector<LocationConfiguration>& GetLocationConfigurations() const { return m_locationConfigurations; }
97 inline bool LocationConfigurationsHasBeenSet() const { return m_locationConfigurationsHasBeenSet; }
98 template<typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
99 void SetLocationConfigurations(LocationConfigurationsT&& value) { m_locationConfigurationsHasBeenSet = true; m_locationConfigurations = std::forward<LocationConfigurationsT>(value); }
100 template<typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
101 CreateStreamGroupRequest& WithLocationConfigurations(LocationConfigurationsT&& value) { SetLocationConfigurations(std::forward<LocationConfigurationsT>(value)); return *this;}
102 template<typename LocationConfigurationsT = LocationConfiguration>
103 CreateStreamGroupRequest& AddLocationConfigurations(LocationConfigurationsT&& value) { m_locationConfigurationsHasBeenSet = true; m_locationConfigurations.emplace_back(std::forward<LocationConfigurationsT>(value)); return *this; }
105
107
151 inline StreamClass GetStreamClass() const { return m_streamClass; }
152 inline bool StreamClassHasBeenSet() const { return m_streamClassHasBeenSet; }
153 inline void SetStreamClass(StreamClass value) { m_streamClassHasBeenSet = true; m_streamClass = value; }
156
158
172 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
176 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 CreateStreamGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
178 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
179 CreateStreamGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
180 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
181 }
183 private:
184
186 bool m_clientTokenHasBeenSet = true;
187
188 Aws::String m_defaultApplicationIdentifier;
189 bool m_defaultApplicationIdentifierHasBeenSet = false;
190
191 Aws::String m_description;
192 bool m_descriptionHasBeenSet = false;
193
194 Aws::Vector<LocationConfiguration> m_locationConfigurations;
195 bool m_locationConfigurationsHasBeenSet = false;
196
197 StreamClass m_streamClass{StreamClass::NOT_SET};
198 bool m_streamClassHasBeenSet = false;
199
201 bool m_tagsHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace GameLiftStreams
206} // 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