/** * 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 { /** *

A structure that contains information about a backed-up * resource.

See Also:

AWS * API Reference

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

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline ProtectedResource& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline ProtectedResource& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline ProtectedResource& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The type of Amazon Web Services resource; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

The type of Amazon Web Services resource; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of Amazon Web Services resource; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of Amazon Web Services resource; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of Amazon Web Services resource; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

The type of Amazon Web Services resource; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

*/ inline ProtectedResource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

The type of Amazon Web Services resource; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

*/ inline ProtectedResource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

The type of Amazon Web Services resource; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

*/ inline ProtectedResource& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *

The date and time a resource was last backed up, in Unix format and * Coordinated Universal Time (UTC). The value of LastBackupTime 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& GetLastBackupTime() const{ return m_lastBackupTime; } /** *

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

*/ inline bool LastBackupTimeHasBeenSet() const { return m_lastBackupTimeHasBeenSet; } /** *

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

*/ inline void SetLastBackupTime(const Aws::Utils::DateTime& value) { m_lastBackupTimeHasBeenSet = true; m_lastBackupTime = value; } /** *

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

*/ inline void SetLastBackupTime(Aws::Utils::DateTime&& value) { m_lastBackupTimeHasBeenSet = true; m_lastBackupTime = std::move(value); } /** *

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

*/ inline ProtectedResource& WithLastBackupTime(const Aws::Utils::DateTime& value) { SetLastBackupTime(value); return *this;} /** *

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

*/ inline ProtectedResource& WithLastBackupTime(Aws::Utils::DateTime&& value) { SetLastBackupTime(std::move(value)); return *this;} /** *

This is the non-unique name of the resource that belongs to the specified * backup.

*/ inline const Aws::String& GetResourceName() const{ return m_resourceName; } /** *

This is the non-unique name of the resource that belongs to the specified * backup.

*/ inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; } /** *

This is the non-unique name of the resource that belongs to the specified * backup.

*/ inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; } /** *

This is the non-unique name of the resource that belongs to the specified * backup.

*/ inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); } /** *

This is the non-unique name of the resource that belongs to the specified * backup.

*/ inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); } /** *

This is the non-unique name of the resource that belongs to the specified * backup.

*/ inline ProtectedResource& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;} /** *

This is the non-unique name of the resource that belongs to the specified * backup.

*/ inline ProtectedResource& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;} /** *

This is the non-unique name of the resource that belongs to the specified * backup.

*/ inline ProtectedResource& WithResourceName(const char* value) { SetResourceName(value); return *this;} private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Utils::DateTime m_lastBackupTime; bool m_lastBackupTimeHasBeenSet = false; Aws::String m_resourceName; bool m_resourceNameHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws