/**
* 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; }
inline bool UserAttributeNamesHasBeenSet() const { return m_userAttributeNamesHasBeenSet; }
inline void SetUserAttributeNames(const Aws::Vector& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames = value; }
inline void SetUserAttributeNames(Aws::Vector&& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames = std::move(value); }
inline DeleteUserAttributesRequest& WithUserAttributeNames(const Aws::Vector& value) { SetUserAttributeNames(value); return *this;}
inline DeleteUserAttributesRequest& WithUserAttributeNames(Aws::Vector&& value) { SetUserAttributeNames(std::move(value)); return *this;}
inline DeleteUserAttributesRequest& AddUserAttributeNames(const Aws::String& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames.push_back(value); return *this; }
inline DeleteUserAttributesRequest& AddUserAttributeNames(Aws::String&& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames.push_back(std::move(value)); return *this; }
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; }
inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
inline DeleteUserAttributesRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
inline DeleteUserAttributesRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
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