/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SecretsManager { namespace Model { class GetSecretValueResult { public: AWS_SECRETSMANAGER_API GetSecretValueResult(); AWS_SECRETSMANAGER_API GetSecretValueResult(const Aws::AmazonWebServiceResult& result); AWS_SECRETSMANAGER_API GetSecretValueResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the secret.

*/ inline const Aws::String& GetARN() const{ return m_aRN; } /** *

The ARN of the secret.

*/ inline void SetARN(const Aws::String& value) { m_aRN = value; } /** *

The ARN of the secret.

*/ inline void SetARN(Aws::String&& value) { m_aRN = std::move(value); } /** *

The ARN of the secret.

*/ inline void SetARN(const char* value) { m_aRN.assign(value); } /** *

The ARN of the secret.

*/ inline GetSecretValueResult& WithARN(const Aws::String& value) { SetARN(value); return *this;} /** *

The ARN of the secret.

*/ inline GetSecretValueResult& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} /** *

The ARN of the secret.

*/ inline GetSecretValueResult& WithARN(const char* value) { SetARN(value); return *this;} /** *

The friendly name of the secret.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The friendly name of the secret.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The friendly name of the secret.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The friendly name of the secret.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The friendly name of the secret.

*/ inline GetSecretValueResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The friendly name of the secret.

*/ inline GetSecretValueResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The friendly name of the secret.

*/ inline GetSecretValueResult& WithName(const char* value) { SetName(value); return *this;} /** *

The unique identifier of this version of the secret.

*/ inline const Aws::String& GetVersionId() const{ return m_versionId; } /** *

The unique identifier of this version of the secret.

*/ inline void SetVersionId(const Aws::String& value) { m_versionId = value; } /** *

The unique identifier of this version of the secret.

*/ inline void SetVersionId(Aws::String&& value) { m_versionId = std::move(value); } /** *

The unique identifier of this version of the secret.

*/ inline void SetVersionId(const char* value) { m_versionId.assign(value); } /** *

The unique identifier of this version of the secret.

*/ inline GetSecretValueResult& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;} /** *

The unique identifier of this version of the secret.

*/ inline GetSecretValueResult& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;} /** *

The unique identifier of this version of the secret.

*/ inline GetSecretValueResult& WithVersionId(const char* value) { SetVersionId(value); return *this;} /** *

The decrypted secret value, if the secret value was originally provided as * binary data in the form of a byte array. The response parameter represents the * binary data as a base64-encoded * string.

If the secret was created by using the Secrets Manager console, * or if the secret value was originally provided as a string, then this field is * omitted. The secret value appears in SecretString instead.

*/ inline const Aws::Utils::CryptoBuffer& GetSecretBinary() const{ return m_secretBinary; } /** *

The decrypted secret value, if the secret value was originally provided as * binary data in the form of a byte array. The response parameter represents the * binary data as a base64-encoded * string.

If the secret was created by using the Secrets Manager console, * or if the secret value was originally provided as a string, then this field is * omitted. The secret value appears in SecretString instead.

*/ inline void SetSecretBinary(const Aws::Utils::CryptoBuffer& value) { m_secretBinary = value; } /** *

The decrypted secret value, if the secret value was originally provided as * binary data in the form of a byte array. The response parameter represents the * binary data as a base64-encoded * string.

If the secret was created by using the Secrets Manager console, * or if the secret value was originally provided as a string, then this field is * omitted. The secret value appears in SecretString instead.

*/ inline void SetSecretBinary(Aws::Utils::CryptoBuffer&& value) { m_secretBinary = std::move(value); } /** *

The decrypted secret value, if the secret value was originally provided as * binary data in the form of a byte array. The response parameter represents the * binary data as a base64-encoded * string.

If the secret was created by using the Secrets Manager console, * or if the secret value was originally provided as a string, then this field is * omitted. The secret value appears in SecretString instead.

*/ inline GetSecretValueResult& WithSecretBinary(const Aws::Utils::CryptoBuffer& value) { SetSecretBinary(value); return *this;} /** *

The decrypted secret value, if the secret value was originally provided as * binary data in the form of a byte array. The response parameter represents the * binary data as a base64-encoded * string.

If the secret was created by using the Secrets Manager console, * or if the secret value was originally provided as a string, then this field is * omitted. The secret value appears in SecretString instead.

*/ inline GetSecretValueResult& WithSecretBinary(Aws::Utils::CryptoBuffer&& value) { SetSecretBinary(std::move(value)); return *this;} /** *

The decrypted secret value, if the secret value was originally provided as a * string or through the Secrets Manager console.

If this secret was created * by using the console, then Secrets Manager stores the information as a JSON * structure of key/value pairs.

*/ inline const Aws::String& GetSecretString() const{ return m_secretString; } /** *

The decrypted secret value, if the secret value was originally provided as a * string or through the Secrets Manager console.

If this secret was created * by using the console, then Secrets Manager stores the information as a JSON * structure of key/value pairs.

*/ inline void SetSecretString(const Aws::String& value) { m_secretString = value; } /** *

The decrypted secret value, if the secret value was originally provided as a * string or through the Secrets Manager console.

If this secret was created * by using the console, then Secrets Manager stores the information as a JSON * structure of key/value pairs.

*/ inline void SetSecretString(Aws::String&& value) { m_secretString = std::move(value); } /** *

The decrypted secret value, if the secret value was originally provided as a * string or through the Secrets Manager console.

If this secret was created * by using the console, then Secrets Manager stores the information as a JSON * structure of key/value pairs.

*/ inline void SetSecretString(const char* value) { m_secretString.assign(value); } /** *

The decrypted secret value, if the secret value was originally provided as a * string or through the Secrets Manager console.

If this secret was created * by using the console, then Secrets Manager stores the information as a JSON * structure of key/value pairs.

*/ inline GetSecretValueResult& WithSecretString(const Aws::String& value) { SetSecretString(value); return *this;} /** *

The decrypted secret value, if the secret value was originally provided as a * string or through the Secrets Manager console.

If this secret was created * by using the console, then Secrets Manager stores the information as a JSON * structure of key/value pairs.

*/ inline GetSecretValueResult& WithSecretString(Aws::String&& value) { SetSecretString(std::move(value)); return *this;} /** *

The decrypted secret value, if the secret value was originally provided as a * string or through the Secrets Manager console.

If this secret was created * by using the console, then Secrets Manager stores the information as a JSON * structure of key/value pairs.

*/ inline GetSecretValueResult& WithSecretString(const char* value) { SetSecretString(value); return *this;} /** *

A list of all of the staging labels currently attached to this version of the * secret.

*/ inline const Aws::Vector& GetVersionStages() const{ return m_versionStages; } /** *

A list of all of the staging labels currently attached to this version of the * secret.

*/ inline void SetVersionStages(const Aws::Vector& value) { m_versionStages = value; } /** *

A list of all of the staging labels currently attached to this version of the * secret.

*/ inline void SetVersionStages(Aws::Vector&& value) { m_versionStages = std::move(value); } /** *

A list of all of the staging labels currently attached to this version of the * secret.

*/ inline GetSecretValueResult& WithVersionStages(const Aws::Vector& value) { SetVersionStages(value); return *this;} /** *

A list of all of the staging labels currently attached to this version of the * secret.

*/ inline GetSecretValueResult& WithVersionStages(Aws::Vector&& value) { SetVersionStages(std::move(value)); return *this;} /** *

A list of all of the staging labels currently attached to this version of the * secret.

*/ inline GetSecretValueResult& AddVersionStages(const Aws::String& value) { m_versionStages.push_back(value); return *this; } /** *

A list of all of the staging labels currently attached to this version of the * secret.

*/ inline GetSecretValueResult& AddVersionStages(Aws::String&& value) { m_versionStages.push_back(std::move(value)); return *this; } /** *

A list of all of the staging labels currently attached to this version of the * secret.

*/ inline GetSecretValueResult& AddVersionStages(const char* value) { m_versionStages.push_back(value); return *this; } /** *

The date and time that this version of the secret was created. If you don't * specify which version in VersionId or VersionStage, * then Secrets Manager uses the AWSCURRENT version.

*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } /** *

The date and time that this version of the secret was created. If you don't * specify which version in VersionId or VersionStage, * then Secrets Manager uses the AWSCURRENT version.

*/ inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; } /** *

The date and time that this version of the secret was created. If you don't * specify which version in VersionId or VersionStage, * then Secrets Manager uses the AWSCURRENT version.

*/ inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); } /** *

The date and time that this version of the secret was created. If you don't * specify which version in VersionId or VersionStage, * then Secrets Manager uses the AWSCURRENT version.

*/ inline GetSecretValueResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The date and time that this version of the secret was created. If you don't * specify which version in VersionId or VersionStage, * then Secrets Manager uses the AWSCURRENT version.

*/ inline GetSecretValueResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetSecretValueResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSecretValueResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSecretValueResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_aRN; Aws::String m_name; Aws::String m_versionId; Aws::Utils::CryptoBuffer m_secretBinary; Aws::String m_secretString; Aws::Vector m_versionStages; Aws::Utils::DateTime m_createdDate; Aws::String m_requestId; }; } // namespace Model } // namespace SecretsManager } // namespace Aws