Package com.ibm.cloud.is.vpc.v1.model
Class LoadBalancerPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LoadBalancerPatch.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
asPatch()
Construct a JSON merge-patch from the LoadBalancerPatch.LoadBalancerDNSPatch
dns()
Gets the dns.LoadBalancerLoggingPatch
logging()
Gets the logging.String
name()
Gets the name.LoadBalancerPatch.Builder
newBuilder()
New builder.List<SubnetIdentity>
subnets()
Gets the subnets.
-
-
-
Method Detail
-
newBuilder
public LoadBalancerPatch.Builder newBuilder()
New builder.- Returns:
- a LoadBalancerPatch builder
-
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
-
-