/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CognitoIdentityProvider { namespace Model { /** *

Represents the request to delete user attributes.

See Also:

* AWS * API Reference

*/ class DeleteUserAttributesRequest : public CognitoIdentityProviderRequest { public: AWS_COGNITOIDENTITYPROVIDER_API DeleteUserAttributesRequest(); // 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 "DeleteUserAttributes"; } AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override; AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

An array of strings representing the user attribute names you want to * delete.

For custom attributes, you must prependattach the * custom: prefix to the front of the attribute name.

*/ inline const Aws::Vector& GetUserAttributeNames() const{ return m_userAttributeNames; } /** *

An array of strings representing the user attribute names you want to * delete.

For custom attributes, you must prependattach the * custom: prefix to the front of the attribute name.

*/ inline bool UserAttributeNamesHasBeenSet() const { return m_userAttributeNamesHasBeenSet; } /** *

An array of strings representing the user attribute names you want to * delete.

For custom attributes, you must prependattach the * custom: prefix to the front of the attribute name.

*/ inline void SetUserAttributeNames(const Aws::Vector& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames = value; } /** *

An array of strings representing the user attribute names you want to * delete.

For custom attributes, you must prependattach the * custom: prefix to the front of the attribute name.

*/ inline void SetUserAttributeNames(Aws::Vector&& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames = std::move(value); } /** *

An array of strings representing the user attribute names you want to * delete.

For custom attributes, you must prependattach the * custom: prefix to the front of the attribute name.

*/ inline DeleteUserAttributesRequest& WithUserAttributeNames(const Aws::Vector& value) { SetUserAttributeNames(value); return *this;} /** *

An array of strings representing the user attribute names you want to * delete.

For custom attributes, you must prependattach the * custom: prefix to the front of the attribute name.

*/ inline DeleteUserAttributesRequest& WithUserAttributeNames(Aws::Vector&& value) { SetUserAttributeNames(std::move(value)); return *this;} /** *

An array of strings representing the user attribute names you want to * delete.

For custom attributes, you must prependattach the * custom: prefix to the front of the attribute name.

*/ inline DeleteUserAttributesRequest& AddUserAttributeNames(const Aws::String& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames.push_back(value); return *this; } /** *

An array of strings representing the user attribute names you want to * delete.

For custom attributes, you must prependattach the * custom: prefix to the front of the attribute name.

*/ inline DeleteUserAttributesRequest& AddUserAttributeNames(Aws::String&& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames.push_back(std::move(value)); return *this; } /** *

An array of strings representing the user attribute names you want to * delete.

For custom attributes, you must prependattach the * custom: prefix to the front of the attribute name.

*/ inline DeleteUserAttributesRequest& AddUserAttributeNames(const char* value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames.push_back(value); return *this; } /** *

A valid access token that Amazon Cognito issued to the user whose attributes * you want to delete.

*/ inline const Aws::String& GetAccessToken() const{ return m_accessToken; } /** *

A valid access token that Amazon Cognito issued to the user whose attributes * you want to delete.

*/ inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; } /** *

A valid access token that Amazon Cognito issued to the user whose attributes * you want to delete.

*/ inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; } /** *

A valid access token that Amazon Cognito issued to the user whose attributes * you want to delete.

*/ inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); } /** *

A valid access token that Amazon Cognito issued to the user whose attributes * you want to delete.

*/ inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); } /** *

A valid access token that Amazon Cognito issued to the user whose attributes * you want to delete.

*/ inline DeleteUserAttributesRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;} /** *

A valid access token that Amazon Cognito issued to the user whose attributes * you want to delete.

*/ inline DeleteUserAttributesRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;} /** *

A valid access token that Amazon Cognito issued to the user whose attributes * you want to delete.

*/ inline DeleteUserAttributesRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;} private: Aws::Vector m_userAttributeNames; bool m_userAttributeNamesHasBeenSet = false; Aws::String m_accessToken; bool m_accessTokenHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws