AWS SDK for C++

AWS SDK for C++ Version 1.11.636

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/gameliftstreams/model/StreamClass.h>
11#include <aws/core/utils/memory/stl/AWSVector.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
44 inline const Aws::String& GetDescription() const { return m_description; }
45 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
46 template<typename DescriptionT = Aws::String>
47 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
48 template<typename DescriptionT = Aws::String>
49 CreateStreamGroupRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
51
53
97 inline StreamClass GetStreamClass() const { return m_streamClass; }
98 inline bool StreamClassHasBeenSet() const { return m_streamClassHasBeenSet; }
99 inline void SetStreamClass(StreamClass value) { m_streamClassHasBeenSet = true; m_streamClass = value; }
102
104
120 inline const Aws::String& GetDefaultApplicationIdentifier() const { return m_defaultApplicationIdentifier; }
121 inline bool DefaultApplicationIdentifierHasBeenSet() const { return m_defaultApplicationIdentifierHasBeenSet; }
122 template<typename DefaultApplicationIdentifierT = Aws::String>
123 void SetDefaultApplicationIdentifier(DefaultApplicationIdentifierT&& value) { m_defaultApplicationIdentifierHasBeenSet = true; m_defaultApplicationIdentifier = std::forward<DefaultApplicationIdentifierT>(value); }
124 template<typename DefaultApplicationIdentifierT = Aws::String>
125 CreateStreamGroupRequest& WithDefaultApplicationIdentifier(DefaultApplicationIdentifierT&& value) { SetDefaultApplicationIdentifier(std::forward<DefaultApplicationIdentifierT>(value)); return *this;}
127
129
133 inline const Aws::Vector<LocationConfiguration>& GetLocationConfigurations() const { return m_locationConfigurations; }
134 inline bool LocationConfigurationsHasBeenSet() const { return m_locationConfigurationsHasBeenSet; }
135 template<typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
136 void SetLocationConfigurations(LocationConfigurationsT&& value) { m_locationConfigurationsHasBeenSet = true; m_locationConfigurations = std::forward<LocationConfigurationsT>(value); }
137 template<typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
138 CreateStreamGroupRequest& WithLocationConfigurations(LocationConfigurationsT&& value) { SetLocationConfigurations(std::forward<LocationConfigurationsT>(value)); return *this;}
139 template<typename LocationConfigurationsT = LocationConfiguration>
140 CreateStreamGroupRequest& AddLocationConfigurations(LocationConfigurationsT&& value) { m_locationConfigurationsHasBeenSet = true; m_locationConfigurations.emplace_back(std::forward<LocationConfigurationsT>(value)); return *this; }
142
144
158 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
162 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 CreateStreamGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
164 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
165 CreateStreamGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
166 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
167 }
169
171
176 inline const Aws::String& GetClientToken() const { return m_clientToken; }
177 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
178 template<typename ClientTokenT = Aws::String>
179 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
180 template<typename ClientTokenT = Aws::String>
181 CreateStreamGroupRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
183 private:
184
185 Aws::String m_description;
186 bool m_descriptionHasBeenSet = false;
187
188 StreamClass m_streamClass{StreamClass::NOT_SET};
189 bool m_streamClassHasBeenSet = false;
190
191 Aws::String m_defaultApplicationIdentifier;
192 bool m_defaultApplicationIdentifierHasBeenSet = false;
193
194 Aws::Vector<LocationConfiguration> m_locationConfigurations;
195 bool m_locationConfigurationsHasBeenSet = false;
196
198 bool m_tagsHasBeenSet = false;
199
201 bool m_clientTokenHasBeenSet = true;
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