174 lines
6.4 KiB
C
174 lines
6.4 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/backup/Backup_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/DateTime.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
template<typename RESULT_TYPE>
|
|||
|
|
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<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
DescribeProtectedResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An ARN that uniquely identifies a resource. The format of the ARN depends on
|
|||
|
|
* the resource type.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An ARN that uniquely identifies a resource. The format of the ARN depends on
|
|||
|
|
* the resource type.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResourceArn(const Aws::String& value) { m_resourceArn = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An ARN that uniquely identifies a resource. The format of the ARN depends on
|
|||
|
|
* the resource type.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResourceArn(Aws::String&& value) { m_resourceArn = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An ARN that uniquely identifies a resource. The format of the ARN depends on
|
|||
|
|
* the resource type.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResourceArn(const char* value) { m_resourceArn.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An ARN that uniquely identifies a resource. The format of the ARN depends on
|
|||
|
|
* the resource type.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeProtectedResourceResult& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An ARN that uniquely identifies a resource. The format of the ARN depends on
|
|||
|
|
* the resource type.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeProtectedResourceResult& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An ARN that uniquely identifies a resource. The format of the ARN depends on
|
|||
|
|
* the resource type.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeProtectedResourceResult& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of AWS resource saved as a recovery point; for example, an EBS
|
|||
|
|
* volume or an Amazon RDS database.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetResourceType() const{ return m_resourceType; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of AWS resource saved as a recovery point; for example, an EBS
|
|||
|
|
* volume or an Amazon RDS database.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResourceType(const Aws::String& value) { m_resourceType = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of AWS resource saved as a recovery point; for example, an EBS
|
|||
|
|
* volume or an Amazon RDS database.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResourceType(Aws::String&& value) { m_resourceType = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of AWS resource saved as a recovery point; for example, an EBS
|
|||
|
|
* volume or an Amazon RDS database.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResourceType(const char* value) { m_resourceType.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of AWS resource saved as a recovery point; for example, an EBS
|
|||
|
|
* volume or an Amazon RDS database.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeProtectedResourceResult& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of AWS resource saved as a recovery point; for example, an EBS
|
|||
|
|
* volume or an Amazon RDS database.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeProtectedResourceResult& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of AWS resource saved as a recovery point; for example, an EBS
|
|||
|
|
* volume or an Amazon RDS database.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeProtectedResourceResult& WithResourceType(const char* value) { SetResourceType(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time that a resource was last backed up, in Unix format and
|
|||
|
|
* Coordinated Universal Time (UTC). The value of <code>LastBackupTime</code> is
|
|||
|
|
* accurate to milliseconds. For example, the value 1516925490.087 represents
|
|||
|
|
* Friday, January 26, 2018 12:11:30.087 AM.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Utils::DateTime& GetLastBackupTime() const{ return m_lastBackupTime; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time that a resource was last backed up, in Unix format and
|
|||
|
|
* Coordinated Universal Time (UTC). The value of <code>LastBackupTime</code> is
|
|||
|
|
* accurate to milliseconds. For example, the value 1516925490.087 represents
|
|||
|
|
* Friday, January 26, 2018 12:11:30.087 AM.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLastBackupTime(const Aws::Utils::DateTime& value) { m_lastBackupTime = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time that a resource was last backed up, in Unix format and
|
|||
|
|
* Coordinated Universal Time (UTC). The value of <code>LastBackupTime</code> is
|
|||
|
|
* accurate to milliseconds. For example, the value 1516925490.087 represents
|
|||
|
|
* Friday, January 26, 2018 12:11:30.087 AM.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLastBackupTime(Aws::Utils::DateTime&& value) { m_lastBackupTime = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time that a resource was last backed up, in Unix format and
|
|||
|
|
* Coordinated Universal Time (UTC). The value of <code>LastBackupTime</code> is
|
|||
|
|
* accurate to milliseconds. For example, the value 1516925490.087 represents
|
|||
|
|
* Friday, January 26, 2018 12:11:30.087 AM.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeProtectedResourceResult& WithLastBackupTime(const Aws::Utils::DateTime& value) { SetLastBackupTime(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time that a resource was last backed up, in Unix format and
|
|||
|
|
* Coordinated Universal Time (UTC). The value of <code>LastBackupTime</code> is
|
|||
|
|
* accurate to milliseconds. For example, the value 1516925490.087 represents
|
|||
|
|
* Friday, January 26, 2018 12:11:30.087 AM.</p>
|
|||
|
|
*/
|
|||
|
|
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
|