public static class EC2MetadataUtils.NetworkInterface extends Object
| Constructor and Description | 
|---|
| NetworkInterface(String macAddress) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getHostname()The interface's local hostname. | 
| List<String> | getIPv4Association(String publicIp)Get the private IPv4 address(es) that are associated with the
 public-ip address and assigned to that interface. | 
| List<String> | getLocalIPv4s()The private IP addresses associated with the interface. | 
| String | getMacAddress()The interface's Media Acess Control (mac) address | 
| String | getOwnerId()The ID of the owner of the network interface. In multiple-interface environments, an interface can be attached by a third party, such as Elastic Load Balancing. | 
| String | getProfile()The interface's profile. | 
| String | getPublicHostname()The interface's public hostname. | 
| List<String> | getPublicIPv4s()The elastic IP addresses associated with the interface. There may be multiple IP addresses on an instance. | 
| List<String> | getSecurityGroupIds()IDs of the security groups to which the network interface belongs. | 
| List<String> | getSecurityGroups()Security groups to which the network interface belongs. | 
| String | getSubnetId()ID of the subnet in which the interface resides. Returned only for Amazon EC2 instances launched into a VPC. | 
| String | getSubnetIPv4CidrBlock()The CIDR block of the Amazon EC2-VPC subnet in which the interface
 resides. Returned only for Amazon EC2 instances launched into a VPC. | 
| String | getVpcId()ID of the Amazon EC2-VPC in which the interface resides. Returned only for Amazon EC2 instances launched into a VPC. | 
| String | getVpcIPv4CidrBlock()The CIDR block of the Amazon EC2-VPC in which the interface
 resides. Returned only for Amazon EC2 instances launched into a VPC. | 
public NetworkInterface(String macAddress)
public String getMacAddress()
public String getOwnerId()
public String getProfile()
public String getHostname()
public List<String> getLocalIPv4s()
public String getPublicHostname()
public List<String> getPublicIPv4s()
public List<String> getSecurityGroups()
public List<String> getSecurityGroupIds()
public String getSubnetIPv4CidrBlock()
public String getSubnetId()
public String getVpcIPv4CidrBlock()
public String getVpcId()
public List<String> getIPv4Association(String publicIp)
publicIp - The public IP addressCopyright © 2024. All rights reserved.