Class InstanceGroupPatch.Builder

java.lang.Object
com.ibm.cloud.is.vpc.v1.model.InstanceGroupPatch.Builder
Enclosing class:
InstanceGroupPatch

public static class InstanceGroupPatch.Builder extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public InstanceGroupPatch build()
      Builds a InstanceGroupPatch.
      Returns:
      the new InstanceGroupPatch instance
    • addSubnets

      public InstanceGroupPatch.Builder addSubnets(SubnetIdentity subnets)
      Adds a new element to subnets.
      Parameters:
      subnets - the new element to be added
      Returns:
      the InstanceGroupPatch builder
    • applicationPort

      public InstanceGroupPatch.Builder applicationPort(long applicationPort)
      Set the applicationPort.
      Parameters:
      applicationPort - the applicationPort
      Returns:
      the InstanceGroupPatch builder
    • instanceTemplate

      public InstanceGroupPatch.Builder instanceTemplate(InstanceTemplateIdentity instanceTemplate)
      Set the instanceTemplate.
      Parameters:
      instanceTemplate - the instanceTemplate
      Returns:
      the InstanceGroupPatch builder
    • loadBalancer

      public InstanceGroupPatch.Builder loadBalancer(LoadBalancerIdentity loadBalancer)
      Set the loadBalancer.
      Parameters:
      loadBalancer - the loadBalancer
      Returns:
      the InstanceGroupPatch builder
    • loadBalancerPool

      public InstanceGroupPatch.Builder loadBalancerPool(LoadBalancerPoolIdentity loadBalancerPool)
      Set the loadBalancerPool.
      Parameters:
      loadBalancerPool - the loadBalancerPool
      Returns:
      the InstanceGroupPatch builder
    • membershipCount

      public InstanceGroupPatch.Builder membershipCount(long membershipCount)
      Set the membershipCount.
      Parameters:
      membershipCount - the membershipCount
      Returns:
      the InstanceGroupPatch builder
    • name

      public InstanceGroupPatch.Builder name(String name)
      Set the name.
      Parameters:
      name - the name
      Returns:
      the InstanceGroupPatch builder
    • subnets

      public InstanceGroupPatch.Builder subnets(List<SubnetIdentity> subnets)
      Set the subnets. Existing subnets will be replaced.
      Parameters:
      subnets - the subnets
      Returns:
      the InstanceGroupPatch builder