com.amazonaws.util

## クラス EC2MetadataUtils.NetworkInterface

- java.lang.Object
- - com.amazonaws.util.EC2MetadataUtils.NetworkInterface

- 含まれているクラス:
    EC2MetadataUtils

      public static class EC2MetadataUtils.NetworkInterface
      extends java.lang.Object

  All of the metada associated with a network interface on the instance.

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `EC2MetadataUtils.NetworkInterface(java.lang.String macAddress)`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getHostname()` The interface's local hostname.
    `java.util.List<java.lang.String>` | `getIPv4Association(java.lang.String publicIp)` Get the private IPv4 address(es) that are associated with the public-ip address and assigned to that interface.
    `java.util.List<java.lang.String>` | `getLocalIPv4s()` The private IP addresses associated with the interface.
    `java.lang.String` | `getMacAddress()` The interface's Media Acess Control (mac) address
    `java.lang.String` | `getOwnerId()` The ID of the owner of the network interface.
    `java.lang.String` | `getProfile()` The interface's profile.
    `java.lang.String` | `getPublicHostname()` The interface's public hostname.
    `java.util.List<java.lang.String>` | `getPublicIPv4s()` The elastic IP addresses associated with the interface.
    `java.util.List<java.lang.String>` | `getSecurityGroupIds()` IDs of the security groups to which the network interface belongs.
    `java.util.List<java.lang.String>` | `getSecurityGroups()` Security groups to which the network interface belongs.
    `java.lang.String` | `getSubnetIPv4CidrBlock()` The CIDR block of the Amazon EC2-VPC subnet in which the interface resides.
    `java.lang.String` | `getVpcId()` The CIDR block of the Amazon EC2-VPC subnet in which the interface resides.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### EC2MetadataUtils.NetworkInterface

          public EC2MetadataUtils.NetworkInterface(java.lang.String macAddress)

  - ### メソッドの詳細

    - #### getMacAddress

          public java.lang.String getMacAddress()

      The interface's Media Acess Control (mac) address

    - #### getOwnerId

          public java.lang.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. Traffic on an interface is always billed to the interface owner.

    - #### getProfile

          public java.lang.String getProfile()

      The interface's profile.

    - #### getHostname

          public java.lang.String getHostname()

      The interface's local hostname.

    - #### getLocalIPv4s

          public java.util.List<java.lang.String> getLocalIPv4s()

      The private IP addresses associated with the interface.

    - #### getPublicHostname

          public java.lang.String getPublicHostname()

      The interface's public hostname.

    - #### getPublicIPv4s

          public java.util.List<java.lang.String> getPublicIPv4s()

      The elastic IP addresses associated with the interface.
      There may be multiple IP addresses on an instance.

    - #### getSecurityGroups

          public java.util.List<java.lang.String> getSecurityGroups()

      Security groups to which the network interface belongs.

    - #### getSecurityGroupIds

          public java.util.List<java.lang.String> getSecurityGroupIds()

      IDs of the security groups to which the network interface belongs. Returned only for Amazon EC2 instances launched into a VPC.

    - #### getSubnetIPv4CidrBlock

          public java.lang.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.

    - #### getVpcId

          public java.lang.String getVpcId()

      The CIDR block of the Amazon EC2-VPC subnet in which the interface resides.
      Returned only for Amazon EC2 instances launched into a VPC.

    - #### getIPv4Association

          public java.util.List<java.lang.String> getIPv4Association(java.lang.String publicIp)

      Get the private IPv4 address(es) that are associated with the public-ip address and assigned to that interface.
      パラメータ:
        `publicIp` - The public IP address
      戻り値:
        Private IPv4 address(es) associated with the public IP address.