@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleSummary extends Object implements Serializable, Cloneable, StructuredPojo
Information about a Recycle Bin retention rule.
Constructor and Description |
---|
RuleSummary() |
Modifier and Type | Method and Description |
---|---|
RuleSummary |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The retention rule description.
|
String |
getIdentifier()
The unique ID of the retention rule.
|
RetentionPeriod |
getRetentionPeriod()
Information about the retention period for which the retention rule is to retain resources.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
The retention rule description.
|
void |
setIdentifier(String identifier)
The unique ID of the retention rule.
|
void |
setRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
|
String |
toString()
Returns a string representation of this object.
|
RuleSummary |
withDescription(String description)
The retention rule description.
|
RuleSummary |
withIdentifier(String identifier)
The unique ID of the retention rule.
|
RuleSummary |
withRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
|
public void setIdentifier(String identifier)
The unique ID of the retention rule.
identifier
- The unique ID of the retention rule.public String getIdentifier()
The unique ID of the retention rule.
public RuleSummary withIdentifier(String identifier)
The unique ID of the retention rule.
identifier
- The unique ID of the retention rule.public void setDescription(String description)
The retention rule description.
description
- The retention rule description.public String getDescription()
The retention rule description.
public RuleSummary withDescription(String description)
The retention rule description.
description
- The retention rule description.public void setRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
retentionPeriod
- Information about the retention period for which the retention rule is to retain resources.public RetentionPeriod getRetentionPeriod()
Information about the retention period for which the retention rule is to retain resources.
public RuleSummary withRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
retentionPeriod
- Information about the retention period for which the retention rule is to retain resources.public String toString()
toString
in class Object
Object.toString()
public RuleSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.