@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribePackagesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Container for request parameters to DescribePackage
operation.
NOOP
Constructor and Description |
---|
DescribePackagesRequest() |
Modifier and Type | Method and Description |
---|---|
DescribePackagesRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<DescribePackagesFilter> |
getFilters()
Only returns packages that match the
DescribePackagesFilterList values. |
Integer |
getMaxResults()
Limits results to a maximum number of packages.
|
String |
getNextToken()
Used for pagination.
|
int |
hashCode() |
void |
setFilters(Collection<DescribePackagesFilter> filters)
Only returns packages that match the
DescribePackagesFilterList values. |
void |
setMaxResults(Integer maxResults)
Limits results to a maximum number of packages.
|
void |
setNextToken(String nextToken)
Used for pagination.
|
String |
toString()
Returns a string representation of this object.
|
DescribePackagesRequest |
withFilters(Collection<DescribePackagesFilter> filters)
Only returns packages that match the
DescribePackagesFilterList values. |
DescribePackagesRequest |
withFilters(DescribePackagesFilter... filters)
Only returns packages that match the
DescribePackagesFilterList values. |
DescribePackagesRequest |
withMaxResults(Integer maxResults)
Limits results to a maximum number of packages.
|
DescribePackagesRequest |
withNextToken(String nextToken)
Used for pagination.
|
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 List<DescribePackagesFilter> getFilters()
Only returns packages that match the DescribePackagesFilterList
values.
DescribePackagesFilterList
values.public void setFilters(Collection<DescribePackagesFilter> filters)
Only returns packages that match the DescribePackagesFilterList
values.
filters
- Only returns packages that match the DescribePackagesFilterList
values.public DescribePackagesRequest withFilters(DescribePackagesFilter... filters)
Only returns packages that match the DescribePackagesFilterList
values.
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
- Only returns packages that match the DescribePackagesFilterList
values.public DescribePackagesRequest withFilters(Collection<DescribePackagesFilter> filters)
Only returns packages that match the DescribePackagesFilterList
values.
filters
- Only returns packages that match the DescribePackagesFilterList
values.public void setMaxResults(Integer maxResults)
Limits results to a maximum number of packages.
maxResults
- Limits results to a maximum number of packages.public Integer getMaxResults()
Limits results to a maximum number of packages.
public DescribePackagesRequest withMaxResults(Integer maxResults)
Limits results to a maximum number of packages.
maxResults
- Limits results to a maximum number of packages.public void setNextToken(String nextToken)
Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided, returns results for the next page.
nextToken
- Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If
provided, returns results for the next page.public String getNextToken()
Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided, returns results for the next page.
public DescribePackagesRequest withNextToken(String nextToken)
Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided, returns results for the next page.
nextToken
- Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If
provided, returns results for the next page.public String toString()
toString
in class Object
Object.toString()
public DescribePackagesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()