@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 description for the retention rule.
|
String |
getIdentifier()
The unique ID of the retention rule.
|
RetentionPeriod |
getRetentionPeriod()
Information about the retention period for which the retention rule retains resources
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
The description for the retention rule.
|
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 retains resources
|
String |
toString()
Returns a string representation of this object.
|
RuleSummary |
withDescription(String description)
The description for the retention rule.
|
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 retains 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 description for the retention rule.
description
- The description for the retention rule.public String getDescription()
The description for the retention rule.
public RuleSummary withDescription(String description)
The description for the retention rule.
description
- The description for the retention rule.public void setRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule retains resources
retentionPeriod
- Information about the retention period for which the retention rule retains resourcespublic RetentionPeriod getRetentionPeriod()
Information about the retention period for which the retention rule retains resources
public RuleSummary withRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule retains resources
retentionPeriod
- Information about the retention period for which the retention rule retains resourcespublic 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.