@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LegalHold extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
LegalHold() |
Modifier and Type | Method and Description |
---|---|
LegalHold |
clone() |
boolean |
equals(Object obj) |
Date |
getCancellationDate()
This is the time in number format when legal hold was cancelled.
|
Date |
getCreationDate()
This is the time in number format when legal hold was created.
|
String |
getDescription()
This is the description of a legal hold.
|
String |
getLegalHoldArn()
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 |
getLegalHoldId()
ID of specific legal hold on one or more recovery points.
|
String |
getStatus()
This is the status of the legal hold.
|
String |
getTitle()
This is the title of a legal hold.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCancellationDate(Date cancellationDate)
This is the time in number format when legal hold was cancelled.
|
void |
setCreationDate(Date creationDate)
This is the time in number format when legal hold was created.
|
void |
setDescription(String description)
This is the description of a legal hold.
|
void |
setLegalHoldArn(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 . |
void |
setLegalHoldId(String legalHoldId)
ID of specific legal hold on one or more recovery points.
|
void |
setStatus(String status)
This is the status of the legal hold.
|
void |
setTitle(String title)
This is the title of a legal hold.
|
String |
toString()
Returns a string representation of this object.
|
LegalHold |
withCancellationDate(Date cancellationDate)
This is the time in number format when legal hold was cancelled.
|
LegalHold |
withCreationDate(Date creationDate)
This is the time in number format when legal hold was created.
|
LegalHold |
withDescription(String description)
This is the description of a legal hold.
|
LegalHold |
withLegalHoldArn(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 . |
LegalHold |
withLegalHoldId(String legalHoldId)
ID of specific legal hold on one or more recovery points.
|
LegalHold |
withStatus(LegalHoldStatus status)
This is the status of the legal hold.
|
LegalHold |
withStatus(String status)
This is the status of the legal hold.
|
LegalHold |
withTitle(String title)
This is the title of a legal hold.
|
public void setTitle(String title)
This is the title of a legal hold.
title
- This is the title of a legal hold.public String getTitle()
This is the title of a legal hold.
public LegalHold withTitle(String title)
This is the title of a legal hold.
title
- This is the title of a legal hold.public void setStatus(String status)
This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
,
CANCELED
, and CANCELING
.
status
- This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
,
CANCELED
, and CANCELING
.LegalHoldStatus
public String getStatus()
This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
,
CANCELED
, and CANCELING
.
ACTIVE
, CREATING
,
CANCELED
, and CANCELING
.LegalHoldStatus
public LegalHold withStatus(String status)
This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
,
CANCELED
, and CANCELING
.
status
- This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
,
CANCELED
, and CANCELING
.LegalHoldStatus
public LegalHold withStatus(LegalHoldStatus status)
This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
,
CANCELED
, and CANCELING
.
status
- This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
,
CANCELED
, and CANCELING
.LegalHoldStatus
public void setDescription(String description)
This is the description of a legal hold.
description
- This is the description of a legal hold.public String getDescription()
This is the description of a legal hold.
public LegalHold withDescription(String description)
This is the description of a legal hold.
description
- This is the description of a legal hold.public void setLegalHoldId(String legalHoldId)
ID of specific legal hold on one or more recovery points.
legalHoldId
- ID of specific legal hold on one or more recovery points.public String getLegalHoldId()
ID of specific legal hold on one or more recovery points.
public LegalHold withLegalHoldId(String legalHoldId)
ID of specific legal hold on one or more recovery points.
legalHoldId
- ID of specific legal hold on one or more recovery points.public void setLegalHoldArn(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
.
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
.public String getLegalHoldArn()
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 LegalHold withLegalHoldArn(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
.
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
.public void setCreationDate(Date creationDate)
This is the time in number format when legal hold was created.
creationDate
- This is the time in number format when legal hold was created.public Date getCreationDate()
This is the time in number format when legal hold was created.
public LegalHold withCreationDate(Date creationDate)
This is the time in number format when legal hold was created.
creationDate
- This is the time in number format when legal hold was created.public void setCancellationDate(Date cancellationDate)
This is the time in number format when legal hold was cancelled.
cancellationDate
- This is the time in number format when legal hold was cancelled.public Date getCancellationDate()
This is the time in number format when legal hold was cancelled.
public LegalHold withCancellationDate(Date cancellationDate)
This is the time in number format when legal hold was cancelled.
cancellationDate
- This is the time in number format when legal hold was cancelled.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.