/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about the role credentials that are assigned to the
* user.See Also:
AWS
* API Reference
The identifier used for the temporary security credentials. For more * information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; } /** *The identifier used for the temporary security credentials. For more * information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; } /** *The identifier used for the temporary security credentials. For more * information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; } /** *The identifier used for the temporary security credentials. For more * information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); } /** *The identifier used for the temporary security credentials. For more * information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); } /** *The identifier used for the temporary security credentials. For more * information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline RoleCredentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;} /** *The identifier used for the temporary security credentials. For more * information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline RoleCredentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;} /** *The identifier used for the temporary security credentials. For more * information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline RoleCredentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;} /** *The key that is used to sign the request. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; } /** *The key that is used to sign the request. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; } /** *The key that is used to sign the request. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; } /** *The key that is used to sign the request. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); } /** *The key that is used to sign the request. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); } /** *The key that is used to sign the request. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline RoleCredentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;} /** *The key that is used to sign the request. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline RoleCredentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;} /** *The key that is used to sign the request. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline RoleCredentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;} /** *The token used for temporary credentials. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline const Aws::String& GetSessionToken() const{ return m_sessionToken; } /** *The token used for temporary credentials. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; } /** *The token used for temporary credentials. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; } /** *The token used for temporary credentials. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); } /** *The token used for temporary credentials. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); } /** *The token used for temporary credentials. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline RoleCredentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;} /** *The token used for temporary credentials. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline RoleCredentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;} /** *The token used for temporary credentials. For more information, see Using * Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.
*/ inline RoleCredentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;} /** *The date on which temporary security credentials expire.
*/ inline long long GetExpiration() const{ return m_expiration; } /** *The date on which temporary security credentials expire.
*/ inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; } /** *The date on which temporary security credentials expire.
*/ inline void SetExpiration(long long value) { m_expirationHasBeenSet = true; m_expiration = value; } /** *The date on which temporary security credentials expire.
*/ inline RoleCredentials& WithExpiration(long long value) { SetExpiration(value); return *this;} private: Aws::String m_accessKeyId; bool m_accessKeyIdHasBeenSet = false; Aws::String m_secretAccessKey; bool m_secretAccessKeyHasBeenSet = false; Aws::String m_sessionToken; bool m_sessionTokenHasBeenSet = false; long long m_expiration; bool m_expirationHasBeenSet = false; }; } // namespace Model } // namespace SSO } // namespace Aws