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

Represents the request to verify user attributes.

See Also:

* AWS * API Reference

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

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

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

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

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

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

*/ 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 user * attributes you want to verify.

*/ 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 user * attributes you want to verify.

*/ 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 user * attributes you want to verify.

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

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

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

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

*/ inline VerifyUserAttributeRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;} /** *

The attribute name in the request to verify user attributes.

*/ inline const Aws::String& GetAttributeName() const{ return m_attributeName; } /** *

The attribute name in the request to verify user attributes.

*/ inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } /** *

The attribute name in the request to verify user attributes.

*/ inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } /** *

The attribute name in the request to verify user attributes.

*/ inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } /** *

The attribute name in the request to verify user attributes.

*/ inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } /** *

The attribute name in the request to verify user attributes.

*/ inline VerifyUserAttributeRequest& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} /** *

The attribute name in the request to verify user attributes.

*/ inline VerifyUserAttributeRequest& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} /** *

The attribute name in the request to verify user attributes.

*/ inline VerifyUserAttributeRequest& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} /** *

The verification code in the request to verify user attributes.

*/ inline const Aws::String& GetCode() const{ return m_code; } /** *

The verification code in the request to verify user attributes.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The verification code in the request to verify user attributes.

*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The verification code in the request to verify user attributes.

*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The verification code in the request to verify user attributes.

*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *

The verification code in the request to verify user attributes.

*/ inline VerifyUserAttributeRequest& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *

The verification code in the request to verify user attributes.

*/ inline VerifyUserAttributeRequest& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *

The verification code in the request to verify user attributes.

*/ inline VerifyUserAttributeRequest& WithCode(const char* value) { SetCode(value); return *this;} private: Aws::String m_accessToken; bool m_accessTokenHasBeenSet = false; Aws::String m_attributeName; bool m_attributeNameHasBeenSet = false; Aws::String m_code; bool m_codeHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws