AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename IdentityPoolNameT = Aws::String>
50 void SetIdentityPoolName(IdentityPoolNameT&& value) { m_identityPoolNameHasBeenSet = true; m_identityPoolName = std::forward<IdentityPoolNameT>(value); }
51 template<typename IdentityPoolNameT = Aws::String>
52 CreateIdentityPoolRequest& WithIdentityPoolName(IdentityPoolNameT&& value) { SetIdentityPoolName(std::forward<IdentityPoolNameT>(value)); return *this;}
54
56
59 inline bool GetAllowUnauthenticatedIdentities() const { return m_allowUnauthenticatedIdentities; }
60 inline bool AllowUnauthenticatedIdentitiesHasBeenSet() const { return m_allowUnauthenticatedIdentitiesHasBeenSet; }
61 inline void SetAllowUnauthenticatedIdentities(bool value) { m_allowUnauthenticatedIdentitiesHasBeenSet = true; m_allowUnauthenticatedIdentities = value; }
64
66
73 inline bool GetAllowClassicFlow() const { return m_allowClassicFlow; }
74 inline bool AllowClassicFlowHasBeenSet() const { return m_allowClassicFlowHasBeenSet; }
75 inline void SetAllowClassicFlow(bool value) { m_allowClassicFlowHasBeenSet = true; m_allowClassicFlow = value; }
76 inline CreateIdentityPoolRequest& WithAllowClassicFlow(bool value) { SetAllowClassicFlow(value); return *this;}
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetSupportedLoginProviders() const { return m_supportedLoginProviders; }
84 inline bool SupportedLoginProvidersHasBeenSet() const { return m_supportedLoginProvidersHasBeenSet; }
85 template<typename SupportedLoginProvidersT = Aws::Map<Aws::String, Aws::String>>
86 void SetSupportedLoginProviders(SupportedLoginProvidersT&& value) { m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders = std::forward<SupportedLoginProvidersT>(value); }
87 template<typename SupportedLoginProvidersT = Aws::Map<Aws::String, Aws::String>>
88 CreateIdentityPoolRequest& WithSupportedLoginProviders(SupportedLoginProvidersT&& value) { SetSupportedLoginProviders(std::forward<SupportedLoginProvidersT>(value)); return *this;}
89 template<typename SupportedLoginProvidersKeyT = Aws::String, typename SupportedLoginProvidersValueT = Aws::String>
90 CreateIdentityPoolRequest& AddSupportedLoginProviders(SupportedLoginProvidersKeyT&& key, SupportedLoginProvidersValueT&& value) {
91 m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders.emplace(std::forward<SupportedLoginProvidersKeyT>(key), std::forward<SupportedLoginProvidersValueT>(value)); return *this;
92 }
94
96
104 inline const Aws::String& GetDeveloperProviderName() const { return m_developerProviderName; }
105 inline bool DeveloperProviderNameHasBeenSet() const { return m_developerProviderNameHasBeenSet; }
106 template<typename DeveloperProviderNameT = Aws::String>
107 void SetDeveloperProviderName(DeveloperProviderNameT&& value) { m_developerProviderNameHasBeenSet = true; m_developerProviderName = std::forward<DeveloperProviderNameT>(value); }
108 template<typename DeveloperProviderNameT = Aws::String>
109 CreateIdentityPoolRequest& WithDeveloperProviderName(DeveloperProviderNameT&& value) { SetDeveloperProviderName(std::forward<DeveloperProviderNameT>(value)); return *this;}
111
113
116 inline const Aws::Vector<Aws::String>& GetOpenIdConnectProviderARNs() const { return m_openIdConnectProviderARNs; }
117 inline bool OpenIdConnectProviderARNsHasBeenSet() const { return m_openIdConnectProviderARNsHasBeenSet; }
118 template<typename OpenIdConnectProviderARNsT = Aws::Vector<Aws::String>>
119 void SetOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT&& value) { m_openIdConnectProviderARNsHasBeenSet = true; m_openIdConnectProviderARNs = std::forward<OpenIdConnectProviderARNsT>(value); }
120 template<typename OpenIdConnectProviderARNsT = Aws::Vector<Aws::String>>
121 CreateIdentityPoolRequest& WithOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT&& value) { SetOpenIdConnectProviderARNs(std::forward<OpenIdConnectProviderARNsT>(value)); return *this;}
122 template<typename OpenIdConnectProviderARNsT = Aws::String>
123 CreateIdentityPoolRequest& AddOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT&& value) { m_openIdConnectProviderARNsHasBeenSet = true; m_openIdConnectProviderARNs.emplace_back(std::forward<OpenIdConnectProviderARNsT>(value)); return *this; }
125
127
130 inline const Aws::Vector<CognitoIdentityProvider>& GetCognitoIdentityProviders() const { return m_cognitoIdentityProviders; }
131 inline bool CognitoIdentityProvidersHasBeenSet() const { return m_cognitoIdentityProvidersHasBeenSet; }
132 template<typename CognitoIdentityProvidersT = Aws::Vector<CognitoIdentityProvider>>
133 void SetCognitoIdentityProviders(CognitoIdentityProvidersT&& value) { m_cognitoIdentityProvidersHasBeenSet = true; m_cognitoIdentityProviders = std::forward<CognitoIdentityProvidersT>(value); }
134 template<typename CognitoIdentityProvidersT = Aws::Vector<CognitoIdentityProvider>>
135 CreateIdentityPoolRequest& WithCognitoIdentityProviders(CognitoIdentityProvidersT&& value) { SetCognitoIdentityProviders(std::forward<CognitoIdentityProvidersT>(value)); return *this;}
136 template<typename CognitoIdentityProvidersT = CognitoIdentityProvider>
137 CreateIdentityPoolRequest& AddCognitoIdentityProviders(CognitoIdentityProvidersT&& value) { m_cognitoIdentityProvidersHasBeenSet = true; m_cognitoIdentityProviders.emplace_back(std::forward<CognitoIdentityProvidersT>(value)); return *this; }
139
141
145 inline const Aws::Vector<Aws::String>& GetSamlProviderARNs() const { return m_samlProviderARNs; }
146 inline bool SamlProviderARNsHasBeenSet() const { return m_samlProviderARNsHasBeenSet; }
147 template<typename SamlProviderARNsT = Aws::Vector<Aws::String>>
148 void SetSamlProviderARNs(SamlProviderARNsT&& value) { m_samlProviderARNsHasBeenSet = true; m_samlProviderARNs = std::forward<SamlProviderARNsT>(value); }
149 template<typename SamlProviderARNsT = Aws::Vector<Aws::String>>
150 CreateIdentityPoolRequest& WithSamlProviderARNs(SamlProviderARNsT&& value) { SetSamlProviderARNs(std::forward<SamlProviderARNsT>(value)); return *this;}
151 template<typename SamlProviderARNsT = Aws::String>
152 CreateIdentityPoolRequest& AddSamlProviderARNs(SamlProviderARNsT&& value) { m_samlProviderARNsHasBeenSet = true; m_samlProviderARNs.emplace_back(std::forward<SamlProviderARNsT>(value)); return *this; }
154
156
161 inline const Aws::Map<Aws::String, Aws::String>& GetIdentityPoolTags() const { return m_identityPoolTags; }
162 inline bool IdentityPoolTagsHasBeenSet() const { return m_identityPoolTagsHasBeenSet; }
163 template<typename IdentityPoolTagsT = Aws::Map<Aws::String, Aws::String>>
164 void SetIdentityPoolTags(IdentityPoolTagsT&& value) { m_identityPoolTagsHasBeenSet = true; m_identityPoolTags = std::forward<IdentityPoolTagsT>(value); }
165 template<typename IdentityPoolTagsT = Aws::Map<Aws::String, Aws::String>>
166 CreateIdentityPoolRequest& WithIdentityPoolTags(IdentityPoolTagsT&& value) { SetIdentityPoolTags(std::forward<IdentityPoolTagsT>(value)); return *this;}
167 template<typename IdentityPoolTagsKeyT = Aws::String, typename IdentityPoolTagsValueT = Aws::String>
168 CreateIdentityPoolRequest& AddIdentityPoolTags(IdentityPoolTagsKeyT&& key, IdentityPoolTagsValueT&& value) {
169 m_identityPoolTagsHasBeenSet = true; m_identityPoolTags.emplace(std::forward<IdentityPoolTagsKeyT>(key), std::forward<IdentityPoolTagsValueT>(value)); return *this;
170 }
172 private:
173
174 Aws::String m_identityPoolName;
175 bool m_identityPoolNameHasBeenSet = false;
176
177 bool m_allowUnauthenticatedIdentities{false};
178 bool m_allowUnauthenticatedIdentitiesHasBeenSet = false;
179
180 bool m_allowClassicFlow{false};
181 bool m_allowClassicFlowHasBeenSet = false;
182
183 Aws::Map<Aws::String, Aws::String> m_supportedLoginProviders;
184 bool m_supportedLoginProvidersHasBeenSet = false;
185
186 Aws::String m_developerProviderName;
187 bool m_developerProviderNameHasBeenSet = false;
188
189 Aws::Vector<Aws::String> m_openIdConnectProviderARNs;
190 bool m_openIdConnectProviderARNsHasBeenSet = false;
191
192 Aws::Vector<CognitoIdentityProvider> m_cognitoIdentityProviders;
193 bool m_cognitoIdentityProvidersHasBeenSet = false;
194
195 Aws::Vector<Aws::String> m_samlProviderARNs;
196 bool m_samlProviderARNsHasBeenSet = false;
197
198 Aws::Map<Aws::String, Aws::String> m_identityPoolTags;
199 bool m_identityPoolTagsHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace CognitoIdentity
204} // 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