@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRuleResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
CreateRuleResult() |
| Modifier and Type | Method and Description |
|---|---|
CreateRuleResult |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The retention rule description.
|
String |
getIdentifier()
The unique ID of 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 |
getStatus()
The state of the retention rule.
|
List<Tag> |
getTags()
Information about the tags assigned to 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 |
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 |
setStatus(String status)
The state of the retention rule.
|
void |
setTags(Collection<Tag> tags)
Information about the tags assigned to the retention rule.
|
String |
toString()
Returns a string representation of this object.
|
CreateRuleResult |
withDescription(String description)
The retention rule description.
|
CreateRuleResult |
withIdentifier(String identifier)
The unique ID of the retention rule.
|
CreateRuleResult |
withResourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
|
CreateRuleResult |
withResourceTags(ResourceTag... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
|
CreateRuleResult |
withResourceType(ResourceType resourceType)
The resource type retained by the retention rule.
|
CreateRuleResult |
withResourceType(String resourceType)
The resource type retained by the retention rule.
|
CreateRuleResult |
withRetentionPeriod(RetentionPeriod retentionPeriod) |
CreateRuleResult |
withStatus(RuleStatus status)
The state of the retention rule.
|
CreateRuleResult |
withStatus(String status)
The state of the retention rule.
|
CreateRuleResult |
withTags(Collection<Tag> tags)
Information about the tags assigned to the retention rule.
|
CreateRuleResult |
withTags(Tag... tags)
Information about the tags assigned to 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 CreateRuleResult withIdentifier(String identifier)
The unique ID of the retention rule.
identifier - The unique ID of the retention rule.public void setRetentionPeriod(RetentionPeriod retentionPeriod)
retentionPeriod - public RetentionPeriod getRetentionPeriod()
public CreateRuleResult withRetentionPeriod(RetentionPeriod retentionPeriod)
retentionPeriod - public void setDescription(String description)
The retention rule description.
description - The retention rule description.public String getDescription()
The retention rule description.
public CreateRuleResult withDescription(String description)
The retention rule description.
description - The retention rule description.public List<Tag> getTags()
Information about the tags assigned to the retention rule.
public void setTags(Collection<Tag> tags)
Information about the tags assigned to the retention rule.
tags - Information about the tags assigned to the retention rule.public CreateRuleResult withTags(Tag... tags)
Information about the tags assigned to the retention rule.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
existing values.
tags - Information about the tags assigned to the retention rule.public CreateRuleResult withTags(Collection<Tag> tags)
Information about the tags assigned to the retention rule.
tags - Information about the tags assigned to the retention rule.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 CreateRuleResult withResourceType(String resourceType)
The resource type retained by the retention rule.
resourceType - The resource type retained by the retention rule.ResourceTypepublic CreateRuleResult withResourceType(ResourceType resourceType)
The resource type retained by the retention rule.
resourceType - The resource type retained by the retention rule.ResourceTypepublic 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 CreateRuleResult 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 CreateRuleResult 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 CreateRuleResult 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 CreateRuleResult 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 String toString()
toString in class ObjectObject.toString()public CreateRuleResult clone()
Copyright © 2022. All rights reserved.