Interface NodeGroupBuilder
-
- All Superinterfaces:
Buildable.Builder<NodeGroupBuilder,NodeGroup>
- All Known Implementing Classes:
SaharaNodeGroup.ConcreteNodeGroupBuilder
public interface NodeGroupBuilder extends Buildable.Builder<NodeGroupBuilder,NodeGroup>
Builder interface used forNodeGroupobject.- Author:
- Ekasit Kijsipongse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NodeGroupBuilderaddNodeProcess(String name)Add a node processNodeGroupBuilderaddSecurityGroup(String id)Add the security group.NodeGroupBuilderaddServiceConfig(String name, ServiceConfig config)Add a service configNodeGroupBuildercount(int count)NodeGroupBuilderflavor(String flavorId)NodeGroupBuilderfloatingIpPool(String networkId)NodeGroupBuildername(String name)NodeGroupBuildernodeGroupTemplateId(String templateId)NodeGroupBuildersetAutoSecurityGroup(boolean isAutoSecurityGroup)Set the security group.-
Methods inherited from interface org.openstack4j.common.Buildable.Builder
build, from
-
-
-
-
Method Detail
-
name
NodeGroupBuilder name(String name)
- Parameters:
name- the name of the node group- Returns:
- NodeGroupBuilder
-
count
NodeGroupBuilder count(int count)
- Parameters:
count- the number of instances in the node group- Returns:
- NodeGroupBuilder
-
nodeGroupTemplateId
NodeGroupBuilder nodeGroupTemplateId(String templateId)
- Parameters:
templateId- the id of the node group template- Returns:
- NodeGroupBuilder
-
floatingIpPool
NodeGroupBuilder floatingIpPool(String networkId)
- Parameters:
networkId- the id of floating IP Pool- Returns:
- NodeGroupBuilder
-
flavor
NodeGroupBuilder flavor(String flavorId)
- Parameters:
flavorId- the id of flavor- Returns:
- NodeGroupBuilder
-
setAutoSecurityGroup
NodeGroupBuilder setAutoSecurityGroup(boolean isAutoSecurityGroup)
Set the security group.- Parameters:
isAutoSecurityGroup- true or false- Returns:
- this builder
-
addSecurityGroup
NodeGroupBuilder addSecurityGroup(String id)
Add the security group.- Parameters:
id- the id- Returns:
- this builder
-
addNodeProcess
NodeGroupBuilder addNodeProcess(String name)
Add a node process- Parameters:
name- the name- Returns:
- this builder
-
addServiceConfig
NodeGroupBuilder addServiceConfig(String name, ServiceConfig config)
Add a service config- Parameters:
name- the service nameconfig- the config- Returns:
- this builder
-
-