@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetentionPeriod extends Object implements Serializable, Cloneable, StructuredPojo
Information about the retention period for which the retention rule is to retain resources.
Constructor and Description |
---|
RetentionPeriod() |
Modifier and Type | Method and Description |
---|---|
RetentionPeriod |
clone() |
boolean |
equals(Object obj) |
String |
getRetentionPeriodUnit()
The unit of time in which the retention period is measured.
|
Integer |
getRetentionPeriodValue()
The period value for which the retention rule is to retain resources.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRetentionPeriodUnit(String retentionPeriodUnit)
The unit of time in which the retention period is measured.
|
void |
setRetentionPeriodValue(Integer retentionPeriodValue)
The period value for which the retention rule is to retain resources.
|
String |
toString()
Returns a string representation of this object.
|
RetentionPeriod |
withRetentionPeriodUnit(RetentionPeriodUnit retentionPeriodUnit)
The unit of time in which the retention period is measured.
|
RetentionPeriod |
withRetentionPeriodUnit(String retentionPeriodUnit)
The unit of time in which the retention period is measured.
|
RetentionPeriod |
withRetentionPeriodValue(Integer retentionPeriodValue)
The period value for which the retention rule is to retain resources.
|
public void setRetentionPeriodValue(Integer retentionPeriodValue)
The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
retentionPeriodValue
- The period value for which the retention rule is to retain resources. The period is measured using the
unit specified for RetentionPeriodUnit.public Integer getRetentionPeriodValue()
The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
public RetentionPeriod withRetentionPeriodValue(Integer retentionPeriodValue)
The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
retentionPeriodValue
- The period value for which the retention rule is to retain resources. The period is measured using the
unit specified for RetentionPeriodUnit.public void setRetentionPeriodUnit(String retentionPeriodUnit)
The unit of time in which the retention period is measured. Currently, only DAYS
is supported.
retentionPeriodUnit
- The unit of time in which the retention period is measured. Currently, only DAYS
is
supported.RetentionPeriodUnit
public String getRetentionPeriodUnit()
The unit of time in which the retention period is measured. Currently, only DAYS
is supported.
DAYS
is
supported.RetentionPeriodUnit
public RetentionPeriod withRetentionPeriodUnit(String retentionPeriodUnit)
The unit of time in which the retention period is measured. Currently, only DAYS
is supported.
retentionPeriodUnit
- The unit of time in which the retention period is measured. Currently, only DAYS
is
supported.RetentionPeriodUnit
public RetentionPeriod withRetentionPeriodUnit(RetentionPeriodUnit retentionPeriodUnit)
The unit of time in which the retention period is measured. Currently, only DAYS
is supported.
retentionPeriodUnit
- The unit of time in which the retention period is measured. Currently, only DAYS
is
supported.RetentionPeriodUnit
public String toString()
toString
in class Object
Object.toString()
public RetentionPeriod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.