@Generated(value="software.amazon.awssdk:codegen") public final class RuleSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RuleSummary.Builder,RuleSummary>
Information about a Recycle Bin retention rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RuleSummary.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RuleSummary.Builder |
builder() |
String |
description()
The retention rule description.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
identifier()
The unique ID of the retention rule.
|
LockState |
lockState()
The lock state for the retention rule.
|
String |
lockStateAsString()
The lock state for the retention rule.
|
RetentionPeriod |
retentionPeriod()
Information about the retention period for which the retention rule is to retain resources.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RuleSummary.Builder> |
serializableBuilderClass() |
RuleSummary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String identifier()
The unique ID of the retention rule.
public final String description()
The retention rule description.
public final RetentionPeriod retentionPeriod()
Information about the retention period for which the retention rule is to retain resources.
public final LockState lockState()
The lock state for the retention rule.
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock delay
period. The retention rule can be modified or deleted only after the unlock delay period has expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the
required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked, it can
transition between the locked and unlocked states only; it can never transition back to
null.
If the service returns an enum value that is not available in the current SDK version, lockState will
return LockState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
lockStateAsString().
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock
delay period. The retention rule can be modified or deleted only after the unlock delay period has
expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user with
the required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked, it
can transition between the locked and unlocked states only; it can never
transition back to null.
LockStatepublic final String lockStateAsString()
The lock state for the retention rule.
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock delay
period. The retention rule can be modified or deleted only after the unlock delay period has expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the
required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked, it can
transition between the locked and unlocked states only; it can never transition back to
null.
If the service returns an enum value that is not available in the current SDK version, lockState will
return LockState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
lockStateAsString().
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock
delay period. The retention rule can be modified or deleted only after the unlock delay period has
expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user with
the required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked, it
can transition between the locked and unlocked states only; it can never
transition back to null.
LockStatepublic RuleSummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RuleSummary.Builder,RuleSummary>public static RuleSummary.Builder builder()
public static Class<? extends RuleSummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.