Class ProtectedResource
- java.lang.Object
-
- software.amazon.awssdk.services.backup.model.ProtectedResource
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ProtectedResource.Builder,ProtectedResource>
@Generated("software.amazon.awssdk:codegen") public final class ProtectedResource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ProtectedResource.Builder,ProtectedResource>
A structure that contains information about a backed-up resource.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceProtectedResource.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectedResource.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastBackupTime()The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC).StringlastBackupVaultArn()This is the ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point.StringlastRecoveryPointArn()This is the ARN (Amazon Resource Name) of the most recent recovery point.StringresourceArn()An Amazon Resource Name (ARN) that uniquely identifies a resource.StringresourceName()This is the non-unique name of the resource that belongs to the specified backup.StringresourceType()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.List<SdkField<?>>sdkFields()static Class<? extends ProtectedResource.Builder>serializableBuilderClass()ProtectedResource.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
resourceArn
public final String resourceArn()
An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
- Returns:
- An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
-
resourceType
public final 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.
- Returns:
- 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.
-
lastBackupTime
public final Instant lastBackupTime()
The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of
LastBackupTimeis accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.- Returns:
- The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The
value of
LastBackupTimeis accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
-
resourceName
public final String resourceName()
This is the non-unique name of the resource that belongs to the specified backup.
- Returns:
- This is the non-unique name of the resource that belongs to the specified backup.
-
lastBackupVaultArn
public final String lastBackupVaultArn()
This is the ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point.
- Returns:
- This is the ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point.
-
lastRecoveryPointArn
public final String lastRecoveryPointArn()
This is the ARN (Amazon Resource Name) of the most recent recovery point.
- Returns:
- This is the ARN (Amazon Resource Name) of the most recent recovery point.
-
toBuilder
public ProtectedResource.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ProtectedResource.Builder,ProtectedResource>
-
builder
public static ProtectedResource.Builder builder()
-
serializableBuilderClass
public static Class<? extends ProtectedResource.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-