AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateIdentityPoolRequest.h
1
6#pragma once
7#include <aws/cognito-identity/CognitoIdentityRequest.h>
8#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
9#include <aws/cognito-identity/model/CognitoIdentityProvider.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CognitoIdentity {
18namespace Model {
19
26 public:
27 AWS_COGNITOIDENTITY_API CreateIdentityPoolRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateIdentityPool"; }
34
35 AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override;
36
37 AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
43 inline const Aws::String& GetIdentityPoolName() const { return m_identityPoolName; }
44 inline bool IdentityPoolNameHasBeenSet() const { return m_identityPoolNameHasBeenSet; }
45 template <typename IdentityPoolNameT = Aws::String>
46 void SetIdentityPoolName(IdentityPoolNameT&& value) {
47 m_identityPoolNameHasBeenSet = true;
48 m_identityPoolName = std::forward<IdentityPoolNameT>(value);
49 }
50 template <typename IdentityPoolNameT = Aws::String>
51 CreateIdentityPoolRequest& WithIdentityPoolName(IdentityPoolNameT&& value) {
52 SetIdentityPoolName(std::forward<IdentityPoolNameT>(value));
53 return *this;
54 }
56
58
61 inline bool GetAllowUnauthenticatedIdentities() const { return m_allowUnauthenticatedIdentities; }
62 inline bool AllowUnauthenticatedIdentitiesHasBeenSet() const { return m_allowUnauthenticatedIdentitiesHasBeenSet; }
63 inline void SetAllowUnauthenticatedIdentities(bool value) {
64 m_allowUnauthenticatedIdentitiesHasBeenSet = true;
65 m_allowUnauthenticatedIdentities = value;
66 }
69 return *this;
70 }
72
74
81 inline bool GetAllowClassicFlow() const { return m_allowClassicFlow; }
82 inline bool AllowClassicFlowHasBeenSet() const { return m_allowClassicFlowHasBeenSet; }
83 inline void SetAllowClassicFlow(bool value) {
84 m_allowClassicFlowHasBeenSet = true;
85 m_allowClassicFlow = value;
86 }
89 return *this;
90 }
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetSupportedLoginProviders() const { return m_supportedLoginProviders; }
98 inline bool SupportedLoginProvidersHasBeenSet() const { return m_supportedLoginProvidersHasBeenSet; }
99 template <typename SupportedLoginProvidersT = Aws::Map<Aws::String, Aws::String>>
100 void SetSupportedLoginProviders(SupportedLoginProvidersT&& value) {
101 m_supportedLoginProvidersHasBeenSet = true;
102 m_supportedLoginProviders = std::forward<SupportedLoginProvidersT>(value);
103 }
104 template <typename SupportedLoginProvidersT = Aws::Map<Aws::String, Aws::String>>
105 CreateIdentityPoolRequest& WithSupportedLoginProviders(SupportedLoginProvidersT&& value) {
106 SetSupportedLoginProviders(std::forward<SupportedLoginProvidersT>(value));
107 return *this;
108 }
109 template <typename SupportedLoginProvidersKeyT = Aws::String, typename SupportedLoginProvidersValueT = Aws::String>
110 CreateIdentityPoolRequest& AddSupportedLoginProviders(SupportedLoginProvidersKeyT&& key, SupportedLoginProvidersValueT&& value) {
111 m_supportedLoginProvidersHasBeenSet = true;
112 m_supportedLoginProviders.emplace(std::forward<SupportedLoginProvidersKeyT>(key), std::forward<SupportedLoginProvidersValueT>(value));
113 return *this;
114 }
116
118
126 inline const Aws::String& GetDeveloperProviderName() const { return m_developerProviderName; }
127 inline bool DeveloperProviderNameHasBeenSet() const { return m_developerProviderNameHasBeenSet; }
128 template <typename DeveloperProviderNameT = Aws::String>
129 void SetDeveloperProviderName(DeveloperProviderNameT&& value) {
130 m_developerProviderNameHasBeenSet = true;
131 m_developerProviderName = std::forward<DeveloperProviderNameT>(value);
132 }
133 template <typename DeveloperProviderNameT = Aws::String>
134 CreateIdentityPoolRequest& WithDeveloperProviderName(DeveloperProviderNameT&& value) {
135 SetDeveloperProviderName(std::forward<DeveloperProviderNameT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Vector<Aws::String>& GetOpenIdConnectProviderARNs() const { return m_openIdConnectProviderARNs; }
145 inline bool OpenIdConnectProviderARNsHasBeenSet() const { return m_openIdConnectProviderARNsHasBeenSet; }
146 template <typename OpenIdConnectProviderARNsT = Aws::Vector<Aws::String>>
147 void SetOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT&& value) {
148 m_openIdConnectProviderARNsHasBeenSet = true;
149 m_openIdConnectProviderARNs = std::forward<OpenIdConnectProviderARNsT>(value);
150 }
151 template <typename OpenIdConnectProviderARNsT = Aws::Vector<Aws::String>>
152 CreateIdentityPoolRequest& WithOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT&& value) {
153 SetOpenIdConnectProviderARNs(std::forward<OpenIdConnectProviderARNsT>(value));
154 return *this;
155 }
156 template <typename OpenIdConnectProviderARNsT = Aws::String>
157 CreateIdentityPoolRequest& AddOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT&& value) {
158 m_openIdConnectProviderARNsHasBeenSet = true;
159 m_openIdConnectProviderARNs.emplace_back(std::forward<OpenIdConnectProviderARNsT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Vector<CognitoIdentityProvider>& GetCognitoIdentityProviders() const { return m_cognitoIdentityProviders; }
169 inline bool CognitoIdentityProvidersHasBeenSet() const { return m_cognitoIdentityProvidersHasBeenSet; }
170 template <typename CognitoIdentityProvidersT = Aws::Vector<CognitoIdentityProvider>>
171 void SetCognitoIdentityProviders(CognitoIdentityProvidersT&& value) {
172 m_cognitoIdentityProvidersHasBeenSet = true;
173 m_cognitoIdentityProviders = std::forward<CognitoIdentityProvidersT>(value);
174 }
175 template <typename CognitoIdentityProvidersT = Aws::Vector<CognitoIdentityProvider>>
176 CreateIdentityPoolRequest& WithCognitoIdentityProviders(CognitoIdentityProvidersT&& value) {
177 SetCognitoIdentityProviders(std::forward<CognitoIdentityProvidersT>(value));
178 return *this;
179 }
180 template <typename CognitoIdentityProvidersT = CognitoIdentityProvider>
181 CreateIdentityPoolRequest& AddCognitoIdentityProviders(CognitoIdentityProvidersT&& value) {
182 m_cognitoIdentityProvidersHasBeenSet = true;
183 m_cognitoIdentityProviders.emplace_back(std::forward<CognitoIdentityProvidersT>(value));
184 return *this;
185 }
187
189
193 inline const Aws::Vector<Aws::String>& GetSamlProviderARNs() const { return m_samlProviderARNs; }
194 inline bool SamlProviderARNsHasBeenSet() const { return m_samlProviderARNsHasBeenSet; }
195 template <typename SamlProviderARNsT = Aws::Vector<Aws::String>>
196 void SetSamlProviderARNs(SamlProviderARNsT&& value) {
197 m_samlProviderARNsHasBeenSet = true;
198 m_samlProviderARNs = std::forward<SamlProviderARNsT>(value);
199 }
200 template <typename SamlProviderARNsT = Aws::Vector<Aws::String>>
202 SetSamlProviderARNs(std::forward<SamlProviderARNsT>(value));
203 return *this;
204 }
205 template <typename SamlProviderARNsT = Aws::String>
206 CreateIdentityPoolRequest& AddSamlProviderARNs(SamlProviderARNsT&& value) {
207 m_samlProviderARNsHasBeenSet = true;
208 m_samlProviderARNs.emplace_back(std::forward<SamlProviderARNsT>(value));
209 return *this;
210 }
212
214
219 inline const Aws::Map<Aws::String, Aws::String>& GetIdentityPoolTags() const { return m_identityPoolTags; }
220 inline bool IdentityPoolTagsHasBeenSet() const { return m_identityPoolTagsHasBeenSet; }
221 template <typename IdentityPoolTagsT = Aws::Map<Aws::String, Aws::String>>
222 void SetIdentityPoolTags(IdentityPoolTagsT&& value) {
223 m_identityPoolTagsHasBeenSet = true;
224 m_identityPoolTags = std::forward<IdentityPoolTagsT>(value);
225 }
226 template <typename IdentityPoolTagsT = Aws::Map<Aws::String, Aws::String>>
228 SetIdentityPoolTags(std::forward<IdentityPoolTagsT>(value));
229 return *this;
230 }
231 template <typename IdentityPoolTagsKeyT = Aws::String, typename IdentityPoolTagsValueT = Aws::String>
232 CreateIdentityPoolRequest& AddIdentityPoolTags(IdentityPoolTagsKeyT&& key, IdentityPoolTagsValueT&& value) {
233 m_identityPoolTagsHasBeenSet = true;
234 m_identityPoolTags.emplace(std::forward<IdentityPoolTagsKeyT>(key), std::forward<IdentityPoolTagsValueT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_identityPoolName;
240
241 bool m_allowUnauthenticatedIdentities{false};
242
243 bool m_allowClassicFlow{false};
244
245 Aws::Map<Aws::String, Aws::String> m_supportedLoginProviders;
246
247 Aws::String m_developerProviderName;
248
249 Aws::Vector<Aws::String> m_openIdConnectProviderARNs;
250
251 Aws::Vector<CognitoIdentityProvider> m_cognitoIdentityProviders;
252
253 Aws::Vector<Aws::String> m_samlProviderARNs;
254
255 Aws::Map<Aws::String, Aws::String> m_identityPoolTags;
256 bool m_identityPoolNameHasBeenSet = false;
257 bool m_allowUnauthenticatedIdentitiesHasBeenSet = false;
258 bool m_allowClassicFlowHasBeenSet = false;
259 bool m_supportedLoginProvidersHasBeenSet = false;
260 bool m_developerProviderNameHasBeenSet = false;
261 bool m_openIdConnectProviderARNsHasBeenSet = false;
262 bool m_cognitoIdentityProvidersHasBeenSet = false;
263 bool m_samlProviderARNsHasBeenSet = false;
264 bool m_identityPoolTagsHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace CognitoIdentity
269} // namespace Aws
CreateIdentityPoolRequest & AddCognitoIdentityProviders(CognitoIdentityProvidersT &&value)
CreateIdentityPoolRequest & WithDeveloperProviderName(DeveloperProviderNameT &&value)
CreateIdentityPoolRequest & WithSamlProviderARNs(SamlProviderARNsT &&value)
const Aws::Vector< Aws::String > & GetOpenIdConnectProviderARNs() const
void SetCognitoIdentityProviders(CognitoIdentityProvidersT &&value)
void SetOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT &&value)
CreateIdentityPoolRequest & WithAllowUnauthenticatedIdentities(bool value)
CreateIdentityPoolRequest & WithAllowClassicFlow(bool value)
CreateIdentityPoolRequest & WithIdentityPoolName(IdentityPoolNameT &&value)
AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetIdentityPoolTags() const
CreateIdentityPoolRequest & WithCognitoIdentityProviders(CognitoIdentityProvidersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSupportedLoginProviders() const
AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateIdentityPoolRequest & AddOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT &&value)
CreateIdentityPoolRequest & AddSamlProviderARNs(SamlProviderARNsT &&value)
CreateIdentityPoolRequest & AddIdentityPoolTags(IdentityPoolTagsKeyT &&key, IdentityPoolTagsValueT &&value)
CreateIdentityPoolRequest & WithSupportedLoginProviders(SupportedLoginProvidersT &&value)
void SetSupportedLoginProviders(SupportedLoginProvidersT &&value)
AWS_COGNITOIDENTITY_API CreateIdentityPoolRequest()=default
CreateIdentityPoolRequest & WithIdentityPoolTags(IdentityPoolTagsT &&value)
CreateIdentityPoolRequest & AddSupportedLoginProviders(SupportedLoginProvidersKeyT &&key, SupportedLoginProvidersValueT &&value)
const Aws::Vector< CognitoIdentityProvider > & GetCognitoIdentityProviders() const
CreateIdentityPoolRequest & WithOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT &&value)
const Aws::Vector< Aws::String > & GetSamlProviderARNs() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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