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

An opaque token to access IAM Identity Center resources assigned to a * user.

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

An opaque token to access IAM Identity Center resources assigned to a * user.

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

An opaque token to access IAM Identity Center resources assigned to a * user.

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

An opaque token to access IAM Identity Center resources assigned to a * user.

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

An opaque token to access IAM Identity Center resources assigned to a * user.

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

An opaque token to access IAM Identity Center resources assigned to a * user.

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

An opaque token to access IAM Identity Center 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;} /** *

Currently, refreshToken is not yet implemented and is not * supported. For more information about the features and limitations of the * current IAM Identity Center OIDC implementation, see Considerations for Using * this Guide in the IAM * Identity Center OIDC API Reference.

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; } /** *

Currently, refreshToken is not yet implemented and is not * supported. For more information about the features and limitations of the * current IAM Identity Center OIDC implementation, see Considerations for Using * this Guide in the IAM * Identity Center OIDC API Reference.

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; } /** *

Currently, refreshToken is not yet implemented and is not * supported. For more information about the features and limitations of the * current IAM Identity Center OIDC implementation, see Considerations for Using * this Guide in the IAM * Identity Center OIDC API Reference.

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); } /** *

Currently, refreshToken is not yet implemented and is not * supported. For more information about the features and limitations of the * current IAM Identity Center OIDC implementation, see Considerations for Using * this Guide in the IAM * Identity Center OIDC API Reference.

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); } /** *

Currently, refreshToken is not yet implemented and is not * supported. For more information about the features and limitations of the * current IAM Identity Center OIDC implementation, see Considerations for Using * this Guide in the IAM * Identity Center OIDC API Reference.

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;} /** *

Currently, refreshToken is not yet implemented and is not * supported. For more information about the features and limitations of the * current IAM Identity Center OIDC implementation, see Considerations for Using * this Guide in the IAM * Identity Center OIDC API Reference.

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;} /** *

Currently, refreshToken is not yet implemented and is not * supported. For more information about the features and limitations of the * current IAM Identity Center OIDC implementation, see Considerations for Using * this Guide in the IAM * Identity Center OIDC API Reference.

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;} /** *

Currently, idToken is not yet implemented and is not supported. * For more information about the features and limitations of the current IAM * Identity Center OIDC implementation, see Considerations for Using this * Guide in the IAM * Identity Center OIDC API Reference.

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

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

Currently, idToken is not yet implemented and is not supported. * For more information about the features and limitations of the current IAM * Identity Center OIDC implementation, see Considerations for Using this * Guide in the IAM * Identity Center OIDC API Reference.

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

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

Currently, idToken is not yet implemented and is not supported. * For more information about the features and limitations of the current IAM * Identity Center OIDC implementation, see Considerations for Using this * Guide in the IAM * Identity Center OIDC API Reference.

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

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

Currently, idToken is not yet implemented and is not supported. * For more information about the features and limitations of the current IAM * Identity Center OIDC implementation, see Considerations for Using this * Guide in the IAM * Identity Center OIDC API Reference.

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

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

Currently, idToken is not yet implemented and is not supported. * For more information about the features and limitations of the current IAM * Identity Center OIDC implementation, see Considerations for Using this * Guide in the IAM * Identity Center OIDC API Reference.

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

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

Currently, idToken is not yet implemented and is not supported. * For more information about the features and limitations of the current IAM * Identity Center OIDC implementation, see Considerations for Using this * Guide in the IAM * Identity Center OIDC API Reference.

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;} /** *

Currently, idToken is not yet implemented and is not supported. * For more information about the features and limitations of the current IAM * Identity Center OIDC implementation, see Considerations for Using this * Guide in the IAM * Identity Center OIDC API Reference.

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

*/ inline CreateTokenResult& WithIdToken(const char* value) { SetIdToken(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 CreateTokenResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateTokenResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateTokenResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_accessToken; Aws::String m_tokenType; int m_expiresIn; Aws::String m_refreshToken; Aws::String m_idToken; Aws::String m_requestId; }; } // namespace Model } // namespace SSOOIDC } // namespace Aws