@Generated(value="software.amazon.awssdk:codegen") public final class GetLegalHoldResponse extends BackupResponse implements ToCopyableBuilder<GetLegalHoldResponse.Builder,GetLegalHoldResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetLegalHoldResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GetLegalHoldResponse.Builder |
builder() |
String |
cancelDescription()
String describing the reason for removing the legal hold.
|
Instant |
cancellationDate()
Time in number when legal hold was cancelled.
|
Instant |
creationDate()
Time in number format when legal hold was created.
|
String |
description()
This is the returned string description of the 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 the returned framework ARN for the specified legal hold.
|
String |
legalHoldId()
This is the returned ID associated with a specified legal hold.
|
RecoveryPointSelection |
recoveryPointSelection()
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
|
Instant |
retainRecordUntil()
This is the date and time until which the legal hold record will be retained.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetLegalHoldResponse.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 string title of the legal hold.
|
GetLegalHoldResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String title()
This is the string title of the 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 returned string description of the legal hold.
public final String cancelDescription()
String describing the reason for removing the legal hold.
public final String legalHoldId()
This is the returned ID associated with a specified legal hold.
public final String legalHoldArn()
This is the returned framework ARN for the specified legal hold. An Amazon Resource Name (ARN) uniquely identifies a resource. The format of the ARN depends on the resource type.
public final Instant creationDate()
Time in number format when legal hold was created.
public final Instant cancellationDate()
Time in number when legal hold was cancelled.
public final Instant retainRecordUntil()
This is the date and time until which the legal hold record will be retained.
public final RecoveryPointSelection recoveryPointSelection()
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
public GetLegalHoldResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetLegalHoldResponse.Builder,GetLegalHoldResponse>toBuilder in class AwsResponsepublic static GetLegalHoldResponse.Builder builder()
public static Class<? extends GetLegalHoldResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2023. All rights reserved.