/** * 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 AWS_BACKUP_API ProtectedResource { public: ProtectedResource(); ProtectedResource(Aws::Utils::Json::JsonView jsonValue); ProtectedResource& operator=(Aws::Utils::Json::JsonView jsonValue); 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 AWS resource; for example, an Amazon Elastic Block Store (Amazon * EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

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

The type of AWS resource; for example, an Amazon Elastic Block Store (Amazon * EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

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

The type of AWS resource; for example, an Amazon Elastic Block Store (Amazon * EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

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

The type of AWS resource; for example, an Amazon Elastic Block Store (Amazon * EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

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

The type of AWS resource; for example, an Amazon Elastic Block Store (Amazon * EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

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

The type of AWS resource; for example, an Amazon Elastic Block Store (Amazon * EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

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

The type of AWS resource; for example, an Amazon Elastic Block Store (Amazon * EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

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

The type of AWS resource; for example, an Amazon Elastic Block Store (Amazon * EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

*/ 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;} private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet; Aws::Utils::DateTime m_lastBackupTime; bool m_lastBackupTimeHasBeenSet; }; } // namespace Model } // namespace Backup } // namespace Aws