Example usage for com.amazonaws.services.ec2.model Address getNetworkInterfaceId

List of usage examples for com.amazonaws.services.ec2.model Address getNetworkInterfaceId

Introduction

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

Prototype


public String getNetworkInterfaceId() 

Source Link

Document

The ID of the network interface.

Usage

From source file:aws.example.ec2.DescribeAddresses.java

License:Open Source License

public static void main(String[] args) {
    final AmazonEC2 ec2 = AmazonEC2ClientBuilder.defaultClient();

    DescribeAddressesResult response = ec2.describeAddresses();

    for (Address address : response.getAddresses()) {
        System.out.printf(/*from w  w  w . ja  va  2  s  .com*/
                "Found address with public IP %s, " + "domain %s, " + "allocation id %s " + "and NIC id %s",
                address.getPublicIp(), address.getDomain(), address.getAllocationId(),
                address.getNetworkInterfaceId());
    }
}

From source file:ec2.DescribeAddresses.java

License:Open Source License

public static void main(String[] args) {

    final AmazonEC2 ec2 = AmazonEC2ClientBuilder.defaultClient();

    DescribeAddressesResult response = ec2.describeAddresses();

    for (Address address : response.getAddresses()) {
        System.out.printf("Found address with public IP %s, domain %s, allocation id %s and NIC id %s",
                address.getPublicIp(), address.getDomain(), address.getAllocationId(),
                address.getNetworkInterfaceId());
    }//  w  w w. ja  v a  2s. c  o  m
}