Package com.ibm.cloud.is.vpc.v1.model
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 Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceGroupPatch.Builder
addSubnets(SubnetIdentity subnets)
Adds a new element to subnets.InstanceGroupPatch.Builder
applicationPort(long applicationPort)
Set the applicationPort.InstanceGroupPatch
build()
Builds a InstanceGroupPatch.InstanceGroupPatch.Builder
instanceTemplate(InstanceTemplateIdentity instanceTemplate)
Set the instanceTemplate.InstanceGroupPatch.Builder
loadBalancer(LoadBalancerIdentity loadBalancer)
Set the loadBalancer.InstanceGroupPatch.Builder
loadBalancerPool(LoadBalancerPoolIdentity loadBalancerPool)
Set the loadBalancerPool.InstanceGroupPatch.Builder
membershipCount(long membershipCount)
Set the membershipCount.InstanceGroupPatch.Builder
name(String name)
Set the name.InstanceGroupPatch.Builder
subnets(List<SubnetIdentity> subnets)
Set the subnets.
-
-
-
Method Detail
-
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
-
-