@Generated(value="software.amazon.awssdk:codegen") public final class NetworkInterface extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NetworkInterface.Builder,NetworkInterface>
Contains information about the network interfaces interacting with an EC2 instance. This data type is used as one of the elements of the AssetAttributes data type.
Modifier and Type | Class and Description |
---|---|
static interface |
NetworkInterface.Builder |
Modifier and Type | Method and Description |
---|---|
static NetworkInterface.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<String> |
ipv6Addresses()
The IP addresses associated with the network interface.
|
String |
networkInterfaceId()
The ID of the network interface.
|
String |
privateDnsName()
The name of a private DNS associated with the network interface.
|
String |
privateIpAddress()
The private IP address associated with the network interface.
|
List<PrivateIp> |
privateIpAddresses()
A list of the private IP addresses associated with the network interface.
|
String |
publicDnsName()
The name of a public DNS associated with the network interface.
|
String |
publicIp()
The public IP address from which the network interface is reachable.
|
List<SdkField<?>> |
sdkFields() |
List<SecurityGroup> |
securityGroups()
A list of the security groups associated with the network interface.
|
static Class<? extends NetworkInterface.Builder> |
serializableBuilderClass() |
String |
subnetId()
The ID of a subnet associated with the network interface.
|
NetworkInterface.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
vpcId()
The ID of a VPC associated with the network interface.
|
copy
public String networkInterfaceId()
The ID of the network interface.
public String subnetId()
The ID of a subnet associated with the network interface.
public String vpcId()
The ID of a VPC associated with the network interface.
public String privateDnsName()
The name of a private DNS associated with the network interface.
public String privateIpAddress()
The private IP address associated with the network interface.
public List<PrivateIp> privateIpAddresses()
A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String publicDnsName()
The name of a public DNS associated with the network interface.
public String publicIp()
The public IP address from which the network interface is reachable.
public List<String> ipv6Addresses()
The IP addresses associated with the network interface.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<SecurityGroup> securityGroups()
A list of the security groups associated with the network interface. Includes the groupId and groupName.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public NetworkInterface.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<NetworkInterface.Builder,NetworkInterface>
public static NetworkInterface.Builder builder()
public static Class<? extends NetworkInterface.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.