/** * 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 GetBackupPlanRequest : public BackupRequest { public: AWS_BACKUP_API GetBackupPlanRequest(); // 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 "GetBackupPlan"; } AWS_BACKUP_API Aws::String SerializePayload() const override; AWS_BACKUP_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

Uniquely identifies a backup plan.

*/ inline const Aws::String& GetBackupPlanId() const{ return m_backupPlanId; } /** *

Uniquely identifies a backup plan.

*/ inline bool BackupPlanIdHasBeenSet() const { return m_backupPlanIdHasBeenSet; } /** *

Uniquely identifies a backup plan.

*/ inline void SetBackupPlanId(const Aws::String& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = value; } /** *

Uniquely identifies a backup plan.

*/ inline void SetBackupPlanId(Aws::String&& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = std::move(value); } /** *

Uniquely identifies a backup plan.

*/ inline void SetBackupPlanId(const char* value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId.assign(value); } /** *

Uniquely identifies a backup plan.

*/ inline GetBackupPlanRequest& WithBackupPlanId(const Aws::String& value) { SetBackupPlanId(value); return *this;} /** *

Uniquely identifies a backup plan.

*/ inline GetBackupPlanRequest& WithBackupPlanId(Aws::String&& value) { SetBackupPlanId(std::move(value)); return *this;} /** *

Uniquely identifies a backup plan.

*/ inline GetBackupPlanRequest& WithBackupPlanId(const char* value) { SetBackupPlanId(value); return *this;} /** *

Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most * 1,024 bytes long. Version IDs cannot be edited.

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

Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most * 1,024 bytes long. Version IDs cannot be edited.

*/ inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; } /** *

Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most * 1,024 bytes long. Version IDs cannot be edited.

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

Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most * 1,024 bytes long. Version IDs cannot be edited.

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

Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most * 1,024 bytes long. Version IDs cannot be edited.

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

Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most * 1,024 bytes long. Version IDs cannot be edited.

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

Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most * 1,024 bytes long. Version IDs cannot be edited.

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

Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most * 1,024 bytes long. Version IDs cannot be edited.

*/ inline GetBackupPlanRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;} private: Aws::String m_backupPlanId; bool m_backupPlanIdHasBeenSet = false; Aws::String m_versionId; bool m_versionIdHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws