/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SecretsManager { namespace Model { class PutSecretValueResult { public: AWS_SECRETSMANAGER_API PutSecretValueResult(); AWS_SECRETSMANAGER_API PutSecretValueResult(const Aws::AmazonWebServiceResult& result); AWS_SECRETSMANAGER_API PutSecretValueResult& 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 PutSecretValueResult& WithARN(const Aws::String& value) { SetARN(value); return *this;} /** *

The ARN of the secret.

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

The ARN of the secret.

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

The name of the secret.

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

The name of the secret.

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

The name of the secret.

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

The name of the secret.

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

The name of the secret.

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

The name of the secret.

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

The name of the secret.

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

The unique identifier of the version of the secret.

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

The unique identifier of the version of the secret.

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

The unique identifier of the version of the secret.

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

The unique identifier of the version of the secret.

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

The unique identifier of the version of the secret.

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

The unique identifier of the version of the secret.

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

The unique identifier of the version of the secret.

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

The list of staging labels that are currently attached to this version of the * secret. Secrets Manager uses staging labels to track a version as it progresses * through the secret rotation process.

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

The list of staging labels that are currently attached to this version of the * secret. Secrets Manager uses staging labels to track a version as it progresses * through the secret rotation process.

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

The list of staging labels that are currently attached to this version of the * secret. Secrets Manager uses staging labels to track a version as it progresses * through the secret rotation process.

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

The list of staging labels that are currently attached to this version of the * secret. Secrets Manager uses staging labels to track a version as it progresses * through the secret rotation process.

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

The list of staging labels that are currently attached to this version of the * secret. Secrets Manager uses staging labels to track a version as it progresses * through the secret rotation process.

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

The list of staging labels that are currently attached to this version of the * secret. Secrets Manager uses staging labels to track a version as it progresses * through the secret rotation process.

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

The list of staging labels that are currently attached to this version of the * secret. Secrets Manager uses staging labels to track a version as it progresses * through the secret rotation process.

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

The list of staging labels that are currently attached to this version of the * secret. Secrets Manager uses staging labels to track a version as it progresses * through the secret rotation process.

*/ inline PutSecretValueResult& AddVersionStages(const char* value) { m_versionStages.push_back(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 PutSecretValueResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutSecretValueResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutSecretValueResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_aRN; Aws::String m_name; Aws::String m_versionId; Aws::Vector m_versionStages; Aws::String m_requestId; }; } // namespace Model } // namespace SecretsManager } // namespace Aws