@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BackupRetentionPolicy extends Object implements Serializable, Cloneable, StructuredPojo
A policy that defines the number of days to retain backups.
Constructor and Description |
---|
BackupRetentionPolicy() |
Modifier and Type | Method and Description |
---|---|
BackupRetentionPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getType()
The type of backup retention policy.
|
String |
getValue()
Use a value between 7 - 379.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setType(String type)
The type of backup retention policy.
|
void |
setValue(String value)
Use a value between 7 - 379.
|
String |
toString()
Returns a string representation of this object.
|
BackupRetentionPolicy |
withType(BackupRetentionType type)
The type of backup retention policy.
|
BackupRetentionPolicy |
withType(String type)
The type of backup retention policy.
|
BackupRetentionPolicy |
withValue(String value)
Use a value between 7 - 379.
|
public void setType(String type)
The type of backup retention policy. For the DAYS
type, the value is the number of days to retain
backups.
type
- The type of backup retention policy. For the DAYS
type, the value is the number of days to
retain backups.BackupRetentionType
public String getType()
The type of backup retention policy. For the DAYS
type, the value is the number of days to retain
backups.
DAYS
type, the value is the number of days to
retain backups.BackupRetentionType
public BackupRetentionPolicy withType(String type)
The type of backup retention policy. For the DAYS
type, the value is the number of days to retain
backups.
type
- The type of backup retention policy. For the DAYS
type, the value is the number of days to
retain backups.BackupRetentionType
public BackupRetentionPolicy withType(BackupRetentionType type)
The type of backup retention policy. For the DAYS
type, the value is the number of days to retain
backups.
type
- The type of backup retention policy. For the DAYS
type, the value is the number of days to
retain backups.BackupRetentionType
public void setValue(String value)
Use a value between 7 - 379.
value
- Use a value between 7 - 379.public String getValue()
Use a value between 7 - 379.
public BackupRetentionPolicy withValue(String value)
Use a value between 7 - 379.
value
- Use a value between 7 - 379.public String toString()
toString
in class Object
Object.toString()
public BackupRetentionPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.