/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CognitoIdentityProvider { namespace Model { /** */ class UpdateIdentityProviderRequest : public CognitoIdentityProviderRequest { public: AWS_COGNITOIDENTITYPROVIDER_API UpdateIdentityProviderRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateIdentityProvider"; } AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override; AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The user pool ID.

*/ inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; } /** *

The user pool ID.

*/ inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; } /** *

The user pool ID.

*/ inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; } /** *

The user pool ID.

*/ inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); } /** *

The user pool ID.

*/ inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); } /** *

The user pool ID.

*/ inline UpdateIdentityProviderRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;} /** *

The user pool ID.

*/ inline UpdateIdentityProviderRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;} /** *

The user pool ID.

*/ inline UpdateIdentityProviderRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;} /** *

The IdP name.

*/ inline const Aws::String& GetProviderName() const{ return m_providerName; } /** *

The IdP name.

*/ inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; } /** *

The IdP name.

*/ inline void SetProviderName(const Aws::String& value) { m_providerNameHasBeenSet = true; m_providerName = value; } /** *

The IdP name.

*/ inline void SetProviderName(Aws::String&& value) { m_providerNameHasBeenSet = true; m_providerName = std::move(value); } /** *

The IdP name.

*/ inline void SetProviderName(const char* value) { m_providerNameHasBeenSet = true; m_providerName.assign(value); } /** *

The IdP name.

*/ inline UpdateIdentityProviderRequest& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;} /** *

The IdP name.

*/ inline UpdateIdentityProviderRequest& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;} /** *

The IdP name.

*/ inline UpdateIdentityProviderRequest& WithProviderName(const char* value) { SetProviderName(value); return *this;} /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline const Aws::Map& GetProviderDetails() const{ return m_providerDetails; } /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline bool ProviderDetailsHasBeenSet() const { return m_providerDetailsHasBeenSet; } /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline void SetProviderDetails(const Aws::Map& value) { m_providerDetailsHasBeenSet = true; m_providerDetails = value; } /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline void SetProviderDetails(Aws::Map&& value) { m_providerDetailsHasBeenSet = true; m_providerDetails = std::move(value); } /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline UpdateIdentityProviderRequest& WithProviderDetails(const Aws::Map& value) { SetProviderDetails(value); return *this;} /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline UpdateIdentityProviderRequest& WithProviderDetails(Aws::Map&& value) { SetProviderDetails(std::move(value)); return *this;} /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline UpdateIdentityProviderRequest& AddProviderDetails(const Aws::String& key, const Aws::String& value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(key, value); return *this; } /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline UpdateIdentityProviderRequest& AddProviderDetails(Aws::String&& key, const Aws::String& value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(std::move(key), value); return *this; } /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline UpdateIdentityProviderRequest& AddProviderDetails(const Aws::String& key, Aws::String&& value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(key, std::move(value)); return *this; } /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline UpdateIdentityProviderRequest& AddProviderDetails(Aws::String&& key, Aws::String&& value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(std::move(key), std::move(value)); return *this; } /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline UpdateIdentityProviderRequest& AddProviderDetails(const char* key, Aws::String&& value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(key, std::move(value)); return *this; } /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline UpdateIdentityProviderRequest& AddProviderDetails(Aws::String&& key, const char* value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(std::move(key), value); return *this; } /** *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ inline UpdateIdentityProviderRequest& AddProviderDetails(const char* key, const char* value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(key, value); return *this; } /** *

The IdP attribute mapping to be changed.

*/ inline const Aws::Map& GetAttributeMapping() const{ return m_attributeMapping; } /** *

The IdP attribute mapping to be changed.

*/ inline bool AttributeMappingHasBeenSet() const { return m_attributeMappingHasBeenSet; } /** *

The IdP attribute mapping to be changed.

*/ inline void SetAttributeMapping(const Aws::Map& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping = value; } /** *

The IdP attribute mapping to be changed.

*/ inline void SetAttributeMapping(Aws::Map&& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping = std::move(value); } /** *

The IdP attribute mapping to be changed.

*/ inline UpdateIdentityProviderRequest& WithAttributeMapping(const Aws::Map& value) { SetAttributeMapping(value); return *this;} /** *

The IdP attribute mapping to be changed.

*/ inline UpdateIdentityProviderRequest& WithAttributeMapping(Aws::Map&& value) { SetAttributeMapping(std::move(value)); return *this;} /** *

The IdP attribute mapping to be changed.

*/ inline UpdateIdentityProviderRequest& AddAttributeMapping(const Aws::String& key, const Aws::String& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(key, value); return *this; } /** *

The IdP attribute mapping to be changed.

*/ inline UpdateIdentityProviderRequest& AddAttributeMapping(Aws::String&& key, const Aws::String& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(std::move(key), value); return *this; } /** *

The IdP attribute mapping to be changed.

*/ inline UpdateIdentityProviderRequest& AddAttributeMapping(const Aws::String& key, Aws::String&& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(key, std::move(value)); return *this; } /** *

The IdP attribute mapping to be changed.

*/ inline UpdateIdentityProviderRequest& AddAttributeMapping(Aws::String&& key, Aws::String&& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(std::move(key), std::move(value)); return *this; } /** *

The IdP attribute mapping to be changed.

*/ inline UpdateIdentityProviderRequest& AddAttributeMapping(const char* key, Aws::String&& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(key, std::move(value)); return *this; } /** *

The IdP attribute mapping to be changed.

*/ inline UpdateIdentityProviderRequest& AddAttributeMapping(Aws::String&& key, const char* value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(std::move(key), value); return *this; } /** *

The IdP attribute mapping to be changed.

*/ inline UpdateIdentityProviderRequest& AddAttributeMapping(const char* key, const char* value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(key, value); return *this; } /** *

A list of IdP identifiers.

*/ inline const Aws::Vector& GetIdpIdentifiers() const{ return m_idpIdentifiers; } /** *

A list of IdP identifiers.

*/ inline bool IdpIdentifiersHasBeenSet() const { return m_idpIdentifiersHasBeenSet; } /** *

A list of IdP identifiers.

*/ inline void SetIdpIdentifiers(const Aws::Vector& value) { m_idpIdentifiersHasBeenSet = true; m_idpIdentifiers = value; } /** *

A list of IdP identifiers.

*/ inline void SetIdpIdentifiers(Aws::Vector&& value) { m_idpIdentifiersHasBeenSet = true; m_idpIdentifiers = std::move(value); } /** *

A list of IdP identifiers.

*/ inline UpdateIdentityProviderRequest& WithIdpIdentifiers(const Aws::Vector& value) { SetIdpIdentifiers(value); return *this;} /** *

A list of IdP identifiers.

*/ inline UpdateIdentityProviderRequest& WithIdpIdentifiers(Aws::Vector&& value) { SetIdpIdentifiers(std::move(value)); return *this;} /** *

A list of IdP identifiers.

*/ inline UpdateIdentityProviderRequest& AddIdpIdentifiers(const Aws::String& value) { m_idpIdentifiersHasBeenSet = true; m_idpIdentifiers.push_back(value); return *this; } /** *

A list of IdP identifiers.

*/ inline UpdateIdentityProviderRequest& AddIdpIdentifiers(Aws::String&& value) { m_idpIdentifiersHasBeenSet = true; m_idpIdentifiers.push_back(std::move(value)); return *this; } /** *

A list of IdP identifiers.

*/ inline UpdateIdentityProviderRequest& AddIdpIdentifiers(const char* value) { m_idpIdentifiersHasBeenSet = true; m_idpIdentifiers.push_back(value); return *this; } private: Aws::String m_userPoolId; bool m_userPoolIdHasBeenSet = false; Aws::String m_providerName; bool m_providerNameHasBeenSet = false; Aws::Map m_providerDetails; bool m_providerDetailsHasBeenSet = false; Aws::Map m_attributeMapping; bool m_attributeMappingHasBeenSet = false; Aws::Vector m_idpIdentifiers; bool m_idpIdentifiersHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws