/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace AmplifyUIBuilder { namespace Model { class ExchangeCodeForTokenResult { public: AWS_AMPLIFYUIBUILDER_API ExchangeCodeForTokenResult(); AWS_AMPLIFYUIBUILDER_API ExchangeCodeForTokenResult(const Aws::AmazonWebServiceResult& result); AWS_AMPLIFYUIBUILDER_API ExchangeCodeForTokenResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The access token.

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

The access token.

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

The access token.

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

The access token.

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

The access token.

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

The access token.

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

The access token.

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

The date and time when the new access token expires.

*/ inline int GetExpiresIn() const{ return m_expiresIn; } /** *

The date and time when the new access token expires.

*/ inline void SetExpiresIn(int value) { m_expiresIn = value; } /** *

The date and time when the new access token expires.

*/ inline ExchangeCodeForTokenResult& WithExpiresIn(int value) { SetExpiresIn(value); return *this;} /** *

The token to use to refresh a previously issued access token that might have * expired.

*/ inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; } /** *

The token to use to refresh a previously issued access token that might have * expired.

*/ inline void SetRefreshToken(const Aws::String& value) { m_refreshToken = value; } /** *

The token to use to refresh a previously issued access token that might have * expired.

*/ inline void SetRefreshToken(Aws::String&& value) { m_refreshToken = std::move(value); } /** *

The token to use to refresh a previously issued access token that might have * expired.

*/ inline void SetRefreshToken(const char* value) { m_refreshToken.assign(value); } /** *

The token to use to refresh a previously issued access token that might have * expired.

*/ inline ExchangeCodeForTokenResult& WithRefreshToken(const Aws::String& value) { SetRefreshToken(value); return *this;} /** *

The token to use to refresh a previously issued access token that might have * expired.

*/ inline ExchangeCodeForTokenResult& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;} /** *

The token to use to refresh a previously issued access token that might have * expired.

*/ inline ExchangeCodeForTokenResult& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ExchangeCodeForTokenResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ExchangeCodeForTokenResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ExchangeCodeForTokenResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_accessToken; int m_expiresIn; Aws::String m_refreshToken; Aws::String m_requestId; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws