@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProtectedResource extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains information about a backed-up resource.
Constructor and Description |
---|
ProtectedResource() |
Modifier and Type | Method and Description |
---|---|
ProtectedResource |
clone() |
boolean |
equals(Object obj) |
Date |
getLastBackupTime()
The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC).
|
String |
getResourceArn()
An Amazon Resource Name (ARN) that uniquely identifies a resource.
|
String |
getResourceType()
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.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLastBackupTime(Date lastBackupTime)
The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC).
|
void |
setResourceArn(String resourceArn)
An Amazon Resource Name (ARN) that uniquely identifies a resource.
|
void |
setResourceType(String 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.
|
String |
toString()
Returns a string representation of this object.
|
ProtectedResource |
withLastBackupTime(Date lastBackupTime)
The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC).
|
ProtectedResource |
withResourceArn(String resourceArn)
An Amazon Resource Name (ARN) that uniquely identifies a resource.
|
ProtectedResource |
withResourceType(String 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.
|
public void setResourceArn(String resourceArn)
An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
resourceArn
- An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the
resource type.public String getResourceArn()
An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
public ProtectedResource withResourceArn(String resourceArn)
An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
resourceArn
- An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the
resource type.public void setResourceType(String 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.
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.public String getResourceType()
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.
public ProtectedResource withResourceType(String 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.
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.public void setLastBackupTime(Date 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.
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.public Date getLastBackupTime()
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.
LastBackupTime
is accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.public ProtectedResource withLastBackupTime(Date 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.
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.public String toString()
toString
in class Object
Object.toString()
public ProtectedResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.