@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateRuleRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateRuleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
The retention rule description.
|
String |
getIdentifier()
The unique ID of the retention rule to update.
|
List<ResourceTag> |
getResourceTags()
Information about the resource tags to use to identify resources that are to be retained by the retention rule.
|
String |
getResourceType()
The resource type to be retained by the retention rule.
|
RetentionPeriod |
getRetentionPeriod()
Information about the retention period for which the retention rule is to retain resources.
|
int |
hashCode() |
void |
setDescription(String description)
The retention rule description.
|
void |
setIdentifier(String identifier)
The unique ID of the retention rule to update.
|
void |
setResourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags to use to identify resources that are to be retained by the retention rule.
|
void |
setResourceType(String resourceType)
The resource type to be retained by the retention rule.
|
void |
setRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
|
String |
toString()
Returns a string representation of this object.
|
UpdateRuleRequest |
withDescription(String description)
The retention rule description.
|
UpdateRuleRequest |
withIdentifier(String identifier)
The unique ID of the retention rule to update.
|
UpdateRuleRequest |
withResourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags to use to identify resources that are to be retained by the retention rule.
|
UpdateRuleRequest |
withResourceTags(ResourceTag... resourceTags)
Information about the resource tags to use to identify resources that are to be retained by the retention rule.
|
UpdateRuleRequest |
withResourceType(ResourceType resourceType)
The resource type to be retained by the retention rule.
|
UpdateRuleRequest |
withResourceType(String resourceType)
The resource type to be retained by the retention rule.
|
UpdateRuleRequest |
withRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setIdentifier(String identifier)
The unique ID of the retention rule to update.
identifier
- The unique ID of the retention rule to update.public String getIdentifier()
The unique ID of the retention rule to update.
public UpdateRuleRequest withIdentifier(String identifier)
The unique ID of the retention rule to update.
identifier
- The unique ID of the retention rule to update.public void setRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
retentionPeriod
- Information about the retention period for which the retention rule is to retain resources.public RetentionPeriod getRetentionPeriod()
Information about the retention period for which the retention rule is to retain resources.
public UpdateRuleRequest withRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
retentionPeriod
- Information about the retention period for which the retention rule is to retain resources.public void setDescription(String description)
The retention rule description.
description
- The retention rule description.public String getDescription()
The retention rule description.
public UpdateRuleRequest withDescription(String description)
The retention rule description.
description
- The retention rule description.public void setResourceType(String resourceType)
The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots are supported.
resourceType
- The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots are
supported.ResourceType
public String getResourceType()
The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots are supported.
ResourceType
public UpdateRuleRequest withResourceType(String resourceType)
The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots are supported.
resourceType
- The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots are
supported.ResourceType
public UpdateRuleRequest withResourceType(ResourceType resourceType)
The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots are supported.
resourceType
- The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots are
supported.ResourceType
public List<ResourceTag> getResourceTags()
Information about the resource tags to use to identify resources that are to be retained by the retention rule. The retention rule retains only deleted snapshots that have one or more of the specified tag key and value pairs. If a snapshot is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
You can add the same tag key and value pair to a maximum or five retention rules.
public void setResourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags to use to identify resources that are to be retained by the retention rule. The retention rule retains only deleted snapshots that have one or more of the specified tag key and value pairs. If a snapshot is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
resourceTags
- Information about the resource tags to use to identify resources that are to be retained by the retention
rule. The retention rule retains only deleted snapshots that have one or more of the specified tag key and
value pairs. If a snapshot is deleted, but it does not have any of the specified tag key and value pairs,
it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
public UpdateRuleRequest withResourceTags(ResourceTag... resourceTags)
Information about the resource tags to use to identify resources that are to be retained by the retention rule. The retention rule retains only deleted snapshots that have one or more of the specified tag key and value pairs. If a snapshot is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
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 to use to identify resources that are to be retained by the retention
rule. The retention rule retains only deleted snapshots that have one or more of the specified tag key and
value pairs. If a snapshot is deleted, but it does not have any of the specified tag key and value pairs,
it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
public UpdateRuleRequest withResourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags to use to identify resources that are to be retained by the retention rule. The retention rule retains only deleted snapshots that have one or more of the specified tag key and value pairs. If a snapshot is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
resourceTags
- Information about the resource tags to use to identify resources that are to be retained by the retention
rule. The retention rule retains only deleted snapshots that have one or more of the specified tag key and
value pairs. If a snapshot is deleted, but it does not have any of the specified tag key and value pairs,
it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
public String toString()
toString
in class Object
Object.toString()
public UpdateRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()