Class CreateInstanceGroupOptions.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.CreateInstanceGroupOptions.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Instantiates a new builder.Builder(InstanceTemplateIdentity instanceTemplate, List<SubnetIdentity> subnets) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionaddSubnets(SubnetIdentity subnets) Adds a new element to subnets.applicationPort(long applicationPort) Set the applicationPort.build()Builds a CreateInstanceGroupOptions.instanceTemplate(InstanceTemplateIdentity instanceTemplate) Set the instanceTemplate.loadBalancer(LoadBalancerIdentity loadBalancer) Set the loadBalancer.loadBalancerPool(LoadBalancerPoolIdentity loadBalancerPool) Set the loadBalancerPool.membershipCount(long membershipCount) Set the membershipCount.Set the name.resourceGroup(ResourceGroupIdentity resourceGroup) Set the resourceGroup.subnets(List<SubnetIdentity> subnets) Set the subnets.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
instanceTemplate- the instanceTemplatesubnets- the subnets
-
-
Method Details
-
build
Builds a CreateInstanceGroupOptions.- Returns:
- the new CreateInstanceGroupOptions instance
-
addSubnets
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
Set the subnets. Existing subnets will be replaced.- Parameters:
subnets- the subnets- Returns:
- the CreateInstanceGroupOptions builder
-
applicationPort
Set the applicationPort.- Parameters:
applicationPort- the applicationPort- Returns:
- the CreateInstanceGroupOptions builder
-
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
Set the membershipCount.- Parameters:
membershipCount- the membershipCount- Returns:
- the CreateInstanceGroupOptions builder
-
name
Set the name.- Parameters:
name- the name- Returns:
- the CreateInstanceGroupOptions builder
-
resourceGroup
Set the resourceGroup.- Parameters:
resourceGroup- the resourceGroup- Returns:
- the CreateInstanceGroupOptions builder
-