/** * 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 DescribeProtectedResourceResult { public: AWS_BACKUP_API DescribeProtectedResourceResult(); AWS_BACKUP_API DescribeProtectedResourceResult(const Aws::AmazonWebServiceResult& result); AWS_BACKUP_API 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 Amazon Web Services resource saved as a recovery point; for * example, an Amazon EBS volume or an Amazon RDS database.

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

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

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

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

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

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

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

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

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

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

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

The type of Amazon Web Services resource saved as a recovery point; for * example, an Amazon 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;} /** *

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 void SetResourceName(const Aws::String& value) { 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_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_resourceName.assign(value); } /** *

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

*/ inline DescribeProtectedResourceResult& 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 DescribeProtectedResourceResult& 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 DescribeProtectedResourceResult& WithResourceName(const char* value) { SetResourceName(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeProtectedResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeProtectedResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeProtectedResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_resourceArn; Aws::String m_resourceType; Aws::Utils::DateTime m_lastBackupTime; Aws::String m_resourceName; Aws::String m_requestId; }; } // namespace Model } // namespace Backup } // namespace Aws