@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UnlockRuleResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description | 
|---|
| UnlockRuleResult() | 
| Modifier and Type | Method and Description | 
|---|---|
| UnlockRuleResult | clone() | 
| boolean | equals(Object obj) | 
| String | getDescription()
 The retention rule description. | 
| String | getIdentifier()
 The unique ID of the retention rule. | 
| LockConfiguration | getLockConfiguration()
 Information about the retention rule lock configuration. | 
| Date | getLockEndTime()
 The date and time at which the unlock delay is set to expire. | 
| String | getLockState()
 The lock state for the retention rule. | 
| List<ResourceTag> | getResourceTags()
 Information about the resource tags used to identify resources that are retained by the retention rule. | 
| String | getResourceType()
 The resource type retained by the retention rule. | 
| RetentionPeriod | getRetentionPeriod() | 
| String | getRuleArn()
 The Amazon Resource Name (ARN) of the retention rule. | 
| String | getStatus()
 The state of the retention rule. | 
| int | hashCode() | 
| void | setDescription(String description)
 The retention rule description. | 
| void | setIdentifier(String identifier)
 The unique ID of the retention rule. | 
| void | setLockConfiguration(LockConfiguration lockConfiguration)
 Information about the retention rule lock configuration. | 
| void | setLockEndTime(Date lockEndTime)
 The date and time at which the unlock delay is set to expire. | 
| void | setLockState(String lockState)
 The lock state for the retention rule. | 
| void | setResourceTags(Collection<ResourceTag> resourceTags)
 Information about the resource tags used to identify resources that are retained by the retention rule. | 
| void | setResourceType(String resourceType)
 The resource type retained by the retention rule. | 
| void | setRetentionPeriod(RetentionPeriod retentionPeriod) | 
| void | setRuleArn(String ruleArn)
 The Amazon Resource Name (ARN) of the retention rule. | 
| void | setStatus(String status)
 The state of the retention rule. | 
| String | toString()Returns a string representation of this object. | 
| UnlockRuleResult | withDescription(String description)
 The retention rule description. | 
| UnlockRuleResult | withIdentifier(String identifier)
 The unique ID of the retention rule. | 
| UnlockRuleResult | withLockConfiguration(LockConfiguration lockConfiguration)
 Information about the retention rule lock configuration. | 
| UnlockRuleResult | withLockEndTime(Date lockEndTime)
 The date and time at which the unlock delay is set to expire. | 
| UnlockRuleResult | withLockState(LockState lockState)
 The lock state for the retention rule. | 
| UnlockRuleResult | withLockState(String lockState)
 The lock state for the retention rule. | 
| UnlockRuleResult | withResourceTags(Collection<ResourceTag> resourceTags)
 Information about the resource tags used to identify resources that are retained by the retention rule. | 
| UnlockRuleResult | withResourceTags(ResourceTag... resourceTags)
 Information about the resource tags used to identify resources that are retained by the retention rule. | 
| UnlockRuleResult | withResourceType(ResourceType resourceType)
 The resource type retained by the retention rule. | 
| UnlockRuleResult | withResourceType(String resourceType)
 The resource type retained by the retention rule. | 
| UnlockRuleResult | withRetentionPeriod(RetentionPeriod retentionPeriod) | 
| UnlockRuleResult | withRuleArn(String ruleArn)
 The Amazon Resource Name (ARN) of the retention rule. | 
| UnlockRuleResult | withStatus(RuleStatus status)
 The state of the retention rule. | 
