/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The established temporary security credentials of the session.
* Directory buckets - These session credentials are only supported for the
* authentication and authorization of Zonal endpoint APIs on directory
* buckets.See Also:
AWS
* API Reference
A unique identifier that's associated with a secret access key. The access * key ID and the secret access key are used together to sign programmatic Amazon * Web Services requests cryptographically.
*/ inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; } /** *A unique identifier that's associated with a secret access key. The access * key ID and the secret access key are used together to sign programmatic Amazon * Web Services requests cryptographically.
*/ inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; } /** *A unique identifier that's associated with a secret access key. The access * key ID and the secret access key are used together to sign programmatic Amazon * Web Services requests cryptographically.
*/ inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; } /** *A unique identifier that's associated with a secret access key. The access * key ID and the secret access key are used together to sign programmatic Amazon * Web Services requests cryptographically.
*/ inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); } /** *A unique identifier that's associated with a secret access key. The access * key ID and the secret access key are used together to sign programmatic Amazon * Web Services requests cryptographically.
*/ inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); } /** *A unique identifier that's associated with a secret access key. The access * key ID and the secret access key are used together to sign programmatic Amazon * Web Services requests cryptographically.
*/ inline SessionCredentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;} /** *A unique identifier that's associated with a secret access key. The access * key ID and the secret access key are used together to sign programmatic Amazon * Web Services requests cryptographically.
*/ inline SessionCredentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;} /** *A unique identifier that's associated with a secret access key. The access * key ID and the secret access key are used together to sign programmatic Amazon * Web Services requests cryptographically.
*/ inline SessionCredentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;} /** *A key that's used with the access key ID to cryptographically sign * programmatic Amazon Web Services requests. Signing a request identifies the * sender and prevents the request from being altered.
*/ inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; } /** *A key that's used with the access key ID to cryptographically sign * programmatic Amazon Web Services requests. Signing a request identifies the * sender and prevents the request from being altered.
*/ inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; } /** *A key that's used with the access key ID to cryptographically sign * programmatic Amazon Web Services requests. Signing a request identifies the * sender and prevents the request from being altered.
*/ inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; } /** *A key that's used with the access key ID to cryptographically sign * programmatic Amazon Web Services requests. Signing a request identifies the * sender and prevents the request from being altered.
*/ inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); } /** *A key that's used with the access key ID to cryptographically sign * programmatic Amazon Web Services requests. Signing a request identifies the * sender and prevents the request from being altered.
*/ inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); } /** *A key that's used with the access key ID to cryptographically sign * programmatic Amazon Web Services requests. Signing a request identifies the * sender and prevents the request from being altered.
*/ inline SessionCredentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;} /** *A key that's used with the access key ID to cryptographically sign * programmatic Amazon Web Services requests. Signing a request identifies the * sender and prevents the request from being altered.
*/ inline SessionCredentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;} /** *A key that's used with the access key ID to cryptographically sign * programmatic Amazon Web Services requests. Signing a request identifies the * sender and prevents the request from being altered.
*/ inline SessionCredentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;} /** *A part of the temporary security credentials. The session token is used to * validate the temporary security credentials.
*/ inline const Aws::String& GetSessionToken() const{ return m_sessionToken; } /** *A part of the temporary security credentials. The session token is used to * validate the temporary security credentials.
*/ inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; } /** *A part of the temporary security credentials. The session token is used to * validate the temporary security credentials.
*/ inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; } /** *A part of the temporary security credentials. The session token is used to * validate the temporary security credentials.
*/ inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); } /** *A part of the temporary security credentials. The session token is used to * validate the temporary security credentials.
*/ inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); } /** *A part of the temporary security credentials. The session token is used to * validate the temporary security credentials.
*/ inline SessionCredentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;} /** *A part of the temporary security credentials. The session token is used to * validate the temporary security credentials.
*/ inline SessionCredentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;} /** *A part of the temporary security credentials. The session token is used to * validate the temporary security credentials.
*/ inline SessionCredentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;} /** *Temporary security credentials expire after a specified interval. After * temporary credentials expire, any calls that you make with those credentials * will fail. So you must generate a new set of temporary credentials. Temporary * credentials cannot be extended or refreshed beyond the original specified * interval.
*/ inline const Aws::Utils::DateTime& GetExpiration() const{ return m_expiration; } /** *Temporary security credentials expire after a specified interval. After * temporary credentials expire, any calls that you make with those credentials * will fail. So you must generate a new set of temporary credentials. Temporary * credentials cannot be extended or refreshed beyond the original specified * interval.
*/ inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; } /** *Temporary security credentials expire after a specified interval. After * temporary credentials expire, any calls that you make with those credentials * will fail. So you must generate a new set of temporary credentials. Temporary * credentials cannot be extended or refreshed beyond the original specified * interval.
*/ inline void SetExpiration(const Aws::Utils::DateTime& value) { m_expirationHasBeenSet = true; m_expiration = value; } /** *Temporary security credentials expire after a specified interval. After * temporary credentials expire, any calls that you make with those credentials * will fail. So you must generate a new set of temporary credentials. Temporary * credentials cannot be extended or refreshed beyond the original specified * interval.
*/ inline void SetExpiration(Aws::Utils::DateTime&& value) { m_expirationHasBeenSet = true; m_expiration = std::move(value); } /** *Temporary security credentials expire after a specified interval. After * temporary credentials expire, any calls that you make with those credentials * will fail. So you must generate a new set of temporary credentials. Temporary * credentials cannot be extended or refreshed beyond the original specified * interval.
*/ inline SessionCredentials& WithExpiration(const Aws::Utils::DateTime& value) { SetExpiration(value); return *this;} /** *Temporary security credentials expire after a specified interval. After * temporary credentials expire, any calls that you make with those credentials * will fail. So you must generate a new set of temporary credentials. Temporary * credentials cannot be extended or refreshed beyond the original specified * interval.
*/ inline SessionCredentials& 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 S3 } // namespace Aws