@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateRuleRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateRuleRequest |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A brief description for the retention rule.
|
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.
|
List<Tag> |
getTags()
Information about the tags to assign to the retention rule.
|
int |
hashCode() |
void |
setDescription(String description)
A brief description for the retention rule.
|
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.
|
void |
setTags(Collection<Tag> tags)
Information about the tags to assign to the retention rule.
|
String |
toString()
Returns a string representation of this object.
|
CreateRuleRequest |
withDescription(String description)
A brief description for the retention rule.
|
CreateRuleRequest |
withResourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags to use to identify resources that are to be retained by the retention rule.
|
CreateRuleRequest |
withResourceTags(ResourceTag... resourceTags)
Information about the resource tags to use to identify resources that are to be retained by the retention rule.
|
CreateRuleRequest |
withResourceType(ResourceType resourceType)
The resource type to be retained by the retention rule.
|
CreateRuleRequest |
withResourceType(String resourceType)
The resource type to be retained by the retention rule.
|
CreateRuleRequest |
withRetentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
|
CreateRuleRequest |
withTags(Collection<Tag> tags)
Information about the tags to assign to the retention rule.
|
CreateRuleRequest |
withTags(Tag... tags)
Information about the tags to assign to the retention rule.
|
addHandlerContext, copyBaseTo, 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, withSdkRequestTimeoutpublic 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 CreateRuleRequest 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)
A brief description for the retention rule.
description - A brief description for the retention rule.public String getDescription()
A brief description for the retention rule.
public CreateRuleRequest withDescription(String description)
A brief description for the retention rule.
description - A brief description for the retention rule.public List<Tag> getTags()
Information about the tags to assign to the retention rule.
public void setTags(Collection<Tag> tags)
Information about the tags to assign to the retention rule.
tags - Information about the tags to assign to the retention rule.public CreateRuleRequest withTags(Tag... tags)
Information about the tags to assign 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 to assign to the retention rule.public CreateRuleRequest withTags(Collection<Tag> tags)
Information about the tags to assign to the retention rule.
tags - Information about the tags to assign to the retention rule.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.ResourceTypepublic String getResourceType()
The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots are supported.
ResourceTypepublic CreateRuleRequest 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.ResourceTypepublic CreateRuleRequest 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.ResourceTypepublic 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 CreateRuleRequest 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 CreateRuleRequest 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 ObjectObject.toString()public CreateRuleRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2022. All rights reserved.