Class DescribeAddressesRequest

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

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

Contains the parameters for DescribeAddresses.

See Also:
  • Constructor Details

    • DescribeAddressesRequest

      public DescribeAddressesRequest()
  • Method Details

    • getPublicIps

      public List<String> getPublicIps()

      [EC2-Classic] One or more Elastic IP addresses.

      Default: Describes all your Elastic IP addresses.

      Returns:
      [EC2-Classic] One or more Elastic IP addresses.

      Default: Describes all your Elastic IP addresses.

    • setPublicIps

      public void setPublicIps(Collection<String> publicIps)

      [EC2-Classic] One or more Elastic IP addresses.

      Default: Describes all your Elastic IP addresses.

      Parameters:
      publicIps - [EC2-Classic] One or more Elastic IP addresses.

      Default: Describes all your Elastic IP addresses.

    • withPublicIps

      public DescribeAddressesRequest withPublicIps(String... publicIps)

      [EC2-Classic] One or more Elastic IP addresses.

      Default: Describes all your Elastic IP addresses.

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

      Parameters:
      publicIps - [EC2-Classic] One or more Elastic IP addresses.

      Default: Describes all your Elastic IP addresses.

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

      public DescribeAddressesRequest withPublicIps(Collection<String> publicIps)

      [EC2-Classic] One or more Elastic IP addresses.

      Default: Describes all your Elastic IP addresses.

      Parameters:
      publicIps - [EC2-Classic] One or more Elastic IP addresses.

      Default: Describes all your Elastic IP addresses.

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

      public List<Filter> getFilters()

      One or more filters. Filter names and values are case-sensitive.

      • allocation-id - [EC2-VPC] The allocation ID for the address.

      • association-id - [EC2-VPC] The association ID for the address.

      • domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc).

      • instance-id - The ID of the instance the address is associated with, if any.

      • network-interface-id - [EC2-VPC] The ID of the network interface that the address is associated with, if any.

      • network-interface-owner-id - The AWS account ID of the owner.

      • private-ip-address - [EC2-VPC] The private IP address associated with the Elastic IP address.

      • public-ip - The Elastic IP address.

      Returns:
      One or more filters. Filter names and values are case-sensitive.

      • allocation-id - [EC2-VPC] The allocation ID for the address.

      • association-id - [EC2-VPC] The association ID for the address.

      • domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc ).

      • instance-id - The ID of the instance the address is associated with, if any.

      • network-interface-id - [EC2-VPC] The ID of the network interface that the address is associated with, if any.

      • network-interface-owner-id - The AWS account ID of the owner.

      • private-ip-address - [EC2-VPC] The private IP address associated with the Elastic IP address.

      • public-ip - The Elastic IP address.

    • setFilters

      public void setFilters(Collection<Filter> filters)

      One or more filters. Filter names and values are case-sensitive.

      • allocation-id - [EC2-VPC] The allocation ID for the address.

      • association-id - [EC2-VPC] The association ID for the address.

      • domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc).

      • instance-id - The ID of the instance the address is associated with, if any.

      • network-interface-id - [EC2-VPC] The ID of the network interface that the address is associated with, if any.

      • network-interface-owner-id - The AWS account ID of the owner.

      • private-ip-address - [EC2-VPC] The private IP address associated with the Elastic IP address.

      • public-ip - The Elastic IP address.

      Parameters:
      filters - One or more filters. Filter names and values are case-sensitive.

      • allocation-id - [EC2-VPC] The allocation ID for the address.

      • association-id - [EC2-VPC] The association ID for the address.

      • domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc ).

      • instance-id - The ID of the instance the address is associated with, if any.

      • network-interface-id - [EC2-VPC] The ID of the network interface that the address is associated with, if any.

      • network-interface-owner-id - The AWS account ID of the owner.

      • private-ip-address - [EC2-VPC] The private IP address associated with the Elastic IP address.

      • public-ip - The Elastic IP address.

    • withFilters

      public DescribeAddressesRequest withFilters(Filter... filters)

      One or more filters. Filter names and values are case-sensitive.

      • allocation-id - [EC2-VPC] The allocation ID for the address.

      • association-id - [EC2-VPC] The association ID for the address.

      • domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc).

      • instance-id - The ID of the instance the address is associated with, if any.

      • network-interface-id - [EC2-VPC] The ID of the network interface that the address is associated with, if any.

      • network-interface-owner-id - The AWS account ID of the owner.

      • private-ip-address - [EC2-VPC] The private IP address associated with the Elastic IP address.

      • public-ip - The Elastic IP address.

      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. Filter names and values are case-sensitive.

      • allocation-id - [EC2-VPC] The allocation ID for the address.

      • association-id - [EC2-VPC] The association ID for the address.

      • domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc ).

      • instance-id - The ID of the instance the address is associated with, if any.

      • network-interface-id - [EC2-VPC] The ID of the network interface that the address is associated with, if any.

      • network-interface-owner-id - The AWS account ID of the owner.

      • private-ip-address - [EC2-VPC] The private IP address associated with the Elastic IP address.

      • public-ip - The Elastic IP address.

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

      public DescribeAddressesRequest withFilters(Collection<Filter> filters)

      One or more filters. Filter names and values are case-sensitive.

      • allocation-id - [EC2-VPC] The allocation ID for the address.

      • association-id - [EC2-VPC] The association ID for the address.

      • domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc).

      • instance-id - The ID of the instance the address is associated with, if any.

      • network-interface-id - [EC2-VPC] The ID of the network interface that the address is associated with, if any.

      • network-interface-owner-id - The AWS account ID of the owner.

      • private-ip-address - [EC2-VPC] The private IP address associated with the Elastic IP address.

      • public-ip - The Elastic IP address.

      Parameters:
      filters - One or more filters. Filter names and values are case-sensitive.

      • allocation-id - [EC2-VPC] The allocation ID for the address.

      • association-id - [EC2-VPC] The association ID for the address.

      • domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc ).

      • instance-id - The ID of the instance the address is associated with, if any.

      • network-interface-id - [EC2-VPC] The ID of the network interface that the address is associated with, if any.

      • network-interface-owner-id - The AWS account ID of the owner.

      • private-ip-address - [EC2-VPC] The private IP address associated with the Elastic IP address.

      • public-ip - The Elastic IP address.

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

      public List<String> getAllocationIds()

      [EC2-VPC] One or more allocation IDs.

      Default: Describes all your Elastic IP addresses.

      Returns:
      [EC2-VPC] One or more allocation IDs.

      Default: Describes all your Elastic IP addresses.

    • setAllocationIds

      public void setAllocationIds(Collection<String> allocationIds)

      [EC2-VPC] One or more allocation IDs.

      Default: Describes all your Elastic IP addresses.

      Parameters:
      allocationIds - [EC2-VPC] One or more allocation IDs.

      Default: Describes all your Elastic IP addresses.

    • withAllocationIds

      public DescribeAddressesRequest withAllocationIds(String... allocationIds)

      [EC2-VPC] One or more allocation IDs.

      Default: Describes all your Elastic IP addresses.

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

      Parameters:
      allocationIds - [EC2-VPC] One or more allocation IDs.

      Default: Describes all your Elastic IP addresses.

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

      public DescribeAddressesRequest withAllocationIds(Collection<String> allocationIds)

      [EC2-VPC] One or more allocation IDs.

      Default: Describes all your Elastic IP addresses.

      Parameters:
      allocationIds - [EC2-VPC] One or more allocation IDs.

      Default: Describes all your Elastic IP addresses.

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

      public Request<DescribeAddressesRequest> 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<DescribeAddressesRequest>
    • 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

      public DescribeAddressesRequest 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: