Class PITPolicyRule
- java.lang.Object
-
- software.amazon.awssdk.services.drs.model.PITPolicyRule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PITPolicyRule.Builder,PITPolicyRule>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePITPolicyRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PITPolicyRule.Builderbuilder()Booleanenabled()Whether this rule is enabled or not.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Integerinterval()How often, in the chosen units, a snapshot should be taken.IntegerretentionDuration()The duration to retain a snapshot for, in the chosen units.LongruleID()The ID of the rule.List<SdkField<?>>sdkFields()static Class<? extends PITPolicyRule.Builder>serializableBuilderClass()PITPolicyRule.BuildertoBuilder()StringtoString()Returns a string representation of this object.PITPolicyRuleUnitsunits()The units used to measure the interval and retentionDuration.StringunitsAsString()The units used to measure the interval and retentionDuration.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
enabled
public final Boolean enabled()
Whether this rule is enabled or not.
- Returns:
- Whether this rule is enabled or not.
-
interval
public final Integer interval()
How often, in the chosen units, a snapshot should be taken.
- Returns:
- How often, in the chosen units, a snapshot should be taken.
-
retentionDuration
public final Integer retentionDuration()
The duration to retain a snapshot for, in the chosen units.
- Returns:
- The duration to retain a snapshot for, in the chosen units.
-
ruleID
public final Long ruleID()
The ID of the rule.
- Returns:
- The ID of the rule.
-
units
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,
unitswill returnPITPolicyRuleUnits.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitsAsString().- Returns:
- The units used to measure the interval and retentionDuration.
- See Also:
PITPolicyRuleUnits
-
unitsAsString
public 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,
unitswill returnPITPolicyRuleUnits.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitsAsString().- Returns:
- The units used to measure the interval and retentionDuration.
- See Also:
PITPolicyRuleUnits
-
toBuilder
public PITPolicyRule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PITPolicyRule.Builder,PITPolicyRule>
-
builder
public static PITPolicyRule.Builder builder()
-
serializableBuilderClass
public static Class<? extends PITPolicyRule.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-