/** * 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 SSOOIDC { namespace Model { class AWS_SSOOIDC_API CreateTokenResult { public: CreateTokenResult(); CreateTokenResult(const Aws::AmazonWebServiceResult& result); CreateTokenResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An opaque token to access AWS SSO resources assigned to a user.

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

An opaque token to access AWS SSO resources assigned to a user.

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

An opaque token to access AWS SSO resources assigned to a user.

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

An opaque token to access AWS SSO resources assigned to a user.

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

An opaque token to access AWS SSO resources assigned to a user.

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

An opaque token to access AWS SSO resources assigned to a user.

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

An opaque token to access AWS SSO resources assigned to a user.

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

Used to notify the client that the returned token is an access token. The * supported type is BearerToken.

*/ inline const Aws::String& GetTokenType() const{ return m_tokenType; } /** *

Used to notify the client that the returned token is an access token. The * supported type is BearerToken.

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

Used to notify the client that the returned token is an access token. The * supported type is BearerToken.

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

Used to notify the client that the returned token is an access token. The * supported type is BearerToken.

*/ inline void SetTokenType(const char* value) { m_tokenType.assign(value); } /** *

Used to notify the client that the returned token is an access token. The * supported type is BearerToken.

*/ inline CreateTokenResult& WithTokenType(const Aws::String& value) { SetTokenType(value); return *this;} /** *

Used to notify the client that the returned token is an access token. The * supported type is BearerToken.

*/ inline CreateTokenResult& WithTokenType(Aws::String&& value) { SetTokenType(std::move(value)); return *this;} /** *

Used to notify the client that the returned token is an access token. The * supported type is BearerToken.

*/ inline CreateTokenResult& WithTokenType(const char* value) { SetTokenType(value); return *this;} /** *

Indicates the time in seconds when an access token will expire.

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

Indicates the time in seconds when an access token will expire.

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

Indicates the time in seconds when an access token will expire.

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

A token that, if present, can be used to refresh a previously issued access * token that might have expired.

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

A token that, if present, can be used to refresh a previously issued access * token that might have expired.

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

A token that, if present, can be used to refresh a previously issued access * token that might have expired.

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

A token that, if present, can be used to refresh a previously issued access * token that might have expired.

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

A token that, if present, can be used to refresh a previously issued access * token that might have expired.

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

A token that, if present, can be used to refresh a previously issued access * token that might have expired.

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

A token that, if present, can be used to refresh a previously issued access * token that might have expired.

*/ inline CreateTokenResult& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;} /** *

The identifier of the user that associated with the access token, if * present.

*/ inline const Aws::String& GetIdToken() const{ return m_idToken; } /** *

The identifier of the user that associated with the access token, if * present.

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

The identifier of the user that associated with the access token, if * present.

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

The identifier of the user that associated with the access token, if * present.

*/ inline void SetIdToken(const char* value) { m_idToken.assign(value); } /** *

The identifier of the user that associated with the access token, if * present.

*/ inline CreateTokenResult& WithIdToken(const Aws::String& value) { SetIdToken(value); return *this;} /** *

The identifier of the user that associated with the access token, if * present.

*/ inline CreateTokenResult& WithIdToken(Aws::String&& value) { SetIdToken(std::move(value)); return *this;} /** *

The identifier of the user that associated with the access token, if * present.

*/ inline CreateTokenResult& WithIdToken(const char* value) { SetIdToken(value); return *this;} private: Aws::String m_accessToken; Aws::String m_tokenType; int m_expiresIn; Aws::String m_refreshToken; Aws::String m_idToken; }; } // namespace Model } // namespace SSOOIDC } // namespace Aws