AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
144 inline StreamClass GetStreamClass() const { return m_streamClass; }
145 inline bool StreamClassHasBeenSet() const { return m_streamClassHasBeenSet; }
146 inline void SetStreamClass(StreamClass value) {
147 m_streamClassHasBeenSet = true;
148 m_streamClass = value;
149 }
151 SetStreamClass(value);
152 return *this;
153 }
155
157
173 inline const Aws::String& GetDefaultApplicationIdentifier() const { return m_defaultApplicationIdentifier; }
174 inline bool DefaultApplicationIdentifierHasBeenSet() const { return m_defaultApplicationIdentifierHasBeenSet; }
175 template <typename DefaultApplicationIdentifierT = Aws::String>
176 void SetDefaultApplicationIdentifier(DefaultApplicationIdentifierT&& value) {
177 m_defaultApplicationIdentifierHasBeenSet = true;
178 m_defaultApplicationIdentifier = std::forward<DefaultApplicationIdentifierT>(value);
179 }
180 template <typename DefaultApplicationIdentifierT = Aws::String>
181 CreateStreamGroupRequest& WithDefaultApplicationIdentifier(DefaultApplicationIdentifierT&& value) {
182 SetDefaultApplicationIdentifier(std::forward<DefaultApplicationIdentifierT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::Vector<LocationConfiguration>& GetLocationConfigurations() const { return m_locationConfigurations; }
193 inline bool LocationConfigurationsHasBeenSet() const { return m_locationConfigurationsHasBeenSet; }
194 template <typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
195 void SetLocationConfigurations(LocationConfigurationsT&& value) {
196 m_locationConfigurationsHasBeenSet = true;
197 m_locationConfigurations = std::forward<LocationConfigurationsT>(value);
198 }
199 template <typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
200 CreateStreamGroupRequest& WithLocationConfigurations(LocationConfigurationsT&& value) {
201 SetLocationConfigurations(std::forward<LocationConfigurationsT>(value));
202 return *this;
203 }
204 template <typename LocationConfigurationsT = LocationConfiguration>
205 CreateStreamGroupRequest& AddLocationConfigurations(LocationConfigurationsT&& value) {
206 m_locationConfigurationsHasBeenSet = true;
207 m_locationConfigurations.emplace_back(std::forward<LocationConfigurationsT>(value));
208 return *this;
209 }
211
213
227 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
228 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
229 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
230 void SetTags(TagsT&& value) {
231 m_tagsHasBeenSet = true;
232 m_tags = std::forward<TagsT>(value);
233 }
234 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
236 SetTags(std::forward<TagsT>(value));
237 return *this;
238 }
239 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
240 CreateStreamGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
241 m_tagsHasBeenSet = true;
242 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
243 return *this;
244 }
246
248
253 inline const Aws::String& GetClientToken() const { return m_clientToken; }
254 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
255 template <typename ClientTokenT = Aws::String>
256 void SetClientToken(ClientTokenT&& value) {
257 m_clientTokenHasBeenSet = true;
258 m_clientToken = std::forward<ClientTokenT>(value);
259 }
260 template <typename ClientTokenT = Aws::String>
262 SetClientToken(std::forward<ClientTokenT>(value));
263 return *this;
264 }
266 private:
267 Aws::String m_description;
268
269 StreamClass m_streamClass{StreamClass::NOT_SET};
270
271 Aws::String m_defaultApplicationIdentifier;
272
273 Aws::Vector<LocationConfiguration> m_locationConfigurations;
274
276
278 bool m_descriptionHasBeenSet = false;
279 bool m_streamClassHasBeenSet = false;
280 bool m_defaultApplicationIdentifierHasBeenSet = false;
281 bool m_locationConfigurationsHasBeenSet = false;
282 bool m_tagsHasBeenSet = false;
283 bool m_clientTokenHasBeenSet = true;
284};
285
286} // namespace Model
287} // namespace GameLiftStreams
288} // 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