/** * 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 AWS_SECRETSMANAGER_API GetSecretValueResult { public: GetSecretValueResult(); GetSecretValueResult(const Aws::AmazonWebServiceResult& result); 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 part of the protected secret information that 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.

This parameter is not used if the secret is created by the * Secrets Manager console.

If you store custom information in this field of * the secret, then you must code your Lambda rotation function to parse and * interpret whatever you store in the SecretString or * SecretBinary fields.

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

The decrypted part of the protected secret information that 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.

This parameter is not used if the secret is created by the * Secrets Manager console.

If you store custom information in this field of * the secret, then you must code your Lambda rotation function to parse and * interpret whatever you store in the SecretString or * SecretBinary fields.

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

The decrypted part of the protected secret information that 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.

This parameter is not used if the secret is created by the * Secrets Manager console.

If you store custom information in this field of * the secret, then you must code your Lambda rotation function to parse and * interpret whatever you store in the SecretString or * SecretBinary fields.

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

The decrypted part of the protected secret information that 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.

This parameter is not used if the secret is created by the * Secrets Manager console.

If you store custom information in this field of * the secret, then you must code your Lambda rotation function to parse and * interpret whatever you store in the SecretString or * SecretBinary fields.

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

The decrypted part of the protected secret information that 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.

This parameter is not used if the secret is created by the * Secrets Manager console.

If you store custom information in this field of * the secret, then you must code your Lambda rotation function to parse and * interpret whatever you store in the SecretString or * SecretBinary fields.

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

The decrypted part of the protected secret information that was originally * provided as a string.

If you create this secret by using the Secrets * Manager console then only the SecretString parameter contains data. * Secrets Manager stores the information as a JSON structure of key/value pairs * that the Lambda rotation function knows how to parse.

If you store custom * information in the secret by using the CreateSecret, UpdateSecret, * or PutSecretValue API operations instead of the Secrets Manager console, * or by using the Other secret type in the console, then you must code your * Lambda rotation function to parse and interpret those values.

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

The decrypted part of the protected secret information that was originally * provided as a string.

If you create this secret by using the Secrets * Manager console then only the SecretString parameter contains data. * Secrets Manager stores the information as a JSON structure of key/value pairs * that the Lambda rotation function knows how to parse.

If you store custom * information in the secret by using the CreateSecret, UpdateSecret, * or PutSecretValue API operations instead of the Secrets Manager console, * or by using the Other secret type in the console, then you must code your * Lambda rotation function to parse and interpret those values.

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

The decrypted part of the protected secret information that was originally * provided as a string.

If you create this secret by using the Secrets * Manager console then only the SecretString parameter contains data. * Secrets Manager stores the information as a JSON structure of key/value pairs * that the Lambda rotation function knows how to parse.

If you store custom * information in the secret by using the CreateSecret, UpdateSecret, * or PutSecretValue API operations instead of the Secrets Manager console, * or by using the Other secret type in the console, then you must code your * Lambda rotation function to parse and interpret those values.

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

The decrypted part of the protected secret information that was originally * provided as a string.

If you create this secret by using the Secrets * Manager console then only the SecretString parameter contains data. * Secrets Manager stores the information as a JSON structure of key/value pairs * that the Lambda rotation function knows how to parse.

If you store custom * information in the secret by using the CreateSecret, UpdateSecret, * or PutSecretValue API operations instead of the Secrets Manager console, * or by using the Other secret type in the console, then you must code your * Lambda rotation function to parse and interpret those values.

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

The decrypted part of the protected secret information that was originally * provided as a string.

If you create this secret by using the Secrets * Manager console then only the SecretString parameter contains data. * Secrets Manager stores the information as a JSON structure of key/value pairs * that the Lambda rotation function knows how to parse.

If you store custom * information in the secret by using the CreateSecret, UpdateSecret, * or PutSecretValue API operations instead of the Secrets Manager console, * or by using the Other secret type in the console, then you must code your * Lambda rotation function to parse and interpret those values.

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

The decrypted part of the protected secret information that was originally * provided as a string.

If you create this secret by using the Secrets * Manager console then only the SecretString parameter contains data. * Secrets Manager stores the information as a JSON structure of key/value pairs * that the Lambda rotation function knows how to parse.

If you store custom * information in the secret by using the CreateSecret, UpdateSecret, * or PutSecretValue API operations instead of the Secrets Manager console, * or by using the Other secret type in the console, then you must code your * Lambda rotation function to parse and interpret those values.

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

The decrypted part of the protected secret information that was originally * provided as a string.

If you create this secret by using the Secrets * Manager console then only the SecretString parameter contains data. * Secrets Manager stores the information as a JSON structure of key/value pairs * that the Lambda rotation function knows how to parse.

If you store custom * information in the secret by using the CreateSecret, UpdateSecret, * or PutSecretValue API operations instead of the Secrets Manager console, * or by using the Other secret type in the console, then you must code your * Lambda rotation function to parse and interpret those values.

*/ 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.

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

The date and time that this version of the secret was created.

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

The date and time that this version of the secret was created.

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

The date and time that this version of the secret was created.

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

The date and time that this version of the secret was created.

*/ inline GetSecretValueResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(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; }; } // namespace Model } // namespace SecretsManager } // namespace Aws