/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Amazon Web Services credentials for API authentication.See
* Also:
AWS API
* Reference
The access key ID that identifies the temporary security credentials.
*/ inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; } /** *The access key ID that identifies the temporary security credentials.
*/ inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; } /** *The access key ID that identifies the temporary security credentials.
*/ inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; } /** *The access key ID that identifies the temporary security credentials.
*/ inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); } /** *The access key ID that identifies the temporary security credentials.
*/ inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); } /** *The access key ID that identifies the temporary security credentials.
*/ inline Credentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;} /** *The access key ID that identifies the temporary security credentials.
*/ inline Credentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;} /** *The access key ID that identifies the temporary security credentials.
*/ inline Credentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;} /** *The secret access key that can be used to sign requests.
*/ inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; } /** *The secret access key that can be used to sign requests.
*/ inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; } /** *The secret access key that can be used to sign requests.
*/ inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; } /** *The secret access key that can be used to sign requests.
*/ inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); } /** *The secret access key that can be used to sign requests.
*/ inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); } /** *The secret access key that can be used to sign requests.
*/ inline Credentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;} /** *The secret access key that can be used to sign requests.
*/ inline Credentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;} /** *The secret access key that can be used to sign requests.
*/ inline Credentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;} /** *The token that users must pass to the service API to use the temporary * credentials.
*/ inline const Aws::String& GetSessionToken() const{ return m_sessionToken; } /** *The token that users must pass to the service API to use the temporary * credentials.
*/ inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; } /** *The token that users must pass to the service API to use the temporary * credentials.
*/ inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; } /** *The token that users must pass to the service API to use the temporary * credentials.
*/ inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); } /** *The token that users must pass to the service API to use the temporary * credentials.
*/ inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); } /** *The token that users must pass to the service API to use the temporary * credentials.
*/ inline Credentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;} /** *The token that users must pass to the service API to use the temporary * credentials.
*/ inline Credentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;} /** *The token that users must pass to the service API to use the temporary * credentials.
*/ inline Credentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;} /** *The date on which the current credentials expire.
*/ inline const Aws::Utils::DateTime& GetExpiration() const{ return m_expiration; } /** *The date on which the current credentials expire.
*/ inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; } /** *The date on which the current credentials expire.
*/ inline void SetExpiration(const Aws::Utils::DateTime& value) { m_expirationHasBeenSet = true; m_expiration = value; } /** *The date on which the current credentials expire.
*/ inline void SetExpiration(Aws::Utils::DateTime&& value) { m_expirationHasBeenSet = true; m_expiration = std::move(value); } /** *The date on which the current credentials expire.
*/ inline Credentials& WithExpiration(const Aws::Utils::DateTime& value) { SetExpiration(value); return *this;} /** *The date on which the current credentials expire.
*/ inline Credentials& WithExpiration(Aws::Utils::DateTime&& value) { SetExpiration(std::move(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; Aws::Utils::DateTime m_expiration; bool m_expirationHasBeenSet = false; }; } // namespace Model } // namespace STS } // namespace Aws