/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Credentials for the provided identity ID.See Also:
AWS
* API Reference
The Access Key portion of the credentials.
*/ inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; } /** *The Access Key portion of the credentials.
*/ inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; } /** *The Access Key portion of the credentials.
*/ inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; } /** *The Access Key portion of the credentials.
*/ inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); } /** *The Access Key portion of the credentials.
*/ inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); } /** *The Access Key portion of the credentials.
*/ inline Credentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;} /** *The Access Key portion of the credentials.
*/ inline Credentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;} /** *The Access Key portion of the credentials.
*/ inline Credentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;} /** *The Secret Access Key portion of the credentials
*/ inline const Aws::String& GetSecretKey() const{ return m_secretKey; } /** *The Secret Access Key portion of the credentials
*/ inline bool SecretKeyHasBeenSet() const { return m_secretKeyHasBeenSet; } /** *The Secret Access Key portion of the credentials
*/ inline void SetSecretKey(const Aws::String& value) { m_secretKeyHasBeenSet = true; m_secretKey = value; } /** *The Secret Access Key portion of the credentials
*/ inline void SetSecretKey(Aws::String&& value) { m_secretKeyHasBeenSet = true; m_secretKey = std::move(value); } /** *The Secret Access Key portion of the credentials
*/ inline void SetSecretKey(const char* value) { m_secretKeyHasBeenSet = true; m_secretKey.assign(value); } /** *The Secret Access Key portion of the credentials
*/ inline Credentials& WithSecretKey(const Aws::String& value) { SetSecretKey(value); return *this;} /** *The Secret Access Key portion of the credentials
*/ inline Credentials& WithSecretKey(Aws::String&& value) { SetSecretKey(std::move(value)); return *this;} /** *The Secret Access Key portion of the credentials
*/ inline Credentials& WithSecretKey(const char* value) { SetSecretKey(value); return *this;} /** *The Session Token portion of the credentials
*/ inline const Aws::String& GetSessionToken() const{ return m_sessionToken; } /** *The Session Token portion of the credentials
*/ inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; } /** *The Session Token portion of the credentials
*/ inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; } /** *The Session Token portion of the credentials
*/ inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); } /** *The Session Token portion of the credentials
*/ inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); } /** *The Session Token portion of the credentials
*/ inline Credentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;} /** *The Session Token portion of the credentials
*/ inline Credentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;} /** *The Session Token portion of the credentials
*/ inline Credentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;} /** *The date at which these credentials will expire.
*/ inline const Aws::Utils::DateTime& GetExpiration() const{ return m_expiration; } /** *The date at which these credentials will expire.
*/ inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; } /** *The date at which these credentials will expire.
*/ inline void SetExpiration(const Aws::Utils::DateTime& value) { m_expirationHasBeenSet = true; m_expiration = value; } /** *The date at which these credentials will expire.
*/ inline void SetExpiration(Aws::Utils::DateTime&& value) { m_expirationHasBeenSet = true; m_expiration = std::move(value); } /** *The date at which these credentials will expire.
*/ inline Credentials& WithExpiration(const Aws::Utils::DateTime& value) { SetExpiration(value); return *this;} /** *The date at which these credentials will 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_secretKey; bool m_secretKeyHasBeenSet = false; Aws::String m_sessionToken; bool m_sessionTokenHasBeenSet = false; Aws::Utils::DateTime m_expiration; bool m_expirationHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentity } // namespace Aws