@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListRulesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
ListRulesRequest() |
Modifier and Type | Method and Description |
---|---|
ListRulesRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Integer |
getMaxResults()
The maximum number of results to return with a single call.
|
String |
getNextToken()
The token for the next page of results.
|
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.
|
int |
hashCode() |
void |
setMaxResults(Integer maxResults)
The maximum number of results to return with a single call.
|
void |
setNextToken(String nextToken)
The token for the next page of results.
|
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.
|
String |
toString()
Returns a string representation of this object.
|
ListRulesRequest |
withMaxResults(Integer maxResults)
The maximum number of results to return with a single call.
|
ListRulesRequest |
withNextToken(String nextToken)
The token for the next page of results.
|
ListRulesRequest |
withResourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
|
ListRulesRequest |
withResourceTags(ResourceTag... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
|
ListRulesRequest |
withResourceType(ResourceType resourceType)
The resource type retained by the retention rule.
|
ListRulesRequest |
withResourceType(String resourceType)
The resource type retained by the retention rule.
|
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 setMaxResults(Integer maxResults)
The maximum number of results to return with a single call. To retrieve the remaining results, make another call
with the returned NextToken
value.
maxResults
- The maximum number of results to return with a single call. To retrieve the remaining results, make
another call with the returned NextToken
value.public Integer getMaxResults()
The maximum number of results to return with a single call. To retrieve the remaining results, make another call
with the returned NextToken
value.
NextToken
value.public ListRulesRequest withMaxResults(Integer maxResults)
The maximum number of results to return with a single call. To retrieve the remaining results, make another call
with the returned NextToken
value.
maxResults
- The maximum number of results to return with a single call. To retrieve the remaining results, make
another call with the returned NextToken
value.public void setNextToken(String nextToken)
The token for the next page of results.
nextToken
- The token for the next page of results.public String getNextToken()
The token for the next page of results.
public ListRulesRequest withNextToken(String nextToken)
The token for the next page of results.
nextToken
- The token for the next page of results.public void setResourceType(String resourceType)
The resource type retained by the retention rule. Only retention rules that retain the specified resource type
are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that
retain snapshots, specify EBS_SNAPSHOT
. To list retention rules that retain EBS-backed AMIs, specify
EC2_IMAGE
.
resourceType
- The resource type retained by the retention rule. Only retention rules that retain the specified resource
type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention
rules that retain snapshots, specify EBS_SNAPSHOT
. To list retention rules that retain
EBS-backed AMIs, specify EC2_IMAGE
.ResourceType
public String getResourceType()
The resource type retained by the retention rule. Only retention rules that retain the specified resource type
are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that
retain snapshots, specify EBS_SNAPSHOT
. To list retention rules that retain EBS-backed AMIs, specify
EC2_IMAGE
.
EBS_SNAPSHOT
. To list retention rules that
retain EBS-backed AMIs, specify EC2_IMAGE
.ResourceType
public ListRulesRequest withResourceType(String resourceType)
The resource type retained by the retention rule. Only retention rules that retain the specified resource type
are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that
retain snapshots, specify EBS_SNAPSHOT
. To list retention rules that retain EBS-backed AMIs, specify
EC2_IMAGE
.
resourceType
- The resource type retained by the retention rule. Only retention rules that retain the specified resource
type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention
rules that retain snapshots, specify EBS_SNAPSHOT
. To list retention rules that retain
EBS-backed AMIs, specify EC2_IMAGE
.ResourceType
public ListRulesRequest withResourceType(ResourceType resourceType)
The resource type retained by the retention rule. Only retention rules that retain the specified resource type
are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that
retain snapshots, specify EBS_SNAPSHOT
. To list retention rules that retain EBS-backed AMIs, specify
EC2_IMAGE
.
resourceType
- The resource type retained by the retention rule. Only retention rules that retain the specified resource
type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention
rules that retain snapshots, specify EBS_SNAPSHOT
. To list retention rules that retain
EBS-backed AMIs, specify EC2_IMAGE
.ResourceType
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 ListRulesRequest 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 ListRulesRequest 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 String toString()
toString
in class Object
Object.toString()
public ListRulesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()