public class DescribeTagsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<DescribeTagsRequest>
Contains the parameters for DescribeTags.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Filter> |
filters
One or more filters.
|
private java.lang.Integer |
maxResults
The maximum number of results to return in a single call.
|
private java.lang.String |
nextToken
The token to retrieve the next page of results.
|
NOOP
Constructor and Description |
---|
DescribeTagsRequest()
Default constructor for DescribeTagsRequest object.
|
DescribeTagsRequest(java.util.List<Filter> filters)
Constructs a new DescribeTagsRequest object.
|
Modifier and Type | Method and Description |
---|---|
DescribeTagsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
Request<DescribeTagsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.util.List<Filter> |
getFilters()
One or more filters.
|
java.lang.Integer |
getMaxResults()
The maximum number of results to return in a single call.
|
java.lang.String |
getNextToken()
The token to retrieve the next page of results.
|
int |
hashCode() |
void |
setFilters(java.util.Collection<Filter> filters)
One or more filters.
|
void |
setMaxResults(java.lang.Integer maxResults)
The maximum number of results to return in a single call.
|
void |
setNextToken(java.lang.String nextToken)
The token to retrieve the next page of results.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeTagsRequest |
withFilters(java.util.Collection<Filter> filters)
One or more filters.
|
DescribeTagsRequest |
withFilters(Filter... filters)
One or more filters.
|
DescribeTagsRequest |
withMaxResults(java.lang.Integer maxResults)
The maximum number of results to return in a single call.
|
DescribeTagsRequest |
withNextToken(java.lang.String nextToken)
The token to retrieve the next page of results.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private SdkInternalList<Filter> filters
One or more filters.
key
- The tag key.
resource-id
- The resource ID.
resource-type
- The resource type (
customer-gateway
| dhcp-options
|
image
| instance
|
internet-gateway
| network-acl
|
network-interface
| reserved-instances
|
route-table
| security-group
|
snapshot
| spot-instances-request
|
subnet
| volume
| vpc
|
vpn-connection
| vpn-gateway
).
value
- The tag value.
private java.lang.Integer maxResults
The maximum number of results to return in a single call. This value can
be between 5 and 1000. To retrieve the remaining results, make another
call with the returned NextToken
value.
private java.lang.String nextToken
The token to retrieve the next page of results.
public DescribeTagsRequest()
public DescribeTagsRequest(java.util.List<Filter> filters)
filters
- One or more filters.
key
- The tag key.
resource-id
- The resource ID.
resource-type
- The resource type (
customer-gateway
| dhcp-options
|
image
| instance
|
internet-gateway
| network-acl
|
network-interface
| reserved-instances
|
route-table
| security-group
|
snapshot
| spot-instances-request
|
subnet
| volume
| vpc
|
vpn-connection
| vpn-gateway
).
value
- The tag value.
public java.util.List<Filter> getFilters()
One or more filters.
key
- The tag key.
resource-id
- The resource ID.
resource-type
- The resource type (
customer-gateway
| dhcp-options
|
image
| instance
|
internet-gateway
| network-acl
|
network-interface
| reserved-instances
|
route-table
| security-group
|
snapshot
| spot-instances-request
|
subnet
| volume
| vpc
|
vpn-connection
| vpn-gateway
).
value
- The tag value.
key
- The tag key.
resource-id
- The resource ID.
resource-type
- The resource type (
customer-gateway
| dhcp-options
|
image
| instance
|
internet-gateway
| network-acl
|
network-interface
| reserved-instances
| route-table
| security-group
|
snapshot
| spot-instances-request
|
subnet
| volume
| vpc
|
vpn-connection
| vpn-gateway
).
value
- The tag value.
public void setFilters(java.util.Collection<Filter> filters)
One or more filters.
key
- The tag key.
resource-id
- The resource ID.
resource-type
- The resource type (
customer-gateway
| dhcp-options
|
image
| instance
|
internet-gateway
| network-acl
|
network-interface
| reserved-instances
|
route-table
| security-group
|
snapshot
| spot-instances-request
|
subnet
| volume
| vpc
|
vpn-connection
| vpn-gateway
).
value
- The tag value.
filters
- One or more filters.
key
- The tag key.
resource-id
- The resource ID.
resource-type
- The resource type (
customer-gateway
| dhcp-options
|
image
| instance
|
internet-gateway
| network-acl
|
network-interface
| reserved-instances
|
route-table
| security-group
|
snapshot
| spot-instances-request
|
subnet
| volume
| vpc
|
vpn-connection
| vpn-gateway
).
value
- The tag value.
public DescribeTagsRequest withFilters(Filter... filters)
One or more filters.
key
- The tag key.
resource-id
- The resource ID.
resource-type
- The resource type (
customer-gateway
| dhcp-options
|
image
| instance
|
internet-gateway
| network-acl
|
network-interface
| reserved-instances
|
route-table
| security-group
|
snapshot
| spot-instances-request
|
subnet
| volume
| vpc
|
vpn-connection
| vpn-gateway
).
value
- The tag value.
NOTE: This method appends the values to the existing list (if
any). Use setFilters(java.util.Collection)
or
withFilters(java.util.Collection)
if you want to override the
existing values.
filters
- One or more filters.
key
- The tag key.
resource-id
- The resource ID.
resource-type
- The resource type (
customer-gateway
| dhcp-options
|
image
| instance
|
internet-gateway
| network-acl
|
network-interface
| reserved-instances
|
route-table
| security-group
|
snapshot
| spot-instances-request
|
subnet
| volume
| vpc
|
vpn-connection
| vpn-gateway
).
value
- The tag value.
public DescribeTagsRequest withFilters(java.util.Collection<Filter> filters)
One or more filters.
key
- The tag key.
resource-id
- The resource ID.
resource-type
- The resource type (
customer-gateway
| dhcp-options
|
image
| instance
|
internet-gateway
| network-acl
|
network-interface
| reserved-instances
|
route-table
| security-group
|
snapshot
| spot-instances-request
|
subnet
| volume
| vpc
|
vpn-connection
| vpn-gateway
).
value
- The tag value.
filters
- One or more filters.
key
- The tag key.
resource-id
- The resource ID.
resource-type
- The resource type (
customer-gateway
| dhcp-options
|
image
| instance
|
internet-gateway
| network-acl
|
network-interface
| reserved-instances
|
route-table
| security-group
|
snapshot
| spot-instances-request
|
subnet
| volume
| vpc
|
vpn-connection
| vpn-gateway
).
value
- The tag value.
public void setMaxResults(java.lang.Integer maxResults)
The maximum number of results to return in a single call. This value can
be between 5 and 1000. To retrieve the remaining results, make another
call with the returned NextToken
value.
maxResults
- The maximum number of results to return in a single call. This
value can be between 5 and 1000. To retrieve the remaining
results, make another call with the returned
NextToken
value.public java.lang.Integer getMaxResults()
The maximum number of results to return in a single call. This value can
be between 5 and 1000. To retrieve the remaining results, make another
call with the returned NextToken
value.
NextToken
value.public DescribeTagsRequest withMaxResults(java.lang.Integer maxResults)
The maximum number of results to return in a single call. This value can
be between 5 and 1000. To retrieve the remaining results, make another
call with the returned NextToken
value.
maxResults
- The maximum number of results to return in a single call. This
value can be between 5 and 1000. To retrieve the remaining
results, make another call with the returned
NextToken
value.public void setNextToken(java.lang.String nextToken)
The token to retrieve the next page of results.
nextToken
- The token to retrieve the next page of results.public java.lang.String getNextToken()
The token to retrieve the next page of results.
public DescribeTagsRequest withNextToken(java.lang.String nextToken)
The token to retrieve the next page of results.
nextToken
- The token to retrieve the next page of results.public Request<DescribeTagsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeTagsRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeTagsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()