Class 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.
    • Method Detail

      • isAllowIpSpoofing

        public Boolean 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

        public Boolean isAutoDelete()
        Gets the autoDelete. Indicates whether this virtual network interface will be automatically deleted when `target` is deleted.
        Returns:
        the autoDelete
      • getCreatedAt

        public Date getCreatedAt()
        Gets the createdAt. The date and time that the virtual network interface was created.
        Returns:
        the createdAt
      • getCrn

        public String getCrn()
        Gets the crn. The CRN for this virtual network interface.
        Returns:
        the crn
      • isEnableInfrastructureNat

        public Boolean 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

        public String getHref()
        Gets the href. The URL for this virtual network interface.
        Returns:
        the href
      • getId

        public String getId()
        Gets the id. The unique identifier for this virtual network interface.
        Returns:
        the id
      • getIps

        public List<ReservedIPReference> 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

        public String getLifecycleState()
        Gets the lifecycleState. The lifecycle state of the virtual network interface.
        Returns:
        the lifecycleState
      • getMacAddress

        public String getMacAddress()
        Gets the macAddress. The MAC address of the virtual network interface. May be absent if `lifecycle_state` is `pending`.
        Returns:
        the macAddress
      • getName

        public String 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

        public ReservedIPReference getPrimaryIp()
        Gets the primaryIp. The reserved IP for this virtual network interface.
        Returns:
        the primaryIp
      • getProtocolStateFilteringMode

        public String 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

        public ResourceGroupReference getResourceGroup()
        Gets the resourceGroup. The resource group for this virtual network interface.
        Returns:
        the resourceGroup
      • getResourceType

        public String getResourceType()
        Gets the resourceType. The resource type.
        Returns:
        the resourceType
      • getSecurityGroups

        public List<SecurityGroupReference> getSecurityGroups()
        Gets the securityGroups. The security groups for this virtual network interface.
        Returns:
        the securityGroups
      • getSubnet

        public SubnetReference getSubnet()
        Gets the subnet. The associated subnet.
        Returns:
        the subnet
      • getTarget

        public VirtualNetworkInterfaceTarget 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

        public VPCReference getVpc()
        Gets the vpc. The VPC this virtual network interface resides in.
        Returns:
        the vpc
      • getZone

        public ZoneReference getZone()
        Gets the zone. The zone this virtual network interface resides in.
        Returns:
        the zone