@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetRuleResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
GetRuleResult() |
| Modifier and Type | Method and Description |
|---|---|
GetRuleResult |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The description assigned to the retention rule.
|
String |
getIdentifier()
The unique ID of the retention rule.
|
List<ResourceTag> |
getResourceTags()
The resource tags used to identify resources that are to be retained by the retention rule.
|
String |
getResourceType()
The resource type retained by the retention rule.
|
RetentionPeriod |
getRetentionPeriod()
Information about the period for which the retention rule retains resources.
|
String |
getStatus()
The state of the retention rule.
|
int |
hashCode() |
void |
setDescription(String description)
The description assigned to the retention rule.
|
void |
setIdentifier(String identifier)
The unique ID of the retention rule.
|
void |
setResourceTags(Collection<ResourceTag> resourceTags)
The resource tags used to identify resources that are to be retained by the retention rule.
|
void |
setResourceType(String resourceType)
The resource type retained by the retention rule.
|
void |
setRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the period for which the retention rule retains resources.
|
void |
setStatus(String status)
The state of the retention rule.
|
String |
toString()
Returns a string representation of this object.
|
GetRuleResult |
withDescription(String description)
The description assigned to the retention rule.
|
GetRuleResult |
withIdentifier(String identifier)
The unique ID of the retention rule.
|
GetRuleResult |
withResourceTags(Collection<ResourceTag> resourceTags)
The resource tags used to identify resources that are to be retained by the retention rule.
|
GetRuleResult |
withResourceTags(ResourceTag... resourceTags)
The resource tags used to identify resources that are to be retained by the retention rule.
|
GetRuleResult |
withResourceType(ResourceType resourceType)
The resource type retained by the retention rule.
|
GetRuleResult |
withResourceType(String resourceType)
The resource type retained by the retention rule.
|
GetRuleResult |
withRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the period for which the retention rule retains resources.
|
GetRuleResult |
withStatus(RuleStatus status)
The state of the retention rule.
|
GetRuleResult |
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 GetRuleResult withIdentifier(String identifier)
The unique ID of the retention rule.
identifier - The unique ID of the retention rule.public void setDescription(String description)
The description assigned to the retention rule.
description - The description assigned to the retention rule.public String getDescription()
The description assigned to the retention rule.
public GetRuleResult withDescription(String description)
The description assigned to the retention rule.
description - The description assigned to the retention rule.public void setResourceType(String resourceType)
The resource type retained by the retention rule. Currently, only Amazon EBS snapshots are supported.
resourceType - The resource type retained by the retention rule. Currently, only Amazon EBS snapshots are supported.ResourceTypepublic String getResourceType()
The resource type retained by the retention rule. Currently, only Amazon EBS snapshots are supported.
ResourceTypepublic GetRuleResult withResourceType(String resourceType)
The resource type retained by the retention rule. Currently, only Amazon EBS snapshots are supported.
resourceType - The resource type retained by the retention rule. Currently, only Amazon EBS snapshots are supported.ResourceTypepublic GetRuleResult withResourceType(ResourceType resourceType)
The resource type retained by the retention rule. Currently, only Amazon EBS snapshots are supported.
resourceType - The resource type retained by the retention rule. Currently, only Amazon EBS snapshots are supported.ResourceTypepublic void setRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the period for which the retention rule retains resources.
retentionPeriod - Information about the period for which the retention rule retains resources.public RetentionPeriod getRetentionPeriod()
Information about the period for which the retention rule retains resources.
public GetRuleResult withRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the period for which the retention rule retains resources.
retentionPeriod - Information about the period for which the retention rule retains resources.public List<ResourceTag> getResourceTags()
The resource tags used to identify resources that are to be retained by the retention rule.
public void setResourceTags(Collection<ResourceTag> resourceTags)
The resource tags used to identify resources that are to be retained by the retention rule.
resourceTags - The resource tags used to identify resources that are to be retained by the retention rule.public GetRuleResult withResourceTags(ResourceTag... resourceTags)
The resource tags used to identify resources that are to be 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 - The resource tags used to identify resources that are to be retained by the retention rule.public GetRuleResult withResourceTags(Collection<ResourceTag> resourceTags)
The resource tags used to identify resources that are to be retained by the retention rule.
resourceTags - The resource tags used to identify resources that are to be 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
snapshots.
status - The state of the retention rule. Only retention rules that are in the available state retain
snapshots.RuleStatuspublic String getStatus()
The state of the retention rule. Only retention rules that are in the available state retain
snapshots.
available state retain
snapshots.RuleStatuspublic GetRuleResult withStatus(String status)
The state of the retention rule. Only retention rules that are in the available state retain
snapshots.
status - The state of the retention rule. Only retention rules that are in the available state retain
snapshots.RuleStatuspublic GetRuleResult withStatus(RuleStatus status)
The state of the retention rule. Only retention rules that are in the available state retain
snapshots.
status - The state of the retention rule. Only retention rules that are in the available state retain
snapshots.RuleStatuspublic String toString()
toString in class ObjectObject.toString()public GetRuleResult clone()
Copyright © 2022. All rights reserved.