AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateIdentityPoolResult.h
1
6#pragma once
7#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cognito-identity/model/CognitoIdentityProvider.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CognitoIdentity
27{
28namespace Model
29{
37 {
38 public:
39 AWS_COGNITOIDENTITY_API CreateIdentityPoolResult() = default;
42
43
45
48 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
49 template<typename IdentityPoolIdT = Aws::String>
50 void SetIdentityPoolId(IdentityPoolIdT&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::forward<IdentityPoolIdT>(value); }
51 template<typename IdentityPoolIdT = Aws::String>
52 CreateIdentityPoolResult& WithIdentityPoolId(IdentityPoolIdT&& value) { SetIdentityPoolId(std::forward<IdentityPoolIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetIdentityPoolName() const { return m_identityPoolName; }
60 template<typename IdentityPoolNameT = Aws::String>
61 void SetIdentityPoolName(IdentityPoolNameT&& value) { m_identityPoolNameHasBeenSet = true; m_identityPoolName = std::forward<IdentityPoolNameT>(value); }
62 template<typename IdentityPoolNameT = Aws::String>
63 CreateIdentityPoolResult& WithIdentityPoolName(IdentityPoolNameT&& value) { SetIdentityPoolName(std::forward<IdentityPoolNameT>(value)); return *this;}
65
67
70 inline bool GetAllowUnauthenticatedIdentities() const { return m_allowUnauthenticatedIdentities; }
71 inline void SetAllowUnauthenticatedIdentities(bool value) { m_allowUnauthenticatedIdentitiesHasBeenSet = true; m_allowUnauthenticatedIdentities = value; }
74
76
83 inline bool GetAllowClassicFlow() const { return m_allowClassicFlow; }
84 inline void SetAllowClassicFlow(bool value) { m_allowClassicFlowHasBeenSet = true; m_allowClassicFlow = value; }
85 inline CreateIdentityPoolResult& WithAllowClassicFlow(bool value) { SetAllowClassicFlow(value); return *this;}
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetSupportedLoginProviders() const { return m_supportedLoginProviders; }
93 template<typename SupportedLoginProvidersT = Aws::Map<Aws::String, Aws::String>>
94 void SetSupportedLoginProviders(SupportedLoginProvidersT&& value) { m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders = std::forward<SupportedLoginProvidersT>(value); }
95 template<typename SupportedLoginProvidersT = Aws::Map<Aws::String, Aws::String>>
96 CreateIdentityPoolResult& WithSupportedLoginProviders(SupportedLoginProvidersT&& value) { SetSupportedLoginProviders(std::forward<SupportedLoginProvidersT>(value)); return *this;}
97 template<typename SupportedLoginProvidersKeyT = Aws::String, typename SupportedLoginProvidersValueT = Aws::String>
98 CreateIdentityPoolResult& AddSupportedLoginProviders(SupportedLoginProvidersKeyT&& key, SupportedLoginProvidersValueT&& value) {
99 m_supportedLoginProvidersHasBeenSet = true; m_supportedLoginProviders.emplace(std::forward<SupportedLoginProvidersKeyT>(key), std::forward<SupportedLoginProvidersValueT>(value)); return *this;
100 }
102
104
107 inline const Aws::String& GetDeveloperProviderName() const { return m_developerProviderName; }
108 template<typename DeveloperProviderNameT = Aws::String>
109 void SetDeveloperProviderName(DeveloperProviderNameT&& value) { m_developerProviderNameHasBeenSet = true; m_developerProviderName = std::forward<DeveloperProviderNameT>(value); }
110 template<typename DeveloperProviderNameT = Aws::String>
111 CreateIdentityPoolResult& WithDeveloperProviderName(DeveloperProviderNameT&& value) { SetDeveloperProviderName(std::forward<DeveloperProviderNameT>(value)); return *this;}
113
115
118 inline const Aws::Vector<Aws::String>& GetOpenIdConnectProviderARNs() const { return m_openIdConnectProviderARNs; }
119 template<typename OpenIdConnectProviderARNsT = Aws::Vector<Aws::String>>
120 void SetOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT&& value) { m_openIdConnectProviderARNsHasBeenSet = true; m_openIdConnectProviderARNs = std::forward<OpenIdConnectProviderARNsT>(value); }
121 template<typename OpenIdConnectProviderARNsT = Aws::Vector<Aws::String>>
122 CreateIdentityPoolResult& WithOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT&& value) { SetOpenIdConnectProviderARNs(std::forward<OpenIdConnectProviderARNsT>(value)); return *this;}
123 template<typename OpenIdConnectProviderARNsT = Aws::String>
124 CreateIdentityPoolResult& AddOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT&& value) { m_openIdConnectProviderARNsHasBeenSet = true; m_openIdConnectProviderARNs.emplace_back(std::forward<OpenIdConnectProviderARNsT>(value)); return *this; }
126
128
131 inline const Aws::Vector<CognitoIdentityProvider>& GetCognitoIdentityProviders() const { return m_cognitoIdentityProviders; }
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 CreateIdentityPoolResult& WithCognitoIdentityProviders(CognitoIdentityProvidersT&& value) { SetCognitoIdentityProviders(std::forward<CognitoIdentityProvidersT>(value)); return *this;}
136 template<typename CognitoIdentityProvidersT = CognitoIdentityProvider>
137 CreateIdentityPoolResult& 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 template<typename SamlProviderARNsT = Aws::Vector<Aws::String>>
147 void SetSamlProviderARNs(SamlProviderARNsT&& value) { m_samlProviderARNsHasBeenSet = true; m_samlProviderARNs = std::forward<SamlProviderARNsT>(value); }
148 template<typename SamlProviderARNsT = Aws::Vector<Aws::String>>
149 CreateIdentityPoolResult& WithSamlProviderARNs(SamlProviderARNsT&& value) { SetSamlProviderARNs(std::forward<SamlProviderARNsT>(value)); return *this;}
150 template<typename SamlProviderARNsT = Aws::String>
151 CreateIdentityPoolResult& AddSamlProviderARNs(SamlProviderARNsT&& value) { m_samlProviderARNsHasBeenSet = true; m_samlProviderARNs.emplace_back(std::forward<SamlProviderARNsT>(value)); return *this; }
153
155
160 inline const Aws::Map<Aws::String, Aws::String>& GetIdentityPoolTags() const { return m_identityPoolTags; }
161 template<typename IdentityPoolTagsT = Aws::Map<Aws::String, Aws::String>>
162 void SetIdentityPoolTags(IdentityPoolTagsT&& value) { m_identityPoolTagsHasBeenSet = true; m_identityPoolTags = std::forward<IdentityPoolTagsT>(value); }
163 template<typename IdentityPoolTagsT = Aws::Map<Aws::String, Aws::String>>
164 CreateIdentityPoolResult& WithIdentityPoolTags(IdentityPoolTagsT&& value) { SetIdentityPoolTags(std::forward<IdentityPoolTagsT>(value)); return *this;}
165 template<typename IdentityPoolTagsKeyT = Aws::String, typename IdentityPoolTagsValueT = Aws::String>
166 CreateIdentityPoolResult& AddIdentityPoolTags(IdentityPoolTagsKeyT&& key, IdentityPoolTagsValueT&& value) {
167 m_identityPoolTagsHasBeenSet = true; m_identityPoolTags.emplace(std::forward<IdentityPoolTagsKeyT>(key), std::forward<IdentityPoolTagsValueT>(value)); return *this;
168 }
170
172
173 inline const Aws::String& GetRequestId() const { return m_requestId; }
174 template<typename RequestIdT = Aws::String>
175 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
176 template<typename RequestIdT = Aws::String>
177 CreateIdentityPoolResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
179 private:
180
181 Aws::String m_identityPoolId;
182 bool m_identityPoolIdHasBeenSet = false;
183
184 Aws::String m_identityPoolName;
185 bool m_identityPoolNameHasBeenSet = false;
186
187 bool m_allowUnauthenticatedIdentities{false};
188 bool m_allowUnauthenticatedIdentitiesHasBeenSet = false;
189
190 bool m_allowClassicFlow{false};
191 bool m_allowClassicFlowHasBeenSet = false;
192
193 Aws::Map<Aws::String, Aws::String> m_supportedLoginProviders;
194 bool m_supportedLoginProvidersHasBeenSet = false;
195
196 Aws::String m_developerProviderName;
197 bool m_developerProviderNameHasBeenSet = false;
198
199 Aws::Vector<Aws::String> m_openIdConnectProviderARNs;
200 bool m_openIdConnectProviderARNsHasBeenSet = false;
201
202 Aws::Vector<CognitoIdentityProvider> m_cognitoIdentityProviders;
203 bool m_cognitoIdentityProvidersHasBeenSet = false;
204
205 Aws::Vector<Aws::String> m_samlProviderARNs;
206 bool m_samlProviderARNsHasBeenSet = false;
207
208 Aws::Map<Aws::String, Aws::String> m_identityPoolTags;
209 bool m_identityPoolTagsHasBeenSet = false;
210
211 Aws::String m_requestId;
212 bool m_requestIdHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace CognitoIdentity
217} // namespace Aws
CreateIdentityPoolResult & WithRequestId(RequestIdT &&value)
CreateIdentityPoolResult & WithIdentityPoolName(IdentityPoolNameT &&value)
CreateIdentityPoolResult & AddSamlProviderARNs(SamlProviderARNsT &&value)
CreateIdentityPoolResult & AddSupportedLoginProviders(SupportedLoginProvidersKeyT &&key, SupportedLoginProvidersValueT &&value)
CreateIdentityPoolResult & WithIdentityPoolId(IdentityPoolIdT &&value)
CreateIdentityPoolResult & WithDeveloperProviderName(DeveloperProviderNameT &&value)
CreateIdentityPoolResult & WithSupportedLoginProviders(SupportedLoginProvidersT &&value)
void SetSupportedLoginProviders(SupportedLoginProvidersT &&value)
CreateIdentityPoolResult & WithIdentityPoolTags(IdentityPoolTagsT &&value)
AWS_COGNITOIDENTITY_API CreateIdentityPoolResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< CognitoIdentityProvider > & GetCognitoIdentityProviders() const
CreateIdentityPoolResult & AddIdentityPoolTags(IdentityPoolTagsKeyT &&key, IdentityPoolTagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSupportedLoginProviders() const
void SetOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetIdentityPoolTags() const
void SetCognitoIdentityProviders(CognitoIdentityProvidersT &&value)
CreateIdentityPoolResult & AddOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT &&value)
CreateIdentityPoolResult & AddCognitoIdentityProviders(CognitoIdentityProvidersT &&value)
CreateIdentityPoolResult & WithOpenIdConnectProviderARNs(OpenIdConnectProviderARNsT &&value)
CreateIdentityPoolResult & WithCognitoIdentityProviders(CognitoIdentityProvidersT &&value)
CreateIdentityPoolResult & WithAllowClassicFlow(bool value)
const Aws::Vector< Aws::String > & GetOpenIdConnectProviderARNs() const
CreateIdentityPoolResult & WithSamlProviderARNs(SamlProviderARNsT &&value)
AWS_COGNITOIDENTITY_API CreateIdentityPoolResult()=default
CreateIdentityPoolResult & WithAllowUnauthenticatedIdentities(bool value)
AWS_COGNITOIDENTITY_API CreateIdentityPoolResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetSamlProviderARNs() const
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
Aws::Utils::Json::JsonValue JsonValue