@Generated(value="OracleSDKGenerator", comments="API Version: 20220509") public final class InstanceNetworkInterface extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Describes a network interface.
Note: Objects should always be created or deserialized using the InstanceNetworkInterface.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the InstanceNetworkInterface.Builder
, which maintain a
set of all explicitly set fields called InstanceNetworkInterface.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
InstanceNetworkInterface.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
InstanceNetworkInterface(InstanceNetworkInterfaceAssociation association,
InstanceNetworkInterfaceAttachment attachment,
String description,
List<GroupIdentifier> securityGroups,
String interfaceType,
List<String> ipv4Prefixes,
List<String> ipv6Addresses,
List<String> ipv6Prefixes,
String macAddress,
String networkInterfaceKey,
String ownerKey,
List<InstancePrivateIpAddress> privateIpAddresses,
Boolean isSourceDestCheck,
String status,
String subnetKey)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static InstanceNetworkInterface.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
InstanceNetworkInterfaceAssociation |
getAssociation() |
InstanceNetworkInterfaceAttachment |
getAttachment() |
String |
getDescription()
The description.
|
String |
getInterfaceType()
The type of network interface.
|
List<String> |
getIpv4Prefixes()
The IPv4 delegated prefixes that are assigned to the network interface.
|
List<String> |
getIpv6Addresses()
The IPv6 addresses associated with the network interface.
|
List<String> |
getIpv6Prefixes()
The IPv6 delegated prefixes that are assigned to the network interface.
|
Boolean |
getIsSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
String |
getMacAddress()
The MAC address.
|
String |
getNetworkInterfaceKey()
The ID of the network interface.
|
String |
getOwnerKey()
The ID of the AWS account that created the network interface.
|
List<InstancePrivateIpAddress> |
getPrivateIpAddresses()
The private IPv4 addresses associated with the network interface.
|
List<GroupIdentifier> |
getSecurityGroups()
The security groups.
|
String |
getStatus()
The status of the network interface.
|
String |
getSubnetKey()
The ID of the subnet.
|
int |
hashCode() |
InstanceNetworkInterface.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"association","attachment","description","securityGroups","interfaceType","ipv4Prefixes","ipv6Addresses","ipv6Prefixes","macAddress","networkInterfaceKey","ownerKey","privateIpAddresses","isSourceDestCheck","status","subnetKey"}) public InstanceNetworkInterface(InstanceNetworkInterfaceAssociation association, InstanceNetworkInterfaceAttachment attachment, String description, List<GroupIdentifier> securityGroups, String interfaceType, List<String> ipv4Prefixes, List<String> ipv6Addresses, List<String> ipv6Prefixes, String macAddress, String networkInterfaceKey, String ownerKey, List<InstancePrivateIpAddress> privateIpAddresses, Boolean isSourceDestCheck, String status, String subnetKey)
public static InstanceNetworkInterface.Builder builder()
Create a new builder.
public InstanceNetworkInterface.Builder toBuilder()
public InstanceNetworkInterfaceAssociation getAssociation()
public InstanceNetworkInterfaceAttachment getAttachment()
public String getDescription()
The description.
public List<GroupIdentifier> getSecurityGroups()
The security groups.
public String getInterfaceType()
The type of network interface.
public List<String> getIpv4Prefixes()
The IPv4 delegated prefixes that are assigned to the network interface.
public List<String> getIpv6Addresses()
The IPv6 addresses associated with the network interface.
public List<String> getIpv6Prefixes()
The IPv6 delegated prefixes that are assigned to the network interface.
public String getMacAddress()
The MAC address.
public String getNetworkInterfaceKey()
The ID of the network interface.
public String getOwnerKey()
The ID of the AWS account that created the network interface.
public List<InstancePrivateIpAddress> getPrivateIpAddresses()
The private IPv4 addresses associated with the network interface.
public Boolean getIsSourceDestCheck()
Indicates whether source/destination checking is enabled.
public String getStatus()
The status of the network interface.
public String getSubnetKey()
The ID of the subnet.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.