@Generated(value="software.amazon.awssdk:codegen") public final class CreateLegalHoldResponse extends BackupResponse implements ToCopyableBuilder<CreateLegalHoldResponse.Builder,CreateLegalHoldResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateLegalHoldResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateLegalHoldResponse.Builder |
builder() |
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 ARN (Amazon Resource Number) of the created legal hold.
|
String |
legalHoldId()
Legal hold ID returned for the specified legal hold on a recovery point.
|
RecoveryPointSelection |
recoveryPointSelection()
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateLegalHoldResponse.Builder> |
serializableBuilderClass() |
LegalHoldStatus |
status()
This displays the status of the legal hold returned after creating the legal hold.
|
String |
statusAsString()
This displays the status of the legal hold returned after creating the legal hold.
|
String |
title()
This is the string title of the legal hold returned after creating the legal hold.
|
CreateLegalHoldResponse.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 returned after creating the legal hold.
public final LegalHoldStatus status()
This displays the status of the legal hold returned after creating the legal hold. Statuses can be
ACTIVE, PENDING, CANCELED, CANCELING, or FAILED.
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, PENDING, CANCELED, CANCELING, or
FAILED.LegalHoldStatuspublic final String statusAsString()
This displays the status of the legal hold returned after creating the legal hold. Statuses can be
ACTIVE, PENDING, CANCELED, CANCELING, or FAILED.
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, PENDING, CANCELED, CANCELING, or
FAILED.LegalHoldStatuspublic final String description()
This is the returned string description of the legal hold.
public final String legalHoldId()
Legal hold ID returned for the specified legal hold on a recovery point.
public final String legalHoldArn()
This is the ARN (Amazon Resource Number) of the created legal hold.
public final Instant creationDate()
Time in number format when legal hold was created.
public final RecoveryPointSelection recoveryPointSelection()
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
public CreateLegalHoldResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateLegalHoldResponse.Builder,CreateLegalHoldResponse>toBuilder in class AwsResponsepublic static CreateLegalHoldResponse.Builder builder()
public static Class<? extends CreateLegalHoldResponse.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.