Overview | Package | Class | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.amazonaws.services.ec2.model
Class ReleaseAddressRequest

    java.lang.Object
      com.amazonaws.AmazonWebServiceRequest
          com.amazonaws.services.ec2.model.ReleaseAddressRequest

    public class ReleaseAddressRequest

extends AmazonWebServiceRequest

Container for the parameters to the `ReleaseAddress operation`.

The ReleaseAddress operation releases an elastic IP address associated with your account.

NOTE: Releasing an IP address automatically disassociates it from any instance with which it is associated. For more information, see DisassociateAddress.

IMPORTANT: After releasing an elastic IP address, it is released to the IP address pool and might no longer be available to your account. Make sure to update your DNS records and any servers or devices that communicate with the address. If you run this operation on an elastic IP address that is already released, the address might be assigned to another account which will cause Amazon EC2 to return an error.

See Also:
  `AmazonEC2.releaseAddress(ReleaseAddressRequest)`

Constructor Summary
`ReleaseAddressRequest()`

Method Summary
`String` | `getPublicIp()` The elastic IP address that you are releasing from your account.
`void` | `setPublicIp(String publicIp)` The elastic IP address that you are releasing from your account.
`String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
`ReleaseAddressRequest` | `withPublicIp(String publicIp)` The elastic IP address that you are releasing from your account.

Methods inherited from class com.amazonaws.AmazonWebServiceRequest
`copyPrivateRequestParameters`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ReleaseAddressRequest

    public ReleaseAddressRequest()

Method Detail

### getPublicIp

    public String getPublicIp()

  The elastic IP address that you are releasing from your account.

  Returns:
    The elastic IP address that you are releasing from your account.

### setPublicIp

    public void setPublicIp(String publicIp)

  The elastic IP address that you are releasing from your account.

  Parameters:
    `publicIp` - The elastic IP address that you are releasing from your account.

### withPublicIp

    public ReleaseAddressRequest withPublicIp(String publicIp)

  The elastic IP address that you are releasing from your account.

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

  Parameters:
    `publicIp` - The elastic IP address that you are releasing from your account.
  Returns:
    A reference to this updated object so that method calls can be chained together.

### 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:
    `Object.toString()`

Overview | Package | Class | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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