Example usage for com.amazonaws.services.ec2.model ReleaseAddressRequest getPublicIp

List of usage examples for com.amazonaws.services.ec2.model ReleaseAddressRequest getPublicIp

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2.model ReleaseAddressRequest getPublicIp.

Prototype


public String getPublicIp() 

Source Link

Document

[EC2-Classic] The Elastic IP address.

Usage

From source file:jp.primecloud.auto.aws.typica.EucaEc2Client.java

License:Open Source License

@Override
public ReleaseAddressResult releaseAddress(ReleaseAddressRequest releaseAddressRequest) {
    try {//from  w  w  w .j  ava 2s .c o  m
        jec2.releaseAddress(releaseAddressRequest.getPublicIp());
        return new ReleaseAddressResult();
    } catch (EC2Exception e) {
        throw new AmazonClientException(e);
    }
}