/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Backup { namespace Model { /** *

Contains metadata about a BackupSelection object.

See * Also:

AWS * API Reference

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

Uniquely identifies a request to assign a set of resources to a backup * plan.

*/ inline const Aws::String& GetSelectionId() const{ return m_selectionId; } /** *

Uniquely identifies a request to assign a set of resources to a backup * plan.

*/ inline bool SelectionIdHasBeenSet() const { return m_selectionIdHasBeenSet; } /** *

Uniquely identifies a request to assign a set of resources to a backup * plan.

*/ inline void SetSelectionId(const Aws::String& value) { m_selectionIdHasBeenSet = true; m_selectionId = value; } /** *

Uniquely identifies a request to assign a set of resources to a backup * plan.

*/ inline void SetSelectionId(Aws::String&& value) { m_selectionIdHasBeenSet = true; m_selectionId = std::move(value); } /** *

Uniquely identifies a request to assign a set of resources to a backup * plan.

*/ inline void SetSelectionId(const char* value) { m_selectionIdHasBeenSet = true; m_selectionId.assign(value); } /** *

Uniquely identifies a request to assign a set of resources to a backup * plan.

*/ inline BackupSelectionsListMember& WithSelectionId(const Aws::String& value) { SetSelectionId(value); return *this;} /** *

Uniquely identifies a request to assign a set of resources to a backup * plan.

*/ inline BackupSelectionsListMember& WithSelectionId(Aws::String&& value) { SetSelectionId(std::move(value)); return *this;} /** *

Uniquely identifies a request to assign a set of resources to a backup * plan.

*/ inline BackupSelectionsListMember& WithSelectionId(const char* value) { SetSelectionId(value); return *this;} /** *

The display name of a resource selection document.

*/ inline const Aws::String& GetSelectionName() const{ return m_selectionName; } /** *

The display name of a resource selection document.

*/ inline bool SelectionNameHasBeenSet() const { return m_selectionNameHasBeenSet; } /** *

The display name of a resource selection document.

*/ inline void SetSelectionName(const Aws::String& value) { m_selectionNameHasBeenSet = true; m_selectionName = value; } /** *

The display name of a resource selection document.

*/ inline void SetSelectionName(Aws::String&& value) { m_selectionNameHasBeenSet = true; m_selectionName = std::move(value); } /** *

The display name of a resource selection document.

*/ inline void SetSelectionName(const char* value) { m_selectionNameHasBeenSet = true; m_selectionName.assign(value); } /** *

The display name of a resource selection document.

*/ inline BackupSelectionsListMember& WithSelectionName(const Aws::String& value) { SetSelectionName(value); return *this;} /** *

The display name of a resource selection document.

*/ inline BackupSelectionsListMember& WithSelectionName(Aws::String&& value) { SetSelectionName(std::move(value)); return *this;} /** *

The display name of a resource selection document.

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

Uniquely identifies a backup plan.

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

Uniquely identifies a backup plan.

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

The date and time a 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 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 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 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 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 BackupSelectionsListMember& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date and time a 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 BackupSelectionsListMember& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(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 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 BackupSelectionsListMember& 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 BackupSelectionsListMember& 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 BackupSelectionsListMember& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;} /** *

Specifies the IAM role Amazon Resource Name (ARN) to create the target * recovery point; for example, * arn:aws:iam::123456789012:role/S3Access.

*/ inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; } /** *

Specifies the IAM role Amazon Resource Name (ARN) to create the target * recovery point; for example, * arn:aws:iam::123456789012:role/S3Access.

*/ inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; } /** *

Specifies the IAM role Amazon Resource Name (ARN) to create the target * recovery point; for example, * arn:aws:iam::123456789012:role/S3Access.

*/ inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; } /** *

Specifies the IAM role Amazon Resource Name (ARN) to create the target * recovery point; for example, * arn:aws:iam::123456789012:role/S3Access.

*/ inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); } /** *

Specifies the IAM role Amazon Resource Name (ARN) to create the target * recovery point; for example, * arn:aws:iam::123456789012:role/S3Access.

*/ inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); } /** *

Specifies the IAM role Amazon Resource Name (ARN) to create the target * recovery point; for example, * arn:aws:iam::123456789012:role/S3Access.

*/ inline BackupSelectionsListMember& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;} /** *

Specifies the IAM role Amazon Resource Name (ARN) to create the target * recovery point; for example, * arn:aws:iam::123456789012:role/S3Access.

*/ inline BackupSelectionsListMember& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;} /** *

Specifies the IAM role Amazon Resource Name (ARN) to create the target * recovery point; for example, * arn:aws:iam::123456789012:role/S3Access.

*/ inline BackupSelectionsListMember& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;} private: Aws::String m_selectionId; bool m_selectionIdHasBeenSet = false; Aws::String m_selectionName; bool m_selectionNameHasBeenSet = false; Aws::String m_backupPlanId; bool m_backupPlanIdHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::String m_creatorRequestId; bool m_creatorRequestIdHasBeenSet = false; Aws::String m_iamRoleArn; bool m_iamRoleArnHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws