/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Backup { namespace Model { /** *

Contains metadata about a backup plan.

See Also:

AWS * API Reference

*/ class BackupPlansListMember { public: AWS_BACKUP_API BackupPlansListMember(); AWS_BACKUP_API BackupPlansListMember(Aws::Utils::Json::JsonView jsonValue); AWS_BACKUP_API BackupPlansListMember& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for * example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

*/ inline const Aws::String& GetBackupPlanArn() const{ return m_backupPlanArn; } /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for * example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

*/ inline bool BackupPlanArnHasBeenSet() const { return m_backupPlanArnHasBeenSet; } /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for * example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

*/ inline void SetBackupPlanArn(const Aws::String& value) { m_backupPlanArnHasBeenSet = true; m_backupPlanArn = value; } /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for * example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

*/ inline void SetBackupPlanArn(Aws::String&& value) { m_backupPlanArnHasBeenSet = true; m_backupPlanArn = std::move(value); } /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for * example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

*/ inline void SetBackupPlanArn(const char* value) { m_backupPlanArnHasBeenSet = true; m_backupPlanArn.assign(value); } /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for * example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

*/ inline BackupPlansListMember& WithBackupPlanArn(const Aws::String& value) { SetBackupPlanArn(value); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for * example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

*/ inline BackupPlansListMember& WithBackupPlanArn(Aws::String&& value) { SetBackupPlanArn(std::move(value)); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for * example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

*/ inline BackupPlansListMember& WithBackupPlanArn(const char* value) { SetBackupPlanArn(value); return *this;} /** *

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 BackupPlansListMember& WithBackupPlanId(const Aws::String& value) { SetBackupPlanId(value); return *this;} /** *

Uniquely identifies a backup plan.

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

Uniquely identifies a backup plan.

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

The date and time a resource backup plan is created, in Unix format and * Coordinated Universal Time (UTC). The value of CreationDate is * accurate to milliseconds. For example, the value 1516925490.087 represents * Friday, January 26, 2018 12:11:30.087 AM.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The date and time a resource backup plan is created, in Unix format and * Coordinated Universal Time (UTC). The value of CreationDate is * accurate to milliseconds. For example, the value 1516925490.087 represents * Friday, January 26, 2018 12:11:30.087 AM.

*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

The date and time a resource backup plan is created, in Unix format and * Coordinated Universal Time (UTC). The value of CreationDate is * accurate to milliseconds. For example, the value 1516925490.087 represents * Friday, January 26, 2018 12:11:30.087 AM.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *

The date and time a resource backup plan is created, in Unix format and * Coordinated Universal Time (UTC). The value of CreationDate is * accurate to milliseconds. For example, the value 1516925490.087 represents * Friday, January 26, 2018 12:11:30.087 AM.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *

The date and time a resource backup plan is created, in Unix format and * Coordinated Universal Time (UTC). The value of CreationDate is * accurate to milliseconds. For example, the value 1516925490.087 represents * Friday, January 26, 2018 12:11:30.087 AM.

*/ inline BackupPlansListMember& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date and time a resource backup plan is created, in Unix format and * Coordinated Universal Time (UTC). The value of CreationDate is * accurate to milliseconds. For example, the value 1516925490.087 represents * Friday, January 26, 2018 12:11:30.087 AM.

*/ inline BackupPlansListMember& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The date and time a backup plan is deleted, in Unix format and Coordinated * Universal Time (UTC). The value of DeletionDate is accurate to * milliseconds. For example, the value 1516925490.087 represents Friday, January * 26, 2018 12:11:30.087 AM.

*/ inline const Aws::Utils::DateTime& GetDeletionDate() const{ return m_deletionDate; } /** *

The date and time a backup plan is deleted, in Unix format and Coordinated * Universal Time (UTC). The value of DeletionDate is accurate to * milliseconds. For example, the value 1516925490.087 represents Friday, January * 26, 2018 12:11:30.087 AM.

*/ inline bool DeletionDateHasBeenSet() const { return m_deletionDateHasBeenSet; } /** *

The date and time a backup plan is deleted, in Unix format and Coordinated * Universal Time (UTC). The value of DeletionDate is accurate to * milliseconds. For example, the value 1516925490.087 represents Friday, January * 26, 2018 12:11:30.087 AM.

*/ inline void SetDeletionDate(const Aws::Utils::DateTime& value) { m_deletionDateHasBeenSet = true; m_deletionDate = value; } /** *

The date and time a backup plan is deleted, in Unix format and Coordinated * Universal Time (UTC). The value of DeletionDate is accurate to * milliseconds. For example, the value 1516925490.087 represents Friday, January * 26, 2018 12:11:30.087 AM.

*/ inline void SetDeletionDate(Aws::Utils::DateTime&& value) { m_deletionDateHasBeenSet = true; m_deletionDate = std::move(value); } /** *

The date and time a backup plan is deleted, in Unix format and Coordinated * Universal Time (UTC). The value of DeletionDate is accurate to * milliseconds. For example, the value 1516925490.087 represents Friday, January * 26, 2018 12:11:30.087 AM.

*/ inline BackupPlansListMember& WithDeletionDate(const Aws::Utils::DateTime& value) { SetDeletionDate(value); return *this;} /** *

The date and time a backup plan is deleted, in Unix format and Coordinated * Universal Time (UTC). The value of DeletionDate is accurate to * milliseconds. For example, the value 1516925490.087 represents Friday, January * 26, 2018 12:11:30.087 AM.

*/ inline BackupPlansListMember& WithDeletionDate(Aws::Utils::DateTime&& value) { SetDeletionDate(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 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 BackupPlansListMember& 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 BackupPlansListMember& 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 BackupPlansListMember& WithVersionId(const char* value) { SetVersionId(value); return *this;} /** *

The display name of a saved backup plan.

*/ inline const Aws::String& GetBackupPlanName() const{ return m_backupPlanName; } /** *

The display name of a saved backup plan.

*/ inline bool BackupPlanNameHasBeenSet() const { return m_backupPlanNameHasBeenSet; } /** *

The display name of a saved backup plan.

*/ inline void SetBackupPlanName(const Aws::String& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = value; } /** *

The display name of a saved backup plan.

*/ inline void SetBackupPlanName(Aws::String&& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = std::move(value); } /** *

The display name of a saved backup plan.

*/ inline void SetBackupPlanName(const char* value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName.assign(value); } /** *

The display name of a saved backup plan.

*/ inline BackupPlansListMember& WithBackupPlanName(const Aws::String& value) { SetBackupPlanName(value); return *this;} /** *

The display name of a saved backup plan.

*/ inline BackupPlansListMember& WithBackupPlanName(Aws::String&& value) { SetBackupPlanName(std::move(value)); return *this;} /** *

The display name of a saved backup plan.

*/ inline BackupPlansListMember& WithBackupPlanName(const char* value) { SetBackupPlanName(value); return *this;} /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice. This parameter is * optional.

If used, this parameter must contain 1 to 50 alphanumeric or * '-_.' characters.

*/ inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; } /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice. This parameter is * optional.

If used, this parameter must contain 1 to 50 alphanumeric or * '-_.' characters.

*/ inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; } /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice. This parameter is * optional.

If used, this parameter must contain 1 to 50 alphanumeric or * '-_.' characters.

*/ inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; } /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice. This parameter is * optional.

If used, this parameter must contain 1 to 50 alphanumeric or * '-_.' characters.

*/ inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); } /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice. This parameter is * optional.

If used, this parameter must contain 1 to 50 alphanumeric or * '-_.' characters.

*/ inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); } /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice. This parameter is * optional.

