AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateIdentityPoolRequest.h
1
6#pragma once
7#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
8#include <aws/cognito-identity/CognitoIdentityRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/cognito-identity/model/CognitoIdentityProvider.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CognitoIdentity
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_COGNITOIDENTITY_API CreateIdentityPoolRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateIdentityPool"; }
37
38 AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override;
39
40 AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const Aws::String& GetIdentityPoolName() const{ return m_identityPoolName; }
48 inline bool IdentityPoolNameHasBeenSet() const { return m_identityPoolNameHasBeenSet; }
49 inline void SetIdentityPoolName(const Aws::String& value) { m_identityPoolNameHasBeenSet = true; m_identityPoolName = value; }
50 inline void SetIdentityPoolName(Aws::String&& value) { m_identityPoolNameHasBeenSet = true; m_identityPoolName = std::move(value); }
51 inline void SetIdentityPoolName(const char* value) { m_identityPoolNameHasBeenSet = true; m_identityPoolName.assign(value); }
53 inline CreateIdentityPoolRequest& WithIdentityPoolName(Aws::String&& value) { SetIdentityPoolName(std::move(value)); return *this;}
54 inline CreateIdentityPoolRequest& WithIdentityPoolName(const char* value) { SetIdentityPoolName(value); return *this;}
56
58
61 inline bool GetAllowUnauthenticatedIdentities() const{ return m_allowUnauthenticatedIdentities; }
62 inline bool AllowUnauthenticatedIdentitiesHasBeenSet() const { return m_allowUnauthenticatedIdentitiesHasBeenSet; }
63 inline void SetAllowUnauthenticatedIdentities(bool value) { m_allowUnauthenticatedIdentitiesHasBeenSet = true; m_allowUnauthenticatedIdentities = value; }
66
68
75 inline bool GetAllowClassicFlow() const{ return m_allowClassicFlow; }
76 inline bool AllowClassicFlowHasBeenSet() const { return m_allowClassicFlowHasBeenSet; }
77 inline void SetAllowClassicFlow(bool value) { m_allowClassicFlowHasBeenSet = true; m_allowClassicFlow = value; }
78 inline CreateIdentityPoolRequest& WithAllowClassicFlow(bool value) { SetAllowClassicFlow(value); return *this;}
80
82
85 inline const Aws::Map<Aws::String, Aws::String>& GetSupportedLoginProviders() const{ return m_supportedLoginProviders; }
86 inline bool SupportedLoginProvidersHasBeenSet() const { return m_supportedLoginProvidersHasBeenSet; }
87 inline void SetSupportedLoginProviders(const Aws::Map<Aws::String, Aws::String>& value) { m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders = value; }
88 inline void SetSupportedLoginProviders(Aws::Map<Aws::String, Aws::String>&& value) { m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders = std::move(value); }
91 inline CreateIdentityPoolRequest& AddSupportedLoginProviders(const Aws::String& key, const Aws::String& value) { m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders.emplace(key, value); return *this; }
92 inline CreateIdentityPoolRequest& AddSupportedLoginProviders(Aws::String&& key, const Aws::String& value) { m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders.emplace(std::move(key), value); return *this; }
93 inline CreateIdentityPoolRequest& AddSupportedLoginProviders(const Aws::String& key, Aws::String&& value) { m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders.emplace(key, std::move(value)); return *this; }
94 inline CreateIdentityPoolRequest& AddSupportedLoginProviders(Aws::String&& key, Aws::String&& value) { m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders.emplace(std::move(key), std::move(value)); return *this; }
95 inline CreateIdentityPoolRequest& AddSupportedLoginProviders(const char* key, Aws::String&& value) { m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders.emplace(key, std::move(value)); return *this; }
96 inline CreateIdentityPoolRequest& AddSupportedLoginProviders(Aws::String&& key, const char* value) { m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders.emplace(std::move(key), value); return *this; }
97 inline CreateIdentityPoolRequest& AddSupportedLoginProviders(const char* key, const char* value) { m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders.emplace(key, value); return *this; }
99
101
109 inline const Aws::String& GetDeveloperProviderName() const{ return m_developerProviderName; }
110 inline bool DeveloperProviderNameHasBeenSet() const { return m_developerProviderNameHasBeenSet; }
111 inline void SetDeveloperProviderName(const Aws::String& value) { m_developerProviderNameHasBeenSet = true; m_developerProviderName = value; }
112 inline void SetDeveloperProviderName(Aws::String&& value) { m_developerProviderNameHasBeenSet = true; m_developerProviderName = std::move(value); }
113 inline void SetDeveloperProviderName(const char* value) { m_developerProviderNameHasBeenSet = true; m_developerProviderName.assign(value); }
116 inline CreateIdentityPoolRequest& WithDeveloperProviderName(const char* value) { SetDeveloperProviderName(value); return *this;}
118
120
123 inline const Aws::Vector<Aws::String>& GetOpenIdConnectProviderARNs() const{ return m_openIdConnectProviderARNs; }
124 inline bool OpenIdConnectProviderARNsHasBeenSet() const { return m_openIdConnectProviderARNsHasBeenSet; }
125 inline void SetOpenIdConnectProviderARNs(const Aws::Vector<Aws::String>& value) { m_openIdConnectProviderARNsHasBeenSet = true; m_openIdConnectProviderARNs = value; }
126 inline void SetOpenIdConnectProviderARNs(Aws::Vector<Aws::String>&& value) { m_openIdConnectProviderARNsHasBeenSet = true; m_openIdConnectProviderARNs = std::move(value); }
129 inline CreateIdentityPoolRequest& AddOpenIdConnectProviderARNs(const Aws::String& value) { m_openIdConnectProviderARNsHasBeenSet = true; m_openIdConnectProviderARNs.push_back(value); return *this; }
130 inline CreateIdentityPoolRequest& AddOpenIdConnectProviderARNs(Aws::String&& value) { m_openIdConnectProviderARNsHasBeenSet = true; m_openIdConnectProviderARNs.push_back(std::move(value)); return *this; }
131 inline CreateIdentityPoolRequest& AddOpenIdConnectProviderARNs(const char* value) { m_openIdConnectProviderARNsHasBeenSet = true; m_openIdConnectProviderARNs.push_back(value); return *this; }
133
135
138 inline const Aws::Vector<CognitoIdentityProvider>& GetCognitoIdentityProviders() const{ return m_cognitoIdentityProviders; }
139 inline bool CognitoIdentityProvidersHasBeenSet() const { return m_cognitoIdentityProvidersHasBeenSet; }
140 inline void SetCognitoIdentityProviders(const Aws::Vector<CognitoIdentityProvider>& value) { m_cognitoIdentityProvidersHasBeenSet = true; m_cognitoIdentityProviders = value; }
141 inline void SetCognitoIdentityProviders(Aws::Vector<CognitoIdentityProvider>&& value) { m_cognitoIdentityProvidersHasBeenSet = true; m_cognitoIdentityProviders = std::move(value); }
144 inline CreateIdentityPoolRequest& AddCognitoIdentityProviders(const CognitoIdentityProvider& value) { m_cognitoIdentityProvidersHasBeenSet = true; m_cognitoIdentityProviders.push_back(value); return *this; }
145 inline CreateIdentityPoolRequest& AddCognitoIdentityProviders(CognitoIdentityProvider&& value) { m_cognitoIdentityProvidersHasBeenSet = true; m_cognitoIdentityProviders.push_back(std::move(value)); return *this; }
147
149
153 inline const Aws::Vector<Aws::String>& GetSamlProviderARNs() const{ return m_samlProviderARNs; }
154 inline bool SamlProviderARNsHasBeenSet() const { return m_samlProviderARNsHasBeenSet; }
155 inline void SetSamlProviderARNs(const Aws::Vector<Aws::String>& value) { m_samlProviderARNsHasBeenSet = true; m_samlProviderARNs = value; }
156 inline void SetSamlProviderARNs(Aws::Vector<Aws::String>&& value) { m_samlProviderARNsHasBeenSet = true; m_samlProviderARNs = std::move(value); }
159 inline CreateIdentityPoolRequest& AddSamlProviderARNs(const Aws::String& value) { m_samlProviderARNsHasBeenSet = true; m_samlProviderARNs.push_back(value); return *this; }
160 inline CreateIdentityPoolRequest& AddSamlProviderARNs(Aws::String&& value) { m_samlProviderARNsHasBeenSet = true; m_samlProviderARNs.push_back(std::move(value)); return *this; }
161 inline CreateIdentityPoolRequest& AddSamlProviderARNs(const char* value) { m_samlProviderARNsHasBeenSet = true; m_samlProviderARNs.push_back(value); return *this; }
163
165
170 inline const Aws::Map<Aws::String, Aws::String>& GetIdentityPoolTags() const{ return m_identityPoolTags; }
171 inline bool IdentityPoolTagsHasBeenSet() const { return m_identityPoolTagsHasBeenSet; }
172 inline void SetIdentityPoolTags(const Aws::Map<Aws::String, Aws::String>& value) { m_identityPoolTagsHasBeenSet = true; m_identityPoolTags = value; }
173 inline void SetIdentityPoolTags(Aws::Map<Aws::String, Aws::String>&& value) { m_identityPoolTagsHasBeenSet = true; m_identityPoolTags = std::move(value); }
176 inline CreateIdentityPoolRequest& AddIdentityPoolTags(const Aws::String& key, const Aws::String& value) { m_identityPoolTagsHasBeenSet = true; m_identityPoolTags.emplace(key, value); return *this; }
177 inline CreateIdentityPoolRequest& AddIdentityPoolTags(Aws::String&& key, const Aws::String& value) { m_identityPoolTagsHasBeenSet = true; m_identityPoolTags.emplace(std::move(key), value); return *this; }
178 inline CreateIdentityPoolRequest& AddIdentityPoolTags(const Aws::String& key, Aws::String&& value) { m_identityPoolTagsHasBeenSet = true; m_identityPoolTags.emplace(key, std::move(value)); return *this; }
179 inline CreateIdentityPoolRequest& AddIdentityPoolTags(Aws::String&& key, Aws::String&& value) { m_identityPoolTagsHasBeenSet = true; m_identityPoolTags.emplace(std::move(key), std::move(value)); return *this; }
180 inline CreateIdentityPoolRequest& AddIdentityPoolTags(const char* key, Aws::String&& value) { m_identityPoolTagsHasBeenSet = true; m_identityPoolTags.emplace(key, std::move(value)); return *this; }
181 inline CreateIdentityPoolRequest& AddIdentityPoolTags(Aws::String&& key, const char* value) { m_identityPoolTagsHasBeenSet = true; m_identityPoolTags.emplace(std::move(key), value); return *this; }
182 inline CreateIdentityPoolRequest& AddIdentityPoolTags(const char* key, const char* value) { m_identityPoolTagsHasBeenSet = true; m_identityPoolTags.emplace(key, value); return *this; }
184 private:
185
186 Aws::String m_identityPoolName;
187 bool m_identityPoolNameHasBeenSet = false;
188
189 bool m_allowUnauthenticatedIdentities;
190 bool m_allowUnauthenticatedIdentitiesHasBeenSet = false;
191
192 bool m_allowClassicFlow;
193 bool m_allowClassicFlowHasBeenSet = false;
194
195 Aws::Map<Aws::String, Aws::String> m_supportedLoginProviders;
196 bool m_supportedLoginProvidersHasBeenSet = false;
197
198 Aws::String m_developerProviderName;
199 bool m_developerProviderNameHasBeenSet = false;
200
201 Aws::Vector<Aws::String> m_openIdConnectProviderARNs;
202 bool m_openIdConnectProviderARNsHasBeenSet = false;
203
204 Aws::Vector<CognitoIdentityProvider> m_cognitoIdentityProviders;
205 bool m_cognitoIdentityProvidersHasBeenSet = false;
206
207 Aws::Vector<Aws::String> m_samlProviderARNs;
208 bool m_samlProviderARNsHasBeenSet = false;
209
210 Aws::Map<Aws::String, Aws::String> m_identityPoolTags;
211 bool m_identityPoolTagsHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace CognitoIdentity
216} // namespace Aws
CreateIdentityPoolRequest & AddCognitoIdentityProviders(CognitoIdentityProvider &&value)
void SetIdentityPoolTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateIdentityPoolRequest & AddSupportedLoginProviders(const Aws::String &key, Aws::String &&value)
void SetSamlProviderARNs(const Aws::Vector< Aws::String > &value)
CreateIdentityPoolRequest & AddIdentityPoolTags(const char *key, const char *value)
CreateIdentityPoolRequest & WithSupportedLoginProviders(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< Aws::String > & GetOpenIdConnectProviderARNs() const
void SetCognitoIdentityProviders(Aws::Vector< CognitoIdentityProvider > &&value)
CreateIdentityPoolRequest & AddSupportedLoginProviders(Aws::String &&key, Aws::String &&value)
void SetSupportedLoginProviders(const Aws::Map< Aws::String, Aws::String > &value)
CreateIdentityPoolRequest & AddSupportedLoginProviders(Aws::String &&key, const Aws::String &value)
CreateIdentityPoolRequest & AddOpenIdConnectProviderARNs(Aws::String &&value)
CreateIdentityPoolRequest & AddSupportedLoginProviders(const Aws::String &key, const Aws::String &value)
CreateIdentityPoolRequest & WithAllowUnauthenticatedIdentities(bool value)
CreateIdentityPoolRequest & AddIdentityPoolTags(Aws::String &&key, const Aws::String &value)
CreateIdentityPoolRequest & AddSamlProviderARNs(Aws::String &&value)
void SetCognitoIdentityProviders(const Aws::Vector< CognitoIdentityProvider > &value)
void SetOpenIdConnectProviderARNs(Aws::Vector< Aws::String > &&value)
CreateIdentityPoolRequest & WithAllowClassicFlow(bool value)
CreateIdentityPoolRequest & WithDeveloperProviderName(const char *value)
CreateIdentityPoolRequest & WithOpenIdConnectProviderARNs(const Aws::Vector< Aws::String > &value)
AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override
CreateIdentityPoolRequest & WithCognitoIdentityProviders(const Aws::Vector< CognitoIdentityProvider > &value)
CreateIdentityPoolRequest & WithSamlProviderARNs(Aws::Vector< Aws::String > &&value)
CreateIdentityPoolRequest & WithSamlProviderARNs(const Aws::Vector< Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetIdentityPoolTags() const
CreateIdentityPoolRequest & AddOpenIdConnectProviderARNs(const Aws::String &value)
CreateIdentityPoolRequest & WithIdentityPoolName(Aws::String &&value)
CreateIdentityPoolRequest & WithIdentityPoolTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetSupportedLoginProviders(Aws::Map< Aws::String, Aws::String > &&value)
void SetIdentityPoolTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateIdentityPoolRequest & WithDeveloperProviderName(const Aws::String &value)
CreateIdentityPoolRequest & AddIdentityPoolTags(const char *key, Aws::String &&value)
CreateIdentityPoolRequest & AddIdentityPoolTags(Aws::String &&key, const char *value)
CreateIdentityPoolRequest & AddSupportedLoginProviders(const char *key, Aws::String &&value)
CreateIdentityPoolRequest & AddIdentityPoolTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetSupportedLoginProviders() const
AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateIdentityPoolRequest & WithIdentityPoolName(const char *value)
CreateIdentityPoolRequest & WithSupportedLoginProviders(Aws::Map< Aws::String, Aws::String > &&value)
void SetOpenIdConnectProviderARNs(const Aws::Vector< Aws::String > &value)
CreateIdentityPoolRequest & AddOpenIdConnectProviderARNs(const char *value)
CreateIdentityPoolRequest & AddSupportedLoginProviders(Aws::String &&key, const char *value)
CreateIdentityPoolRequest & AddIdentityPoolTags(const Aws::String &key, const Aws::String &value)
const Aws::Vector< CognitoIdentityProvider > & GetCognitoIdentityProviders() const
void SetSamlProviderARNs(Aws::Vector< Aws::String > &&value)
CreateIdentityPoolRequest & AddSamlProviderARNs(const Aws::String &value)
CreateIdentityPoolRequest & WithOpenIdConnectProviderARNs(Aws::Vector< Aws::String > &&value)
CreateIdentityPoolRequest & AddCognitoIdentityProviders(const CognitoIdentityProvider &value)
CreateIdentityPoolRequest & WithDeveloperProviderName(Aws::String &&value)
CreateIdentityPoolRequest & AddSamlProviderARNs(const char *value)
CreateIdentityPoolRequest & WithIdentityPoolName(const Aws::String &value)
CreateIdentityPoolRequest & AddSupportedLoginProviders(const char *key, const char *value)
CreateIdentityPoolRequest & AddIdentityPoolTags(const Aws::String &key, Aws::String &&value)
CreateIdentityPoolRequest & WithCognitoIdentityProviders(Aws::Vector< CognitoIdentityProvider > &&value)
const Aws::Vector< Aws::String > & GetSamlProviderARNs() const
CreateIdentityPoolRequest & WithIdentityPoolTags(const Aws::Map< Aws::String, Aws::String > &value)
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