@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PITPolicyRule extends Object implements Serializable, Cloneable, StructuredPojo
A rule in the Point in Time (PIT) policy representing when to take snapshots and how long to retain them for.
Constructor and Description |
---|
PITPolicyRule() |
Modifier and Type | Method and Description |
---|---|
PITPolicyRule |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnabled()
Whether this rule is enabled or not.
|
Integer |
getInterval()
How often, in the chosen units, a snapshot should be taken.
|
Integer |
getRetentionDuration()
The duration to retain a snapshot for, in the chosen units.
|
Long |
getRuleID()
The ID of the rule.
|
String |
getUnits()
The units used to measure the interval and retentionDuration.
|
int |
hashCode() |
Boolean |
isEnabled()
Whether this rule is enabled or not.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEnabled(Boolean enabled)
Whether this rule is enabled or not.
|
void |
setInterval(Integer interval)
How often, in the chosen units, a snapshot should be taken.
|
void |
setRetentionDuration(Integer retentionDuration)
The duration to retain a snapshot for, in the chosen units.
|
void |
setRuleID(Long ruleID)
The ID of the rule.
|
void |
setUnits(String units)
The units used to measure the interval and retentionDuration.
|
String |
toString()
Returns a string representation of this object.
|
PITPolicyRule |
withEnabled(Boolean enabled)
Whether this rule is enabled or not.
|
PITPolicyRule |
withInterval(Integer interval)
How often, in the chosen units, a snapshot should be taken.
|
PITPolicyRule |
withRetentionDuration(Integer retentionDuration)
The duration to retain a snapshot for, in the chosen units.
|
PITPolicyRule |
withRuleID(Long ruleID)
The ID of the rule.
|
PITPolicyRule |
withUnits(PITPolicyRuleUnits units)
The units used to measure the interval and retentionDuration.
|
PITPolicyRule |
withUnits(String units)
The units used to measure the interval and retentionDuration.
|
public void setEnabled(Boolean enabled)
Whether this rule is enabled or not.
enabled
- Whether this rule is enabled or not.public Boolean getEnabled()
Whether this rule is enabled or not.
public PITPolicyRule withEnabled(Boolean enabled)
Whether this rule is enabled or not.
enabled
- Whether this rule is enabled or not.public Boolean isEnabled()
Whether this rule is enabled or not.
public void setInterval(Integer interval)
How often, in the chosen units, a snapshot should be taken.
interval
- How often, in the chosen units, a snapshot should be taken.public Integer getInterval()
How often, in the chosen units, a snapshot should be taken.
public PITPolicyRule withInterval(Integer interval)
How often, in the chosen units, a snapshot should be taken.
interval
- How often, in the chosen units, a snapshot should be taken.public void setRetentionDuration(Integer retentionDuration)
The duration to retain a snapshot for, in the chosen units.
retentionDuration
- The duration to retain a snapshot for, in the chosen units.public Integer getRetentionDuration()
The duration to retain a snapshot for, in the chosen units.
public PITPolicyRule withRetentionDuration(Integer retentionDuration)
The duration to retain a snapshot for, in the chosen units.
retentionDuration
- The duration to retain a snapshot for, in the chosen units.public void setRuleID(Long ruleID)
The ID of the rule.
ruleID
- The ID of the rule.public Long getRuleID()
The ID of the rule.
public PITPolicyRule withRuleID(Long ruleID)
The ID of the rule.
ruleID
- The ID of the rule.public void setUnits(String units)
The units used to measure the interval and retentionDuration.
units
- The units used to measure the interval and retentionDuration.PITPolicyRuleUnits
public String getUnits()
The units used to measure the interval and retentionDuration.
PITPolicyRuleUnits
public PITPolicyRule withUnits(String units)
The units used to measure the interval and retentionDuration.
units
- The units used to measure the interval and retentionDuration.PITPolicyRuleUnits
public PITPolicyRule withUnits(PITPolicyRuleUnits units)
The units used to measure the interval and retentionDuration.
units
- The units used to measure the interval and retentionDuration.PITPolicyRuleUnits
public String toString()
toString
in class Object
Object.toString()
public PITPolicyRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.