@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetentionConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
An object with the name of the retention configuration and the retention period in days. The object stores the configuration for data retention in Config.
Constructor and Description |
---|
RetentionConfiguration() |
Modifier and Type | Method and Description |
---|---|
RetentionConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the retention configuration object.
|
Integer |
getRetentionPeriodInDays()
Number of days Config stores your historical information.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the retention configuration object.
|
void |
setRetentionPeriodInDays(Integer retentionPeriodInDays)
Number of days Config stores your historical information.
|
String |
toString()
Returns a string representation of this object.
|
RetentionConfiguration |
withName(String name)
The name of the retention configuration object.
|
RetentionConfiguration |
withRetentionPeriodInDays(Integer retentionPeriodInDays)
Number of days Config stores your historical information.
|
public void setName(String name)
The name of the retention configuration object.
name
- The name of the retention configuration object.public String getName()
The name of the retention configuration object.
public RetentionConfiguration withName(String name)
The name of the retention configuration object.
name
- The name of the retention configuration object.public void setRetentionPeriodInDays(Integer retentionPeriodInDays)
Number of days Config stores your historical information.
Currently, only applicable to the configuration item history.
retentionPeriodInDays
- Number of days Config stores your historical information. Currently, only applicable to the configuration item history.
public Integer getRetentionPeriodInDays()
Number of days Config stores your historical information.
Currently, only applicable to the configuration item history.
Currently, only applicable to the configuration item history.
public RetentionConfiguration withRetentionPeriodInDays(Integer retentionPeriodInDays)
Number of days Config stores your historical information.
Currently, only applicable to the configuration item history.
retentionPeriodInDays
- Number of days Config stores your historical information. Currently, only applicable to the configuration item history.
public String toString()
toString
in class Object
Object.toString()
public RetentionConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.