Class CfnLifecyclePolicy.RetainRuleProperty.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.RetainRuleProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnLifecyclePolicy.RetainRuleProperty
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnLifecyclePolicy.RetainRuleProperty
@Stability(Stable)
@Internal
public static final class CfnLifecyclePolicy.RetainRuleProperty.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements CfnLifecyclePolicy.RetainRuleProperty
An implementation for
CfnLifecyclePolicy.RetainRuleProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.RetainRuleProperty
CfnLifecyclePolicy.RetainRuleProperty.Builder, CfnLifecyclePolicy.RetainRuleProperty.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theCfnLifecyclePolicy.RetainRuleProperty.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final Number
getCount()
The number of snapshots to retain for each volume, up to a maximum of 1000.final Number
The amount of time to retain each snapshot.final String
The unit of time for time-based retention.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnLifecyclePolicy.RetainRuleProperty.Builder
.
-
-
Method Details
-
getCount
Description copied from interface:CfnLifecyclePolicy.RetainRuleProperty
The number of snapshots to retain for each volume, up to a maximum of 1000.For example if you want to retain a maximum of three snapshots, specify
3
. When the fourth snapshot is created, the oldest retained snapshot is deleted, or it is moved to the archive tier if you have specified an ArchiveRule .- Specified by:
getCount
in interfaceCfnLifecyclePolicy.RetainRuleProperty
- See Also:
-
getInterval
Description copied from interface:CfnLifecyclePolicy.RetainRuleProperty
The amount of time to retain each snapshot.The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
- Specified by:
getInterval
in interfaceCfnLifecyclePolicy.RetainRuleProperty
- See Also:
-
getIntervalUnit
Description copied from interface:CfnLifecyclePolicy.RetainRuleProperty
The unit of time for time-based retention.For example, to retain snapshots for 3 months, specify
Interval=3
andIntervalUnit=MONTHS
. Once the snapshot has been retained for 3 months, it is deleted, or it is moved to the archive tier if you have specified an ArchiveRule .- Specified by:
getIntervalUnit
in interfaceCfnLifecyclePolicy.RetainRuleProperty
- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-