Class NetworkInterface
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.NetworkInterface
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class NetworkInterface
extends com.ibm.cloud.sdk.core.service.model.GenericModel
NetworkInterface.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The resource type.static interface
The status of the instance network interface.static interface
The instance network interface type. -
Method Summary
Modifier and TypeMethodDescriptionGets the createdAt.Gets the floatingIps.getHref()
Gets the href.getId()
Gets the id.getName()
Gets the name.Gets the portSpeed.Gets the primaryIp.Gets the resourceType.Gets the securityGroups.Gets the status.Gets the subnet.getType()
Gets the type.Gets the allowIpSpoofing.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
isAllowIpSpoofing
Gets the allowIpSpoofing. Indicates whether source IP spoofing is allowed on this instance network interface. If this instance has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and source IP spoofing is managed on the attached virtual network interface.- Returns:
- the allowIpSpoofing
-
getCreatedAt
Gets the createdAt. The date and time that the instance network interface was created. If this instance has network attachments, this network interface was created as a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) when its corresponding network attachment was created.- Returns:
- the createdAt
-
getFloatingIps
Gets the floatingIps. The floating IPs associated with this instance network interface. If this instance has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the floating IPs are associated with the attached virtual network interface.- Returns:
- the floatingIps
-
getHref
Gets the href. The URL for this instance network interface. If this instance has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment.- Returns:
- the href
-
getId
Gets the id. The unique identifier for this instance network interface. If this instance has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the identifier is that of the corresponding network attachment.- Returns:
- the id
-
getName
Gets the name. The name for this instance network interface. If this instance has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the name matches its corresponding network attachment.- Returns:
- the name
-
getPortSpeed
Gets the portSpeed. The instance network interface port speed in Mbps. If this instance has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the port speed is that of its corresponding network attachment.- Returns:
- the portSpeed
-
getPrimaryIp
-
getResourceType
-
getSecurityGroups
Gets the securityGroups. The security groups targeting this instance network interface. If this instance has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the security groups are associated with the attached virtual network interface.- Returns:
- the securityGroups
-
getStatus
Gets the status. The status of the instance network interface. If this instance has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and the status is [computed from them](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients).- Returns:
- the status
-
getSubnet
-
getType
Gets the type. The instance network interface type. If this instance has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the type is that of its corresponding network attachment.- Returns:
- the type
-