Package com.ibm.cloud.is.vpc.v1.model
Class CreateInstanceGroupOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateInstanceGroupOptions.Builder
-
- Enclosing class:
- CreateInstanceGroupOptions
public static class CreateInstanceGroupOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(InstanceTemplateIdentity instanceTemplate, List<SubnetIdentity> subnets)
Instantiates a new builder with required properties.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(InstanceTemplateIdentity instanceTemplate, List<SubnetIdentity> subnets)
Instantiates a new builder with required properties.- Parameters:
instanceTemplate
- the instanceTemplatesubnets
- the subnets
-
-
Method Detail
-
build
public CreateInstanceGroupOptions build()
Builds a CreateInstanceGroupOptions.- Returns:
- the new CreateInstanceGroupOptions instance
-
addSubnets
public CreateInstanceGroupOptions.Builder addSubnets(SubnetIdentity subnets)
Adds a new element to subnets.- Parameters:
subnets
- the new element to be added- Returns:
- the CreateInstanceGroupOptions builder
-
instanceTemplate
public CreateInstanceGroupOptions.Builder instanceTemplate(InstanceTemplateIdentity instanceTemplate)
Set the instanceTemplate.- Parameters:
instanceTemplate
- the instanceTemplate- Returns:
- the CreateInstanceGroupOptions builder
-
subnets
public CreateInstanceGroupOptions.Builder subnets(List<SubnetIdentity> subnets)
Set the subnets. Existing subnets will be replaced.- Parameters:
subnets
- the subnets- Returns:
- the CreateInstanceGroupOptions builder
-
applicationPort
public CreateInstanceGroupOptions.Builder applicationPort(long applicationPort)
Set the applicationPort.- Parameters:
applicationPort
- the applicationPort- Returns:
- the CreateInstanceGroupOptions builder
-
loadBalancer
public CreateInstanceGroupOptions.Builder loadBalancer(LoadBalancerIdentity loadBalancer)
Set the loadBalancer.- Parameters:
loadBalancer
- the loadBalancer- Returns:
- the CreateInstanceGroupOptions builder
-
loadBalancerPool
public CreateInstanceGroupOptions.Builder loadBalancerPool(LoadBalancerPoolIdentity loadBalancerPool)
Set the loadBalancerPool.- Parameters:
loadBalancerPool
- the loadBalancerPool- Returns:
- the CreateInstanceGroupOptions builder
-
membershipCount
public CreateInstanceGroupOptions.Builder membershipCount(long membershipCount)
Set the membershipCount.- Parameters:
membershipCount
- the membershipCount- Returns:
- the CreateInstanceGroupOptions builder
-
name
public CreateInstanceGroupOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateInstanceGroupOptions builder
-
resourceGroup
public CreateInstanceGroupOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateInstanceGroupOptions builder
-
-