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

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

Introduction

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

Prototype


public String getPublicIp() 

Source Link

Document

The Elastic IP address to associate with the instance.

Usage

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

License:Open Source License

@Override
public AssociateAddressResult associateAddress(AssociateAddressRequest associateAddressRequest) {
    try {/*from   ww  w. j a  v  a  2s  .c om*/
        jec2.associateAddress(associateAddressRequest.getInstanceId(), associateAddressRequest.getPublicIp());
        return new AssociateAddressResult();
    } catch (EC2Exception e) {
        throw new AmazonClientException(e);
    }
}