com.amazonaws.services.ec2.model
Class DescribeAddressesRequest

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

public class DescribeAddressesRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<DescribeAddressesRequest>

Container for the parameters to the DescribeAddresses operation.

Describes one or more of your Elastic IP addresses.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.describeAddresses(DescribeAddressesRequest), Serialized Form

Constructor Summary
DescribeAddressesRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<java.lang.String> getAllocationIds()
          [EC2-VPC] One or more allocation IDs.
 Request<DescribeAddressesRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.util.List<Filter> getFilters()
          One or more filters.
 java.util.List<java.lang.String> getPublicIps()
          [EC2-Classic] One or more Elastic IP addresses.
 int hashCode()
           
 void setAllocationIds(java.util.Collection<java.lang.String> allocationIds)
          [EC2-VPC] One or more allocation IDs.
 void setFilters(java.util.Collection<Filter> filters)
          One or more filters.
 void setPublicIps(java.util.Collection<java.lang.String> publicIps)
          [EC2-Classic] One or more Elastic IP addresses.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DescribeAddressesRequest withAllocationIds(java.util.Collection<java.lang.String> allocationIds)
          [EC2-VPC] One or more allocation IDs.
 DescribeAddressesRequest withAllocationIds(java.lang.String... allocationIds)
          [EC2-VPC] One or more allocation IDs.
 DescribeAddressesRequest withFilters(java.util.Collection<Filter> filters)
          One or more filters.
 DescribeAddressesRequest withFilters(Filter... filters)
          One or more filters.
 DescribeAddressesRequest withPublicIps(java.util.Collection<java.lang.String> publicIps)
          [EC2-Classic] One or more Elastic IP addresses.
 DescribeAddressesRequest withPublicIps(java.lang.String... publicIps)
          [EC2-Classic] One or more Elastic IP addresses.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescribeAddressesRequest

public DescribeAddressesRequest()
Method Detail

getPublicIps

public java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.String... publicIps)
[EC2-Classic] One or more Elastic IP addresses.

Default: Describes all your Elastic IP addresses.

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

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

Default: Describes all your Elastic IP addresses.

Returns:
A reference to this updated object so that method calls can be chained together.

withPublicIps

public DescribeAddressesRequest withPublicIps(java.util.Collection<java.lang.String> publicIps)
[EC2-Classic] One or more Elastic IP addresses.

Default: Describes all your Elastic IP addresses.

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

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

Default: Describes all your Elastic IP addresses.

Returns:
A reference to this updated object so that method calls can be chained together.

getFilters

public java.util.List<Filter> getFilters()
One or more filters.

Returns:
One or more filters.
  • 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(java.util.Collection<Filter> filters)
One or more filters.

Parameters:
filters - One or more filters.
  • 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.

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

Parameters:
filters - One or more filters.
  • 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:
A reference to this updated object so that method calls can be chained together.

withFilters

public DescribeAddressesRequest withFilters(java.util.Collection<Filter> filters)
One or more filters.

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

Parameters:
filters - One or more filters.
  • 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:
A reference to this updated object so that method calls can be chained together.

getAllocationIds

public java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.String... allocationIds)
[EC2-VPC] One or more allocation IDs.

Default: Describes all your Elastic IP addresses.

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

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

Default: Describes all your Elastic IP addresses.

Returns:
A reference to this updated object so that method calls can be chained together.

withAllocationIds

public DescribeAddressesRequest withAllocationIds(java.util.Collection<java.lang.String> allocationIds)
[EC2-VPC] One or more allocation IDs.

Default: Describes all your Elastic IP addresses.

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

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

Default: Describes all your Elastic IP addresses.

Returns:
A reference to this updated 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 java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.