This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-sts/include/aws/sts/model/Credentials.h

222 lines
7.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sts/STS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace STS
{
namespace Model
{
/**
* <p>AWS credentials for API authentication.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/Credentials">AWS API
* Reference</a></p>
*/
class AWS_STS_API Credentials
{
public:
Credentials();
Credentials(const Aws::Utils::Xml::XmlNode& xmlNode);
Credentials& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The access key ID that identifies the temporary security credentials.</p>
*/
inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
/**
* <p>The access key ID that identifies the temporary security credentials.</p>
*/
inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
/**
* <p>The access key ID that identifies the temporary security credentials.</p>
*/
inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
/**
* <p>The access key ID that identifies the temporary security credentials.</p>
*/
inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
/**
* <p>The access key ID that identifies the temporary security credentials.</p>
*/
inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
/**
* <p>The access key ID that identifies the temporary security credentials.</p>
*/
inline Credentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
/**
* <p>The access key ID that identifies the temporary security credentials.</p>
*/
inline Credentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
/**
* <p>The access key ID that identifies the temporary security credentials.</p>
*/
inline Credentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
/**
* <p>The secret access key that can be used to sign requests.</p>
*/
inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
/**
* <p>The secret access key that can be used to sign requests.</p>
*/
inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
/**
* <p>The secret access key that can be used to sign requests.</p>
*/
inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
/**
* <p>The secret access key that can be used to sign requests.</p>
*/
inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); }
/**
* <p>The secret access key that can be used to sign requests.</p>
*/
inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
/**
* <p>The secret access key that can be used to sign requests.</p>
*/
inline Credentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
/**
* <p>The secret access key that can be used to sign requests.</p>
*/
inline Credentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
/**
* <p>The secret access key that can be used to sign requests.</p>
*/
inline Credentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
/**
* <p>The token that users must pass to the service API to use the temporary
* credentials.</p>
*/
inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
/**
* <p>The token that users must pass to the service API to use the temporary
* credentials.</p>
*/
inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
/**
* <p>The token that users must pass to the service API to use the temporary
* credentials.</p>
*/
inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
/**
* <p>The token that users must pass to the service API to use the temporary
* credentials.</p>
*/
inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); }
/**
* <p>The token that users must pass to the service API to use the temporary
* credentials.</p>
*/
inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); }
/**
* <p>The token that users must pass to the service API to use the temporary
* credentials.</p>
*/
inline Credentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
/**
* <p>The token that users must pass to the service API to use the temporary
* credentials.</p>
*/
inline Credentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;}
/**
* <p>The token that users must pass to the service API to use the temporary
* credentials.</p>
*/
inline Credentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
/**
* <p>The date on which the current credentials expire.</p>
*/
inline const Aws::Utils::DateTime& GetExpiration() const{ return m_expiration; }
/**
* <p>The date on which the current credentials expire.</p>
*/
inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; }
/**
* <p>The date on which the current credentials expire.</p>
*/
inline void SetExpiration(const Aws::Utils::DateTime& value) { m_expirationHasBeenSet = true; m_expiration = value; }
/**
* <p>The date on which the current credentials expire.</p>
*/
inline void SetExpiration(Aws::Utils::DateTime&& value) { m_expirationHasBeenSet = true; m_expiration = std::move(value); }
/**
* <p>The date on which the current credentials expire.</p>
*/
inline Credentials& WithExpiration(const Aws::Utils::DateTime& value) { SetExpiration(value); return *this;}
/**
* <p>The date on which the current credentials expire.</p>
*/
inline Credentials& WithExpiration(Aws::Utils::DateTime&& value) { SetExpiration(std::move(value)); return *this;}
private:
Aws::String m_accessKeyId;
bool m_accessKeyIdHasBeenSet;
Aws::String m_secretAccessKey;
bool m_secretAccessKeyHasBeenSet;
Aws::String m_sessionToken;
bool m_sessionTokenHasBeenSet;
Aws::Utils::DateTime m_expiration;
bool m_expirationHasBeenSet;
};
} // namespace Model
} // namespace STS
} // namespace Aws