If used, this parameter must contain 1 to 50 alphanumeric or * '-_.' characters.

*/ inline BackupPlansListMember& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;} /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice. This parameter is * optional.

If used, this parameter must contain 1 to 50 alphanumeric or * '-_.' characters.

*/ inline BackupPlansListMember& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;} /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice. This parameter is * optional.

If used, this parameter must contain 1 to 50 alphanumeric or * '-_.' characters.

*/ inline BackupPlansListMember& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;} /** *

The last time a job to back up resources was run with this rule. A date and * time, in Unix format and Coordinated Universal Time (UTC). The value of * LastExecutionDate is accurate to milliseconds. For example, the * value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

*/ inline const Aws::Utils::DateTime& GetLastExecutionDate() const{ return m_lastExecutionDate; } /** *

The last time a job to back up resources was run with this rule. A date and * time, in Unix format and Coordinated Universal Time (UTC). The value of * LastExecutionDate is accurate to milliseconds. For example, the * value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

*/ inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; } /** *

The last time a job to back up resources was run with this rule. A date and * time, in Unix format and Coordinated Universal Time (UTC). The value of * LastExecutionDate is accurate to milliseconds. For example, the * value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

*/ inline void SetLastExecutionDate(const Aws::Utils::DateTime& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = value; } /** *

The last time a job to back up resources was run with this rule. A date and * time, in Unix format and Coordinated Universal Time (UTC). The value of * LastExecutionDate is accurate to milliseconds. For example, the * value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

*/ inline void SetLastExecutionDate(Aws::Utils::DateTime&& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = std::move(value); } /** *

The last time a job to back up resources was run with this rule. A date and * time, in Unix format and Coordinated Universal Time (UTC). The value of * LastExecutionDate is accurate to milliseconds. For example, the * value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

*/ inline BackupPlansListMember& WithLastExecutionDate(const Aws::Utils::DateTime& value) { SetLastExecutionDate(value); return *this;} /** *

The last time a job to back up resources was run with this rule. A date and * time, in Unix format and Coordinated Universal Time (UTC). The value of * LastExecutionDate is accurate to milliseconds. For example, the * value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

*/ inline BackupPlansListMember& WithLastExecutionDate(Aws::Utils::DateTime&& value) { SetLastExecutionDate(std::move(value)); return *this;} /** *

Contains a list of BackupOptions for a resource type.

*/ inline const Aws::Vector& GetAdvancedBackupSettings() const{ return m_advancedBackupSettings; } /** *

Contains a list of BackupOptions for a resource type.

*/ inline bool AdvancedBackupSettingsHasBeenSet() const { return m_advancedBackupSettingsHasBeenSet; } /** *

Contains a list of BackupOptions for a resource type.

*/ inline void SetAdvancedBackupSettings(const Aws::Vector& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = value; } /** *

Contains a list of BackupOptions for a resource type.

*/ inline void SetAdvancedBackupSettings(Aws::Vector&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = std::move(value); } /** *

Contains a list of BackupOptions for a resource type.

*/ inline BackupPlansListMember& WithAdvancedBackupSettings(const Aws::Vector& value) { SetAdvancedBackupSettings(value); return *this;} /** *

Contains a list of BackupOptions for a resource type.

*/ inline BackupPlansListMember& WithAdvancedBackupSettings(Aws::Vector&& value) { SetAdvancedBackupSettings(std::move(value)); return *this;} /** *

Contains a list of BackupOptions for a resource type.

*/ inline BackupPlansListMember& AddAdvancedBackupSettings(const AdvancedBackupSetting& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.push_back(value); return *this; } /** *

Contains a list of BackupOptions for a resource type.

*/ inline BackupPlansListMember& AddAdvancedBackupSettings(AdvancedBackupSetting&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.push_back(std::move(value)); return *this; } private: Aws::String m_backupPlanArn; bool m_backupPlanArnHasBeenSet = false; Aws::String m_backupPlanId; bool m_backupPlanIdHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::Utils::DateTime m_deletionDate; bool m_deletionDateHasBeenSet = false; Aws::String m_versionId; bool m_versionIdHasBeenSet = false; Aws::String m_backupPlanName; bool m_backupPlanNameHasBeenSet = false; Aws::String m_creatorRequestId; bool m_creatorRequestIdHasBeenSet = false; Aws::Utils::DateTime m_lastExecutionDate; bool m_lastExecutionDateHasBeenSet = false; Aws::Vector m_advancedBackupSettings; bool m_advancedBackupSettingsHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws