/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a refresh token.See Also:
AWS
* API Reference
The token to use to refresh a previously issued access token that might have * expired.
*/ inline const Aws::String& GetToken() const{ return m_token; } /** *The token to use to refresh a previously issued access token that might have * expired.
*/ inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; } /** *The token to use to refresh a previously issued access token that might have * expired.
*/ inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; } /** *The token to use to refresh a previously issued access token that might have * expired.
*/ inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); } /** *The token to use to refresh a previously issued access token that might have * expired.
*/ inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); } /** *The token to use to refresh a previously issued access token that might have * expired.
*/ inline RefreshTokenRequestBody& WithToken(const Aws::String& value) { SetToken(value); return *this;} /** *The token to use to refresh a previously issued access token that might have * expired.
*/ inline RefreshTokenRequestBody& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;} /** *The token to use to refresh a previously issued access token that might have * expired.
*/ inline RefreshTokenRequestBody& WithToken(const char* value) { SetToken(value); return *this;} /** *The ID of the client to request the token from.
*/ inline const Aws::String& GetClientId() const{ return m_clientId; } /** *The ID of the client to request the token from.
*/ inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; } /** *The ID of the client to request the token from.
*/ inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; } /** *The ID of the client to request the token from.
*/ inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); } /** *The ID of the client to request the token from.
*/ inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); } /** *The ID of the client to request the token from.
*/ inline RefreshTokenRequestBody& WithClientId(const Aws::String& value) { SetClientId(value); return *this;} /** *The ID of the client to request the token from.
*/ inline RefreshTokenRequestBody& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;} /** *The ID of the client to request the token from.
*/ inline RefreshTokenRequestBody& WithClientId(const char* value) { SetClientId(value); return *this;} private: Aws::String m_token; bool m_tokenHasBeenSet = false; Aws::String m_clientId; bool m_clientIdHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws