AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
CreateIdentityProviderRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/cognito-idp/model/IdentityProviderTypeType.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 CognitoIdentityProvider {
18namespace Model {
19
23 public:
24 AWS_COGNITOIDENTITYPROVIDER_API CreateIdentityProviderRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateIdentityProvider"; }
31
32 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
33
34 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
41 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
42 template <typename UserPoolIdT = Aws::String>
43 void SetUserPoolId(UserPoolIdT&& value) {
44 m_userPoolIdHasBeenSet = true;
45 m_userPoolId = std::forward<UserPoolIdT>(value);
46 }
47 template <typename UserPoolIdT = Aws::String>
49 SetUserPoolId(std::forward<UserPoolIdT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::String& GetProviderName() const { return m_providerName; }
63 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
64 template <typename ProviderNameT = Aws::String>
65 void SetProviderName(ProviderNameT&& value) {
66 m_providerNameHasBeenSet = true;
67 m_providerName = std::forward<ProviderNameT>(value);
68 }
69 template <typename ProviderNameT = Aws::String>
71 SetProviderName(std::forward<ProviderNameT>(value));
72 return *this;
73 }
75
77
81 inline IdentityProviderTypeType GetProviderType() const { return m_providerType; }
82 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
84 m_providerTypeHasBeenSet = true;
85 m_providerType = value;
86 }
88 SetProviderType(value);
89 return *this;
90 }
92
94
177 inline const Aws::Map<Aws::String, Aws::String>& GetProviderDetails() const { return m_providerDetails; }
178 inline bool ProviderDetailsHasBeenSet() const { return m_providerDetailsHasBeenSet; }
179 template <typename ProviderDetailsT = Aws::Map<Aws::String, Aws::String>>
180 void SetProviderDetails(ProviderDetailsT&& value) {
181 m_providerDetailsHasBeenSet = true;
182 m_providerDetails = std::forward<ProviderDetailsT>(value);
183 }
184 template <typename ProviderDetailsT = Aws::Map<Aws::String, Aws::String>>
186 SetProviderDetails(std::forward<ProviderDetailsT>(value));
187 return *this;
188 }
189 template <typename ProviderDetailsKeyT = Aws::String, typename ProviderDetailsValueT = Aws::String>
190 CreateIdentityProviderRequest& AddProviderDetails(ProviderDetailsKeyT&& key, ProviderDetailsValueT&& value) {
191 m_providerDetailsHasBeenSet = true;
192 m_providerDetails.emplace(std::forward<ProviderDetailsKeyT>(key), std::forward<ProviderDetailsValueT>(value));
193 return *this;
194 }
196
198
203 inline const Aws::Map<Aws::String, Aws::String>& GetAttributeMapping() const { return m_attributeMapping; }
204 inline bool AttributeMappingHasBeenSet() const { return m_attributeMappingHasBeenSet; }
205 template <typename AttributeMappingT = Aws::Map<Aws::String, Aws::String>>
206 void SetAttributeMapping(AttributeMappingT&& value) {
207 m_attributeMappingHasBeenSet = true;
208 m_attributeMapping = std::forward<AttributeMappingT>(value);
209 }
210 template <typename AttributeMappingT = Aws::Map<Aws::String, Aws::String>>
212 SetAttributeMapping(std::forward<AttributeMappingT>(value));
213 return *this;
214 }
215 template <typename AttributeMappingKeyT = Aws::String, typename AttributeMappingValueT = Aws::String>
216 CreateIdentityProviderRequest& AddAttributeMapping(AttributeMappingKeyT&& key, AttributeMappingValueT&& value) {
217 m_attributeMappingHasBeenSet = true;
218 m_attributeMapping.emplace(std::forward<AttributeMappingKeyT>(key), std::forward<AttributeMappingValueT>(value));
219 return *this;
220 }
222
224
234 inline const Aws::Vector<Aws::String>& GetIdpIdentifiers() const { return m_idpIdentifiers; }
235 inline bool IdpIdentifiersHasBeenSet() const { return m_idpIdentifiersHasBeenSet; }
236 template <typename IdpIdentifiersT = Aws::Vector<Aws::String>>
237 void SetIdpIdentifiers(IdpIdentifiersT&& value) {
238 m_idpIdentifiersHasBeenSet = true;
239 m_idpIdentifiers = std::forward<IdpIdentifiersT>(value);
240 }
241 template <typename IdpIdentifiersT = Aws::Vector<Aws::String>>
243 SetIdpIdentifiers(std::forward<IdpIdentifiersT>(value));
244 return *this;
245 }
246 template <typename IdpIdentifiersT = Aws::String>
248 m_idpIdentifiersHasBeenSet = true;
249 m_idpIdentifiers.emplace_back(std::forward<IdpIdentifiersT>(value));
250 return *this;
251 }
253 private:
254 Aws::String m_userPoolId;
255
256 Aws::String m_providerName;
257
259
260 Aws::Map<Aws::String, Aws::String> m_providerDetails;
261
262 Aws::Map<Aws::String, Aws::String> m_attributeMapping;
263
264 Aws::Vector<Aws::String> m_idpIdentifiers;
265 bool m_userPoolIdHasBeenSet = false;
266 bool m_providerNameHasBeenSet = false;
267 bool m_providerTypeHasBeenSet = false;
268 bool m_providerDetailsHasBeenSet = false;
269 bool m_attributeMappingHasBeenSet = false;
270 bool m_idpIdentifiersHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace CognitoIdentityProvider
275} // namespace Aws
CreateIdentityProviderRequest & WithAttributeMapping(AttributeMappingT &&value)
CreateIdentityProviderRequest & AddProviderDetails(ProviderDetailsKeyT &&key, ProviderDetailsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributeMapping() const
CreateIdentityProviderRequest & WithProviderDetails(ProviderDetailsT &&value)
CreateIdentityProviderRequest & WithProviderName(ProviderNameT &&value)
CreateIdentityProviderRequest & WithUserPoolId(UserPoolIdT &&value)
CreateIdentityProviderRequest & WithIdpIdentifiers(IdpIdentifiersT &&value)
CreateIdentityProviderRequest & WithProviderType(IdentityProviderTypeType value)
const Aws::Map< Aws::String, Aws::String > & GetProviderDetails() const
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
CreateIdentityProviderRequest & AddAttributeMapping(AttributeMappingKeyT &&key, AttributeMappingValueT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COGNITOIDENTITYPROVIDER_API CreateIdentityProviderRequest()=default
CreateIdentityProviderRequest & AddIdpIdentifiers(IdpIdentifiersT &&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