/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 CancelRotateSecretResult { public: CancelRotateSecretResult(); CancelRotateSecretResult(const Aws::AmazonWebServiceResult& result); CancelRotateSecretResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the secret for which rotation was canceled.

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

The ARN of the secret for which rotation was canceled.

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

The ARN of the secret for which rotation was canceled.

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

The ARN of the secret for which rotation was canceled.

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

The ARN of the secret for which rotation was canceled.

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

The ARN of the secret for which rotation was canceled.

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

The ARN of the secret for which rotation was canceled.

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

The friendly name of the secret for which rotation was canceled.

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

The friendly name of the secret for which rotation was canceled.

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

The friendly name of the secret for which rotation was canceled.

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

The friendly name of the secret for which rotation was canceled.

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

The friendly name of the secret for which rotation was canceled.

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

The friendly name of the secret for which rotation was canceled.

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

The friendly name of the secret for which rotation was canceled.

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

The unique identifier of the version of the secret created during the * rotation. This version might not be complete, and should be evaluated for * possible deletion. At the very least, you should remove the * VersionStage value AWSPENDING to enable this version * to be deleted. Failing to clean up a cancelled rotation can block you from * successfully starting future rotations.

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

The unique identifier of the version of the secret created during the * rotation. This version might not be complete, and should be evaluated for * possible deletion. At the very least, you should remove the * VersionStage value AWSPENDING to enable this version * to be deleted. Failing to clean up a cancelled rotation can block you from * successfully starting future rotations.

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

The unique identifier of the version of the secret created during the * rotation. This version might not be complete, and should be evaluated for * possible deletion. At the very least, you should remove the * VersionStage value AWSPENDING to enable this version * to be deleted. Failing to clean up a cancelled rotation can block you from * successfully starting future rotations.

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

The unique identifier of the version of the secret created during the * rotation. This version might not be complete, and should be evaluated for * possible deletion. At the very least, you should remove the * VersionStage value AWSPENDING to enable this version * to be deleted. Failing to clean up a cancelled rotation can block you from * successfully starting future rotations.

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

The unique identifier of the version of the secret created during the * rotation. This version might not be complete, and should be evaluated for * possible deletion. At the very least, you should remove the * VersionStage value AWSPENDING to enable this version * to be deleted. Failing to clean up a cancelled rotation can block you from * successfully starting future rotations.

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

The unique identifier of the version of the secret created during the * rotation. This version might not be complete, and should be evaluated for * possible deletion. At the very least, you should remove the * VersionStage value AWSPENDING to enable this version * to be deleted. Failing to clean up a cancelled rotation can block you from * successfully starting future rotations.

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

The unique identifier of the version of the secret created during the * rotation. This version might not be complete, and should be evaluated for * possible deletion. At the very least, you should remove the * VersionStage value AWSPENDING to enable this version * to be deleted. Failing to clean up a cancelled rotation can block you from * successfully starting future rotations.

*/ inline CancelRotateSecretResult& WithVersionId(const char* value) { SetVersionId(value); return *this;} private: Aws::String m_aRN; Aws::String m_name; Aws::String m_versionId; }; } // namespace Model } // namespace SecretsManager } // namespace Aws