Class LoadBalancerPatch

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

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

      • dns

        public LoadBalancerDNSPatch dns()
        Gets the dns. The DNS configuration for this load balancer. Specify `null` to remove the existing DNS configuration, which will remove all DNS `A` records for this load balancer that had been added to `zone`, and add equivalent `A` records to the public DNS zone `lb.appdomain.cloud`. Not supported by private path load balancers.
        Returns:
        the dns
      • logging

        public LoadBalancerLoggingPatch logging()
        Gets the logging. The logging configuration to use for this load balancer. To activate logging, the load balancer profile must support the specified logging type.
        Returns:
        the logging
      • name

        public String name()
        Gets the name. The name for this load balancer. The name must not be used by another load balancer in the VPC.
        Returns:
        the name
      • subnets

        public List<SubnetIdentity> subnets()
        Gets the subnets. The subnets to provision this load balancer in. The load balancer's availability will depend on the availability of the zones that the subnets reside in. The specified subnets must be in the same VPC as the existing subnets, and will completely replace the existing subnets. The load balancer must be in the `application` family.
        Returns:
        the subnets
      • asPatch

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