List of usage examples for com.amazonaws.services.ec2.model Address getNetworkInterfaceId
public String getNetworkInterfaceId()
The ID of the network interface.
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 }