@Generated(value="software.amazon.awssdk:codegen") public final class LegalHold extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LegalHold.Builder,LegalHold>
A legal hold is an administrative tool that helps prevent backups from being deleted while under a hold. While the hold is in place, backups under a hold cannot be deleted and lifecycle policies that would alter the backup status (such as transition to cold storage) are delayed until the legal hold is removed. A backup can have more than one legal hold. Legal holds are applied to one or more backups (also known as recovery points). These backups can be filtered by resource types and by resource IDs.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LegalHold.Builder |
| Modifier and Type | Method and Description |
|---|---|
static LegalHold.Builder |
builder() |
Instant |
cancellationDate()
This is the time in number format when legal hold was cancelled.
|
Instant |
creationDate()
This is the time in number format when legal hold was created.
|
String |
description()
This is the description of a legal hold.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
legalHoldArn()
This is an Amazon Resource Number (ARN) that uniquely identifies the legal hold; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. |
String |
legalHoldId()
ID of specific legal hold on one or more recovery points.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LegalHold.Builder> |
serializableBuilderClass() |
LegalHoldStatus |
status()
This is the status of the legal hold.
|
String |
statusAsString()
This is the status of the legal hold.
|
String |
title()
This is the title of a legal hold.
|
LegalHold.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String title()
This is the title of a legal hold.
public final LegalHoldStatus status()
This is the status of the legal hold. Statuses can be ACTIVE, CREATING,
CANCELED, and CANCELING.
If the service returns an enum value that is not available in the current SDK version, status will
return LegalHoldStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
ACTIVE, CREATING,
CANCELED, and CANCELING.LegalHoldStatuspublic final String statusAsString()
This is the status of the legal hold. Statuses can be ACTIVE, CREATING,
CANCELED, and CANCELING.
If the service returns an enum value that is not available in the current SDK version, status will
return LegalHoldStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
ACTIVE, CREATING,
CANCELED, and CANCELING.LegalHoldStatuspublic final String description()
This is the description of a legal hold.
public final String legalHoldId()
ID of specific legal hold on one or more recovery points.
public final String legalHoldArn()
This is an Amazon Resource Number (ARN) that uniquely identifies the legal hold; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.public final Instant creationDate()
This is the time in number format when legal hold was created.
public final Instant cancellationDate()
This is the time in number format when legal hold was cancelled.
public LegalHold.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LegalHold.Builder,LegalHold>public static LegalHold.Builder builder()
public static Class<? extends LegalHold.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.