Class NetworkInterfacePatch

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class NetworkInterfacePatch
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    NetworkInterfacePatch.
    • Method Detail

      • allowIpSpoofing

        public Boolean allowIpSpoofing()
        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
      • name

        public String name()
        Gets the name. The name for the instance network interface. The name must not be used by another network interface on the virtual server instance.
        Returns:
        the name
      • asPatch

        public Map<String,​Object> asPatch()
        Construct a JSON merge-patch from the NetworkInterfacePatch. Note that properties of the NetworkInterfacePatch with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.
        Returns:
        a JSON merge-patch for the NetworkInterfacePatch