/** * 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 Backup { namespace Model { /** */ class GetLegalHoldRequest : public BackupRequest { public: AWS_BACKUP_API GetLegalHoldRequest(); // 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 "GetLegalHold"; } AWS_BACKUP_API Aws::String SerializePayload() const override; /** *

This is the ID required to use GetLegalHold. This unique ID is * associated with a specific legal hold.

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

This is the ID required to use GetLegalHold. This unique ID is * associated with a specific legal hold.

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

This is the ID required to use GetLegalHold. This unique ID is * associated with a specific legal hold.

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

This is the ID required to use GetLegalHold. This unique ID is * associated with a specific legal hold.

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

This is the ID required to use GetLegalHold. This unique ID is * associated with a specific legal hold.

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

This is the ID required to use GetLegalHold. This unique ID is * associated with a specific legal hold.

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

This is the ID required to use GetLegalHold. This unique ID is * associated with a specific legal hold.

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

This is the ID required to use GetLegalHold. This unique ID is * associated with a specific legal hold.

*/ inline GetLegalHoldRequest& WithLegalHoldId(const char* value) { SetLegalHoldId(value); return *this;} private: Aws::String m_legalHoldId; bool m_legalHoldIdHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws