Class NetworkInterfacePatch

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.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 Details

    • newBuilder

      public NetworkInterfacePatch.Builder newBuilder()
      New builder.
      Returns:
      a NetworkInterfacePatch builder
    • 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