/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A structure that contains the secret value and other details for a
* secret.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the secret.
*/ inline const Aws::String& GetARN() const{ return m_aRN; } inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; } inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; } inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); } inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); } inline SecretValueEntry& WithARN(const Aws::String& value) { SetARN(value); return *this;} inline SecretValueEntry& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} inline SecretValueEntry& WithARN(const char* value) { SetARN(value); return *this;} ///@} ///@{ /** *The friendly name of the secret.
*/ inline const Aws::String& GetName() const{ return m_name; } inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } inline SecretValueEntry& WithName(const Aws::String& value) { SetName(value); return *this;} inline SecretValueEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} inline SecretValueEntry& WithName(const char* value) { SetName(value); return *this;} ///@} ///@{ /** *The unique version identifier of this version of the secret.
*/ inline const Aws::String& GetVersionId() const{ return m_versionId; } inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; } inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; } inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); } inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); } inline SecretValueEntry& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;} inline SecretValueEntry& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;} inline SecretValueEntry& 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 parameter represents the binary * data as a base64-encoded * string.
*/ inline const Aws::Utils::CryptoBuffer& GetSecretBinary() const{ return m_secretBinary; } inline bool SecretBinaryHasBeenSet() const { return m_secretBinaryHasBeenSet; } inline void SetSecretBinary(const Aws::Utils::CryptoBuffer& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = value; } inline void SetSecretBinary(Aws::Utils::CryptoBuffer&& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = std::move(value); } inline SecretValueEntry& WithSecretBinary(const Aws::Utils::CryptoBuffer& value) { SetSecretBinary(value); return *this;} inline SecretValueEntry& 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.
*/ inline const Aws::String& GetSecretString() const{ return m_secretString; } inline bool SecretStringHasBeenSet() const { return m_secretStringHasBeenSet; } inline void SetSecretString(const Aws::String& value) { m_secretStringHasBeenSet = true; m_secretString = value; } inline void SetSecretString(Aws::String&& value) { m_secretStringHasBeenSet = true; m_secretString = std::move(value); } inline void SetSecretString(const char* value) { m_secretStringHasBeenSet = true; m_secretString.assign(value); } inline SecretValueEntry& WithSecretString(const Aws::String& value) { SetSecretString(value); return *this;} inline SecretValueEntry& WithSecretString(Aws::String&& value) { SetSecretString(std::move(value)); return *this;} inline SecretValueEntry& 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::VectorThe date the secret was created.
*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } inline SecretValueEntry& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} inline SecretValueEntry& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} ///@} private: Aws::String m_aRN; bool m_aRNHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_versionId; bool m_versionIdHasBeenSet = false; Aws::Utils::CryptoBuffer m_secretBinary; bool m_secretBinaryHasBeenSet = false; Aws::String m_secretString; bool m_secretStringHasBeenSet = false; Aws::Vector