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

      • isAllowIpSpoofing

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

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

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

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

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

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

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

        public ReservedIPReference getPrimaryIp()
        Gets the primaryIp.
        Returns:
        the primaryIp
      • getResourceType

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

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

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

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

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