| UnlockRuleResult | withStatus(String status)
 The state of the retention rule. | 
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setIdentifier(String identifier)
The unique ID of the retention rule.
identifier - The unique ID of the retention rule.public String getIdentifier()
The unique ID of the retention rule.
public UnlockRuleResult withIdentifier(String identifier)
The unique ID of the retention rule.
identifier - The unique ID of the retention rule.public void setDescription(String description)
The retention rule description.
description - The retention rule description.public String getDescription()
The retention rule description.
public UnlockRuleResult withDescription(String description)
The retention rule description.
description - The retention rule description.public void setResourceType(String resourceType)
The resource type retained by the retention rule.
resourceType - The resource type retained by the retention rule.ResourceTypepublic String getResourceType()
The resource type retained by the retention rule.
ResourceTypepublic UnlockRuleResult withResourceType(String resourceType)
The resource type retained by the retention rule.
resourceType - The resource type retained by the retention rule.ResourceTypepublic UnlockRuleResult withResourceType(ResourceType resourceType)
The resource type retained by the retention rule.
resourceType - The resource type retained by the retention rule.ResourceTypepublic void setRetentionPeriod(RetentionPeriod retentionPeriod)
retentionPeriod - public RetentionPeriod getRetentionPeriod()
public UnlockRuleResult withRetentionPeriod(RetentionPeriod retentionPeriod)
retentionPeriod - public List<ResourceTag> getResourceTags()
Information about the resource tags used to identify resources that are retained by the retention rule.
public void setResourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
resourceTags - Information about the resource tags used to identify resources that are retained by the retention rule.public UnlockRuleResult withResourceTags(ResourceTag... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
 NOTE: This method appends the values to the existing list (if any). Use
 setResourceTags(java.util.Collection) or withResourceTags(java.util.Collection) if you want to
 override the existing values.
 
resourceTags - Information about the resource tags used to identify resources that are retained by the retention rule.public UnlockRuleResult withResourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
resourceTags - Information about the resource tags used to identify resources that are retained by the retention rule.public void setStatus(String status)
 The state of the retention rule. Only retention rules that are in the available state retain
 resources.
 
status - The state of the retention rule. Only retention rules that are in the available state retain
        resources.RuleStatuspublic String getStatus()
 The state of the retention rule. Only retention rules that are in the available state retain
 resources.
 
available state retain
         resources.RuleStatuspublic UnlockRuleResult withStatus(String status)
 The state of the retention rule. Only retention rules that are in the available state retain
 resources.
 
status - The state of the retention rule. Only retention rules that are in the available state retain
        resources.RuleStatuspublic UnlockRuleResult withStatus(RuleStatus status)
 The state of the retention rule. Only retention rules that are in the available state retain
 resources.
 
status - The state of the retention rule. Only retention rules that are in the available state retain
        resources.RuleStatuspublic void setLockConfiguration(LockConfiguration lockConfiguration)
Information about the retention rule lock configuration.
lockConfiguration - Information about the retention rule lock configuration.public LockConfiguration getLockConfiguration()
Information about the retention rule lock configuration.
public UnlockRuleResult withLockConfiguration(LockConfiguration lockConfiguration)
Information about the retention rule lock configuration.
lockConfiguration - Information about the retention rule lock configuration.public void setLockState(String 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.
 
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.
        
LockStatepublic String getLockState()
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.
 
         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 UnlockRuleResult withLockState(String 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.
 
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.
        
LockStatepublic UnlockRuleResult withLockState(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.
 
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.
        
LockStatepublic void setLockEndTime(Date lockEndTime)
The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
lockEndTime - The date and time at which the unlock delay is set to expire. Only returned for retention rules that have
        been unlocked and that are still within the unlock delay period.public Date getLockEndTime()
The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
public UnlockRuleResult withLockEndTime(Date lockEndTime)
The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
lockEndTime - The date and time at which the unlock delay is set to expire. Only returned for retention rules that have
        been unlocked and that are still within the unlock delay period.public void setRuleArn(String ruleArn)
The Amazon Resource Name (ARN) of the retention rule.
ruleArn - The Amazon Resource Name (ARN) of the retention rule.public String getRuleArn()
The Amazon Resource Name (ARN) of the retention rule.
public UnlockRuleResult withRuleArn(String ruleArn)
The Amazon Resource Name (ARN) of the retention rule.
ruleArn - The Amazon Resource Name (ARN) of the retention rule.public String toString()
toString in class ObjectObject.toString()public UnlockRuleResult clone()