@Generated(value="software.amazon.awssdk:codegen") public final class AwsEc2NetworkInterfaceDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEc2NetworkInterfaceDetails.Builder,AwsEc2NetworkInterfaceDetails>
Details about the network interface
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEc2NetworkInterfaceDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
AwsEc2NetworkInterfaceAttachment |
attachment()
The network interface attachment.
|
static AwsEc2NetworkInterfaceDetails.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasIpV6Addresses()
For responses, this returns true if the service returned a value for the IpV6Addresses property.
|
boolean |
hasPrivateIpAddresses()
For responses, this returns true if the service returned a value for the PrivateIpAddresses property.
|
boolean |
hasSecurityGroups()
For responses, this returns true if the service returned a value for the SecurityGroups property.
|
List<AwsEc2NetworkInterfaceIpV6AddressDetail> |
ipV6Addresses()
The IPv6 addresses associated with the network interface.
|
String |
networkInterfaceId()
The ID of the network interface.
|
List<AwsEc2NetworkInterfacePrivateIpAddressDetail> |
privateIpAddresses()
The private IPv4 addresses associated with the network interface.
|
String |
publicDnsName()
The public DNS name of the network interface.
|
String |
publicIp()
The address of the Elastic IP address bound to the network interface.
|
List<SdkField<?>> |
sdkFields() |
List<AwsEc2NetworkInterfaceSecurityGroup> |
securityGroups()
Security groups for the network interface.
|
static Class<? extends AwsEc2NetworkInterfaceDetails.Builder> |
serializableBuilderClass() |
Boolean |
sourceDestCheck()
Indicates whether traffic to or from the instance is validated.
|
AwsEc2NetworkInterfaceDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final AwsEc2NetworkInterfaceAttachment attachment()
The network interface attachment.
public final String networkInterfaceId()
The ID of the network interface.
public final boolean hasSecurityGroups()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AwsEc2NetworkInterfaceSecurityGroup> securityGroups()
Security groups for the network interface.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSecurityGroups() method.
public final Boolean sourceDestCheck()
Indicates whether traffic to or from the instance is validated.
public final boolean hasIpV6Addresses()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AwsEc2NetworkInterfaceIpV6AddressDetail> ipV6Addresses()
The IPv6 addresses associated with the network interface.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasIpV6Addresses() method.
public final boolean hasPrivateIpAddresses()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AwsEc2NetworkInterfacePrivateIpAddressDetail> privateIpAddresses()
The private IPv4 addresses associated with the network interface.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPrivateIpAddresses() method.
public final String publicDnsName()
The public DNS name of the network interface.
public final String publicIp()
The address of the Elastic IP address bound to the network interface.
public AwsEc2NetworkInterfaceDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsEc2NetworkInterfaceDetails.Builder,AwsEc2NetworkInterfaceDetails>public static AwsEc2NetworkInterfaceDetails.Builder builder()
public static Class<? extends AwsEc2NetworkInterfaceDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.