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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeAddressesRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeAddressesRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
List<String>
getAllocationIds()
[EC2-VPC] One or more allocation IDs.Request<DescribeAddressesRequest>
getDryRunRequest()
This method is intended for internal use only.List<Filter>
getFilters()
One or more filters.List<String>
getPublicIps()
[EC2-Classic] One or more Elastic IP addresses.int
hashCode()
void
setAllocationIds(Collection<String> allocationIds)
[EC2-VPC] One or more allocation IDs.void
setFilters(Collection<Filter> filters)
One or more filters.void
setPublicIps(Collection<String> publicIps)
[EC2-Classic] One or more Elastic IP addresses.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeAddressesRequest
withAllocationIds(String... allocationIds)
[EC2-VPC] One or more allocation IDs.DescribeAddressesRequest
withAllocationIds(Collection<String> allocationIds)
[EC2-VPC] One or more allocation IDs.DescribeAddressesRequest
withFilters(Filter... filters)
One or more filters.DescribeAddressesRequest
withFilters(Collection<Filter> filters)
One or more filters.DescribeAddressesRequest
withPublicIps(String... publicIps)
[EC2-Classic] One or more Elastic IP addresses.DescribeAddressesRequest
withPublicIps(Collection<String> publicIps)
[EC2-Classic] One or more Elastic IP addresses.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
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)
orwithPublicIps(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)
orwithFilters(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)
orwithAllocationIds(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 interfaceDryRunSupportedRequest<DescribeAddressesRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
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 classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-