@Generated(value="software.amazon.awssdk:codegen") public final class PITPolicyRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PITPolicyRule.Builder,PITPolicyRule>
A rule in the Point in Time (PIT) policy representing when to take snapshots and how long to retain them for.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PITPolicyRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PITPolicyRule.Builder |
builder() |
Boolean |
enabled()
Whether this rule is enabled or not.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
interval()
How often, in the chosen units, a snapshot should be taken.
|
Integer |
retentionDuration()
The duration to retain a snapshot for, in the chosen units.
|
Long |
ruleID()
The ID of the rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PITPolicyRule.Builder> |
serializableBuilderClass() |
PITPolicyRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PITPolicyRuleUnits |
units()
The units used to measure the interval and retentionDuration.
|
String |
unitsAsString()
The units used to measure the interval and retentionDuration.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean enabled()
Whether this rule is enabled or not.
public final Integer interval()
How often, in the chosen units, a snapshot should be taken.
public final Integer retentionDuration()
The duration to retain a snapshot for, in the chosen units.
public final Long ruleID()
The ID of the rule.
public final PITPolicyRuleUnits units()
The units used to measure the interval and retentionDuration.
If the service returns an enum value that is not available in the current SDK version, units will return
PITPolicyRuleUnits.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitsAsString().
PITPolicyRuleUnitspublic final String unitsAsString()
The units used to measure the interval and retentionDuration.
If the service returns an enum value that is not available in the current SDK version, units will return
PITPolicyRuleUnits.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitsAsString().
PITPolicyRuleUnitspublic PITPolicyRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PITPolicyRule.Builder,PITPolicyRule>public static PITPolicyRule.Builder builder()
public static Class<? extends PITPolicyRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.