Class FloatingIPPatch

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

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

      • name

        public String name()
        Gets the name. The name for this floating IP. The name must not be used by another floating IP in the region.
        Returns:
        the name
      • target

        public FloatingIPTargetPatch target()
        Gets the target. The target resource to bind this floating IP to, replacing any existing binding. The floating IP must not be required by another resource, such as a public gateway. The target resource must not already have a floating IP bound to it if the target resource is: - an instance network interface - a bare metal server network interface with `enable_infrastructure_nat` set to `true` - a virtual network interface with `enable_infrastructure_nat` set to `true` Specify `null` to remove an existing binding.
        Returns:
        the target
      • asPatch

        public Map<String,​Object> asPatch()
        Construct a JSON merge-patch from the FloatingIPPatch. Note that properties of the FloatingIPPatch 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 FloatingIPPatch