/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Backup { namespace Model { class AWS_BACKUP_API DescribeProtectedResourceResult { public: DescribeProtectedResourceResult(); DescribeProtectedResourceResult(const Aws::AmazonWebServiceResult& result); DescribeProtectedResourceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An 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 ARN that uniquely identifies a resource. The format of the ARN depends on * the resource type.

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

An ARN that uniquely identifies a resource. The format of the ARN depends on * the resource type.

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

An ARN that uniquely identifies a resource. The format of the ARN depends on * the resource type.

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

An ARN that uniquely identifies a resource. The format of the ARN depends on * the resource type.

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

An ARN that uniquely identifies a resource. The format of the ARN depends on * the resource type.

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

An ARN that uniquely identifies a resource. The format of the ARN depends on * the resource type.

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

The type of AWS resource saved as a recovery point; for example, an EBS * volume or an Amazon RDS database.

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

The type of AWS resource saved as a recovery point; for example, an EBS * volume or an Amazon RDS database.

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

The type of AWS resource saved as a recovery point; for example, an EBS * volume or an Amazon RDS database.

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

The type of AWS resource saved as a recovery point; for example, an EBS * volume or an Amazon RDS database.

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

The type of AWS resource saved as a recovery point; for example, an EBS * volume or an Amazon RDS database.

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

The type of AWS resource saved as a recovery point; for example, an EBS * volume or an Amazon RDS database.

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

The type of AWS resource saved as a recovery point; for example, an EBS * volume or an Amazon RDS database.

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

The date and time that 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 that 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_lastBackupTime = value; } /** *

The date and time that 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_lastBackupTime = std::move(value); } /** *

The date and time that 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 DescribeProtectedResourceResult& WithLastBackupTime(const Aws::Utils::DateTime& value) { SetLastBackupTime(value); return *this;} /** *

The date and time that 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 DescribeProtectedResourceResult& WithLastBackupTime(Aws::Utils::DateTime&& value) { SetLastBackupTime(std::move(value)); return *this;} private: Aws::String m_resourceArn; Aws::String m_resourceType; Aws::Utils::DateTime m_lastBackupTime; }; } // namespace Model } // namespace Backup } // namespace Aws