/** * 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 forget the device.

See Also:

AWS * API Reference

*/ class ForgetDeviceRequest : public CognitoIdentityProviderRequest { public: AWS_COGNITOIDENTITYPROVIDER_API ForgetDeviceRequest(); // 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 "ForgetDevice"; } 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 registered * device you want to forget.

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

A valid access token that Amazon Cognito issued to the user whose registered * device you want to forget.

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

A valid access token that Amazon Cognito issued to the user whose registered * device you want to forget.

*/ 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 registered * device you want to forget.

*/ 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 registered * device you want to forget.

*/ 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 registered * device you want to forget.

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

A valid access token that Amazon Cognito issued to the user whose registered * device you want to forget.

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

A valid access token that Amazon Cognito issued to the user whose registered * device you want to forget.

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

The device key.

*/ inline const Aws::String& GetDeviceKey() const{ return m_deviceKey; } /** *

The device key.

*/ inline bool DeviceKeyHasBeenSet() const { return m_deviceKeyHasBeenSet; } /** *

The device key.

*/ inline void SetDeviceKey(const Aws::String& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; } /** *

The device key.

*/ inline void SetDeviceKey(Aws::String&& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = std::move(value); } /** *

The device key.

*/ inline void SetDeviceKey(const char* value) { m_deviceKeyHasBeenSet = true; m_deviceKey.assign(value); } /** *

The device key.

*/ inline ForgetDeviceRequest& WithDeviceKey(const Aws::String& value) { SetDeviceKey(value); return *this;} /** *

The device key.

*/ inline ForgetDeviceRequest& WithDeviceKey(Aws::String&& value) { SetDeviceKey(std::move(value)); return *this;} /** *

The device key.

*/ inline ForgetDeviceRequest& WithDeviceKey(const char* value) { SetDeviceKey(value); return *this;} private: Aws::String m_accessToken; bool m_accessTokenHasBeenSet = false; Aws::String m_deviceKey; bool m_deviceKeyHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws