@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FastRestoreRule extends Object implements Serializable, Cloneable, StructuredPojo
[Custom snapshot policies only] Specifies a rule for enabling fast snapshot restore for snapshots created by snapshot policies. You can enable fast snapshot restore based on either a count or a time interval.
Constructor and Description |
---|
FastRestoreRule() |
Modifier and Type | Method and Description |
---|---|
FastRestoreRule |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAvailabilityZones()
The Availability Zones in which to enable fast snapshot restore.
|
Integer |
getCount()
The number of snapshots to be enabled with fast snapshot restore.
|
Integer |
getInterval()
The amount of time to enable fast snapshot restore.
|
String |
getIntervalUnit()
The unit of time for enabling fast snapshot restore.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAvailabilityZones(Collection<String> availabilityZones)
The Availability Zones in which to enable fast snapshot restore.
|
void |
setCount(Integer count)
The number of snapshots to be enabled with fast snapshot restore.
|
void |
setInterval(Integer interval)
The amount of time to enable fast snapshot restore.
|
void |
setIntervalUnit(String intervalUnit)
The unit of time for enabling fast snapshot restore.
|
String |
toString()
Returns a string representation of this object.
|
FastRestoreRule |
withAvailabilityZones(Collection<String> availabilityZones)
The Availability Zones in which to enable fast snapshot restore.
|
FastRestoreRule |
withAvailabilityZones(String... availabilityZones)
The Availability Zones in which to enable fast snapshot restore.
|
FastRestoreRule |
withCount(Integer count)
The number of snapshots to be enabled with fast snapshot restore.
|
FastRestoreRule |
withInterval(Integer interval)
The amount of time to enable fast snapshot restore.
|
FastRestoreRule |
withIntervalUnit(RetentionIntervalUnitValues intervalUnit)
The unit of time for enabling fast snapshot restore.
|
FastRestoreRule |
withIntervalUnit(String intervalUnit)
The unit of time for enabling fast snapshot restore.
|
public void setCount(Integer count)
The number of snapshots to be enabled with fast snapshot restore.
count
- The number of snapshots to be enabled with fast snapshot restore.public Integer getCount()
The number of snapshots to be enabled with fast snapshot restore.
public FastRestoreRule withCount(Integer count)
The number of snapshots to be enabled with fast snapshot restore.
count
- The number of snapshots to be enabled with fast snapshot restore.public void setInterval(Integer interval)
The amount of time to enable fast snapshot restore. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
interval
- The amount of time to enable fast snapshot restore. The maximum is 100 years. This is equivalent to 1200
months, 5200 weeks, or 36500 days.public Integer getInterval()
The amount of time to enable fast snapshot restore. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
public FastRestoreRule withInterval(Integer interval)
The amount of time to enable fast snapshot restore. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
interval
- The amount of time to enable fast snapshot restore. The maximum is 100 years. This is equivalent to 1200
months, 5200 weeks, or 36500 days.public void setIntervalUnit(String intervalUnit)
The unit of time for enabling fast snapshot restore.
intervalUnit
- The unit of time for enabling fast snapshot restore.RetentionIntervalUnitValues
public String getIntervalUnit()
The unit of time for enabling fast snapshot restore.
RetentionIntervalUnitValues
public FastRestoreRule withIntervalUnit(String intervalUnit)
The unit of time for enabling fast snapshot restore.
intervalUnit
- The unit of time for enabling fast snapshot restore.RetentionIntervalUnitValues
public FastRestoreRule withIntervalUnit(RetentionIntervalUnitValues intervalUnit)
The unit of time for enabling fast snapshot restore.
intervalUnit
- The unit of time for enabling fast snapshot restore.RetentionIntervalUnitValues
public List<String> getAvailabilityZones()
The Availability Zones in which to enable fast snapshot restore.
public void setAvailabilityZones(Collection<String> availabilityZones)
The Availability Zones in which to enable fast snapshot restore.
availabilityZones
- The Availability Zones in which to enable fast snapshot restore.public FastRestoreRule withAvailabilityZones(String... availabilityZones)
The Availability Zones in which to enable fast snapshot restore.
NOTE: This method appends the values to the existing list (if any). Use
setAvailabilityZones(java.util.Collection)
or withAvailabilityZones(java.util.Collection)
if
you want to override the existing values.
availabilityZones
- The Availability Zones in which to enable fast snapshot restore.public FastRestoreRule withAvailabilityZones(Collection<String> availabilityZones)
The Availability Zones in which to enable fast snapshot restore.
availabilityZones
- The Availability Zones in which to enable fast snapshot restore.public String toString()
toString
in class Object
Object.toString()
public FastRestoreRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.