Class DescribePrefixListsRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.DescribePrefixListsRequest
All Implemented Interfaces:
ReadLimitInfo, DryRunSupportedRequest<DescribePrefixListsRequest>, Serializable, Cloneable

public class DescribePrefixListsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribePrefixListsRequest>

Contains the parameters for DescribePrefixLists.

See Also:
  • Constructor Details

    • DescribePrefixListsRequest

      public DescribePrefixListsRequest()
  • Method Details

    • getPrefixListIds

      public List<String> getPrefixListIds()

      One or more prefix list IDs.

      Returns:
      One or more prefix list IDs.
    • setPrefixListIds

      public void setPrefixListIds(Collection<String> prefixListIds)

      One or more prefix list IDs.

      Parameters:
      prefixListIds - One or more prefix list IDs.
    • withPrefixListIds

      public DescribePrefixListsRequest withPrefixListIds(String... prefixListIds)

      One or more prefix list IDs.

      NOTE: This method appends the values to the existing list (if any). Use setPrefixListIds(java.util.Collection) or withPrefixListIds(java.util.Collection) if you want to override the existing values.

      Parameters:
      prefixListIds - One or more prefix list IDs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withPrefixListIds

      public DescribePrefixListsRequest withPrefixListIds(Collection<String> prefixListIds)

      One or more prefix list IDs.

      Parameters:
      prefixListIds - One or more prefix list IDs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getFilters

      public List<Filter> getFilters()

      One or more filters.

      • prefix-list-id: The ID of a prefix list.

      • prefix-list-name: The name of a prefix list.

      Returns:
      One or more filters.

      • prefix-list-id: The ID of a prefix list.

      • prefix-list-name: The name of a prefix list.

    • setFilters

      public void setFilters(Collection<Filter> filters)

      One or more filters.

      • prefix-list-id: The ID of a prefix list.

      • prefix-list-name: The name of a prefix list.

      Parameters:
      filters - One or more filters.

      • prefix-list-id: The ID of a prefix list.

      • prefix-list-name: The name of a prefix list.

    • withFilters

      public DescribePrefixListsRequest withFilters(Filter... filters)

      One or more filters.

      • prefix-list-id: The ID of a prefix list.

      • prefix-list-name: The name of a prefix list.

      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.

      Parameters:
      filters - One or more filters.

      • prefix-list-id: The ID of a prefix list.

      • prefix-list-name: The name of a prefix list.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withFilters

      public DescribePrefixListsRequest withFilters(Collection<Filter> filters)

      One or more filters.

      • prefix-list-id: The ID of a prefix list.

      • prefix-list-name: The name of a prefix list.

      Parameters:
      filters - One or more filters.

      • prefix-list-id: The ID of a prefix list.

      • prefix-list-name: The name of a prefix list.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setMaxResults

      public void setMaxResults(Integer maxResults)

      The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

      Constraint: If the value specified is greater than 1000, we return only 1000 items.

      Parameters:
      maxResults - The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

      Constraint: If the value specified is greater than 1000, we return only 1000 items.

    • getMaxResults

      public Integer getMaxResults()

      The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

      Constraint: If the value specified is greater than 1000, we return only 1000 items.

      Returns:
      The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

      Constraint: If the value specified is greater than 1000, we return only 1000 items.

    • withMaxResults

      public DescribePrefixListsRequest withMaxResults(Integer maxResults)

      The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

      Constraint: If the value specified is greater than 1000, we return only 1000 items.

      Parameters:
      maxResults - The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

      Constraint: If the value specified is greater than 1000, we return only 1000 items.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setNextToken

      public void setNextToken(String nextToken)

      The token for the next set of items to return. (You received this token from a prior call.)

      Parameters:
      nextToken - The token for the next set of items to return. (You received this token from a prior call.)
    • getNextToken

      public String getNextToken()

      The token for the next set of items to return. (You received this token from a prior call.)

      Returns:
      The token for the next set of items to return. (You received this token from a prior call.)
    • withNextToken

      public DescribePrefixListsRequest withNextToken(String nextToken)

      The token for the next set of items to return. (You received this token from a prior call.)

      Parameters:
      nextToken - The token for the next set of items to return. (You received this token from a prior call.)
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDryRunRequest

      public Request<DescribePrefixListsRequest> getDryRunRequest()
      This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.
      Specified by:
      getDryRunRequest in interface DryRunSupportedRequest<DescribePrefixListsRequest>
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: