Class VirtualNetworkInterface
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.VirtualNetworkInterface
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class VirtualNetworkInterface
extends com.ibm.cloud.sdk.core.service.model.GenericModel
VirtualNetworkInterface.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The lifecycle state of the virtual network interface.static interface
The protocol state filtering mode used for this virtual network interface.static interface
The resource type. -
Method Summary
Modifier and TypeMethodDescriptionGets the createdAt.getCrn()
Gets the crn.getHref()
Gets the href.getId()
Gets the id.getIps()
Gets the ips.Gets the lifecycleState.Gets the macAddress.getName()
Gets the name.Gets the primaryIp.Gets the protocolStateFilteringMode.Gets the resourceGroup.Gets the resourceType.Gets the securityGroups.Gets the subnet.Gets the target.getVpc()
Gets the vpc.getZone()
Gets the zone.Gets the allowIpSpoofing.Gets the autoDelete.Gets the enableInfrastructureNat.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 interface. If `false`, source IP spoofing is prevented on this interface. If `true`, source IP spoofing is allowed on this interface.- Returns:
- the allowIpSpoofing
-
isAutoDelete
Gets the autoDelete. Indicates whether this virtual network interface will be automatically deleted when `target` is deleted.- Returns:
- the autoDelete
-
getCreatedAt
Gets the createdAt. The date and time that the virtual network interface was created.- Returns:
- the createdAt
-
getCrn
-
isEnableInfrastructureNat
Gets the enableInfrastructureNat. If `true`: - The VPC infrastructure performs any needed NAT operations. - `floating_ips` must not have more than one floating IP. If `false`: - Packets are passed unchanged to/from the virtual network interface, allowing the workload to perform any needed NAT operations. - `allow_ip_spoofing` must be `false`. - Can only be attached to a `target` with a `resource_type` of `bare_metal_server_network_attachment`.- Returns:
- the enableInfrastructureNat
-
getHref
Gets the href. The URL for this virtual network interface.- Returns:
- the href
-
getId
Gets the id. The unique identifier for this virtual network interface.- Returns:
- the id
-
getIps
Gets the ips. The reserved IPs bound to this virtual network interface. May be empty when `lifecycle_state` is `pending`.- Returns:
- the ips
-
getLifecycleState
Gets the lifecycleState. The lifecycle state of the virtual network interface.- Returns:
- the lifecycleState
-
getMacAddress
Gets the macAddress. The MAC address of the virtual network interface. May be absent if `lifecycle_state` is `pending`.- Returns:
- the macAddress
-
getName
Gets the name. The name for this virtual network interface. The name is unique across all virtual network interfaces in the VPC.- Returns:
- the name
-
getPrimaryIp
Gets the primaryIp. The reserved IP for this virtual network interface.- Returns:
- the primaryIp
-
getProtocolStateFilteringMode
Gets the protocolStateFilteringMode. The protocol state filtering mode used for this virtual network interface. If `auto`, protocol state packet filtering is enabled or disabled based on the virtual network interface's `target` resource type: - `bare_metal_server_network_attachment`: disabled - `instance_network_attachment`: enabled - `share_mount_target`: enabled Protocol state filtering monitors each network connection flowing over this virtual network interface, and drops any packets that are invalid based on the current connection state and protocol. See [Protocol state filtering mode](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#protocol-state-filtering)) for more information.- Returns:
- the protocolStateFilteringMode
-
getResourceGroup
Gets the resourceGroup. The resource group for this virtual network interface.- Returns:
- the resourceGroup
-
getResourceType
-
getSecurityGroups
Gets the securityGroups. The security groups for this virtual network interface.- Returns:
- the securityGroups
-
getSubnet
-
getTarget
Gets the target. The target of this virtual network interface. If absent, this virtual network interface is not attached to a target.- Returns:
- the target
-
getVpc
Gets the vpc. The VPC this virtual network interface resides in.- Returns:
- the vpc
-
getZone
Gets the zone. The zone this virtual network interface resides in.- Returns:
- the zone
-