/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace Backup { namespace Model { /** */ class CancelLegalHoldRequest : public BackupRequest { public: AWS_BACKUP_API CancelLegalHoldRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CancelLegalHold"; } AWS_BACKUP_API Aws::String SerializePayload() const override; AWS_BACKUP_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

Legal hold ID required to remove the specified legal hold on a recovery * point.

*/ inline const Aws::String& GetLegalHoldId() const{ return m_legalHoldId; } /** *

Legal hold ID required to remove the specified legal hold on a recovery * point.

*/ inline bool LegalHoldIdHasBeenSet() const { return m_legalHoldIdHasBeenSet; } /** *

Legal hold ID required to remove the specified legal hold on a recovery * point.

*/ inline void SetLegalHoldId(const Aws::String& value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId = value; } /** *

Legal hold ID required to remove the specified legal hold on a recovery * point.

*/ inline void SetLegalHoldId(Aws::String&& value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId = std::move(value); } /** *

Legal hold ID required to remove the specified legal hold on a recovery * point.

*/ inline void SetLegalHoldId(const char* value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId.assign(value); } /** *

Legal hold ID required to remove the specified legal hold on a recovery * point.

*/ inline CancelLegalHoldRequest& WithLegalHoldId(const Aws::String& value) { SetLegalHoldId(value); return *this;} /** *

Legal hold ID required to remove the specified legal hold on a recovery * point.

*/ inline CancelLegalHoldRequest& WithLegalHoldId(Aws::String&& value) { SetLegalHoldId(std::move(value)); return *this;} /** *

Legal hold ID required to remove the specified legal hold on a recovery * point.

*/ inline CancelLegalHoldRequest& WithLegalHoldId(const char* value) { SetLegalHoldId(value); return *this;} /** *

String describing the reason for removing the legal hold.

*/ inline const Aws::String& GetCancelDescription() const{ return m_cancelDescription; } /** *

String describing the reason for removing the legal hold.

*/ inline bool CancelDescriptionHasBeenSet() const { return m_cancelDescriptionHasBeenSet; } /** *

String describing the reason for removing the legal hold.

*/ inline void SetCancelDescription(const Aws::String& value) { m_cancelDescriptionHasBeenSet = true; m_cancelDescription = value; } /** *

String describing the reason for removing the legal hold.

*/ inline void SetCancelDescription(Aws::String&& value) { m_cancelDescriptionHasBeenSet = true; m_cancelDescription = std::move(value); } /** *

String describing the reason for removing the legal hold.

*/ inline void SetCancelDescription(const char* value) { m_cancelDescriptionHasBeenSet = true; m_cancelDescription.assign(value); } /** *

String describing the reason for removing the legal hold.

*/ inline CancelLegalHoldRequest& WithCancelDescription(const Aws::String& value) { SetCancelDescription(value); return *this;} /** *

String describing the reason for removing the legal hold.

*/ inline CancelLegalHoldRequest& WithCancelDescription(Aws::String&& value) { SetCancelDescription(std::move(value)); return *this;} /** *

String describing the reason for removing the legal hold.

*/ inline CancelLegalHoldRequest& WithCancelDescription(const char* value) { SetCancelDescription(value); return *this;} /** *

The integer amount in days specifying amount of days after this API operation * to remove legal hold.

*/ inline long long GetRetainRecordInDays() const{ return m_retainRecordInDays; } /** *

The integer amount in days specifying amount of days after this API operation * to remove legal hold.

*/ inline bool RetainRecordInDaysHasBeenSet() const { return m_retainRecordInDaysHasBeenSet; } /** *

The integer amount in days specifying amount of days after this API operation * to remove legal hold.

*/ inline void SetRetainRecordInDays(long long value) { m_retainRecordInDaysHasBeenSet = true; m_retainRecordInDays = value; } /** *

The integer amount in days specifying amount of days after this API operation * to remove legal hold.

*/ inline CancelLegalHoldRequest& WithRetainRecordInDays(long long value) { SetRetainRecordInDays(value); return *this;} private: Aws::String m_legalHoldId; bool m_legalHoldIdHasBeenSet = false; Aws::String m_cancelDescription; bool m_cancelDescriptionHasBeenSet = false; long long m_retainRecordInDays; bool m_retainRecordInDaysHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws