/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains credentials to use for federation.See Also:
AWS
* API Reference
An access token generated for a federated user to access Amazon Connect.
*/ inline const Aws::String& GetAccessToken() const{ return m_accessToken; } /** *An access token generated for a federated user to access Amazon Connect.
*/ inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; } /** *An access token generated for a federated user to access Amazon Connect.
*/ inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; } /** *An access token generated for a federated user to access Amazon Connect.
*/ inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); } /** *An access token generated for a federated user to access Amazon Connect.
*/ inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); } /** *An access token generated for a federated user to access Amazon Connect.
*/ inline Credentials& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;} /** *An access token generated for a federated user to access Amazon Connect.
*/ inline Credentials& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;} /** *An access token generated for a federated user to access Amazon Connect.
*/ inline Credentials& WithAccessToken(const char* value) { SetAccessToken(value); return *this;} /** *A token generated with an expiration time for the session a user is logged in * to Amazon Connect.
*/ inline const Aws::Utils::DateTime& GetAccessTokenExpiration() const{ return m_accessTokenExpiration; } /** *A token generated with an expiration time for the session a user is logged in * to Amazon Connect.
*/ inline bool AccessTokenExpirationHasBeenSet() const { return m_accessTokenExpirationHasBeenSet; } /** *A token generated with an expiration time for the session a user is logged in * to Amazon Connect.
*/ inline void SetAccessTokenExpiration(const Aws::Utils::DateTime& value) { m_accessTokenExpirationHasBeenSet = true; m_accessTokenExpiration = value; } /** *A token generated with an expiration time for the session a user is logged in * to Amazon Connect.
*/ inline void SetAccessTokenExpiration(Aws::Utils::DateTime&& value) { m_accessTokenExpirationHasBeenSet = true; m_accessTokenExpiration = std::move(value); } /** *A token generated with an expiration time for the session a user is logged in * to Amazon Connect.
*/ inline Credentials& WithAccessTokenExpiration(const Aws::Utils::DateTime& value) { SetAccessTokenExpiration(value); return *this;} /** *A token generated with an expiration time for the session a user is logged in * to Amazon Connect.
*/ inline Credentials& WithAccessTokenExpiration(Aws::Utils::DateTime&& value) { SetAccessTokenExpiration(std::move(value)); return *this;} /** *Renews a token generated for a user to access the Amazon Connect * instance.
*/ inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; } /** *Renews a token generated for a user to access the Amazon Connect * instance.
*/ inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; } /** *Renews a token generated for a user to access the Amazon Connect * instance.
*/ inline void SetRefreshToken(const Aws::String& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = value; } /** *Renews a token generated for a user to access the Amazon Connect * instance.
*/ inline void SetRefreshToken(Aws::String&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::move(value); } /** *Renews a token generated for a user to access the Amazon Connect * instance.
*/ inline void SetRefreshToken(const char* value) { m_refreshTokenHasBeenSet = true; m_refreshToken.assign(value); } /** *Renews a token generated for a user to access the Amazon Connect * instance.
*/ inline Credentials& WithRefreshToken(const Aws::String& value) { SetRefreshToken(value); return *this;} /** *Renews a token generated for a user to access the Amazon Connect * instance.
*/ inline Credentials& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;} /** *Renews a token generated for a user to access the Amazon Connect * instance.
*/ inline Credentials& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;} /** *Renews the expiration timer for a generated token.
*/ inline const Aws::Utils::DateTime& GetRefreshTokenExpiration() const{ return m_refreshTokenExpiration; } /** *Renews the expiration timer for a generated token.
*/ inline bool RefreshTokenExpirationHasBeenSet() const { return m_refreshTokenExpirationHasBeenSet; } /** *Renews the expiration timer for a generated token.
*/ inline void SetRefreshTokenExpiration(const Aws::Utils::DateTime& value) { m_refreshTokenExpirationHasBeenSet = true; m_refreshTokenExpiration = value; } /** *Renews the expiration timer for a generated token.
*/ inline void SetRefreshTokenExpiration(Aws::Utils::DateTime&& value) { m_refreshTokenExpirationHasBeenSet = true; m_refreshTokenExpiration = std::move(value); } /** *Renews the expiration timer for a generated token.
*/ inline Credentials& WithRefreshTokenExpiration(const Aws::Utils::DateTime& value) { SetRefreshTokenExpiration(value); return *this;} /** *Renews the expiration timer for a generated token.
*/ inline Credentials& WithRefreshTokenExpiration(Aws::Utils::DateTime&& value) { SetRefreshTokenExpiration(std::move(value)); return *this;} private: Aws::String m_accessToken; bool m_accessTokenHasBeenSet = false; Aws::Utils::DateTime m_accessTokenExpiration; bool m_accessTokenExpirationHasBeenSet = false; Aws::String m_refreshToken; bool m_refreshTokenHasBeenSet = false; Aws::Utils::DateTime m_refreshTokenExpiration; bool m_refreshTokenExpirationHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws