public static class SaharaNodeGroup.ConcreteNodeGroupBuilder extends Object implements NodeGroupBuilder
Modifier and Type | Method and Description |
---|---|
NodeGroupBuilder |
addNodeProcess(String name)
Add a node process
|
NodeGroupBuilder |
addSecurityGroup(String id)
Add the security group.
|
NodeGroupBuilder |
addServiceConfig(String name,
ServiceConfig config)
Add a service config
|
NodeGroup |
build()
Creates and return the Model Entity M
|
NodeGroupBuilder |
count(int count)
|
NodeGroupBuilder |
flavor(String flavorId)
|
NodeGroupBuilder |
floatingIpPool(String networkId)
|
NodeGroupBuilder |
from(NodeGroup in)
Creates a Builder using the param M as the default values
|
NodeGroupBuilder |
name(String name)
|
NodeGroupBuilder |
nodeGroupTemplateId(String templateId)
|
NodeGroupBuilder |
setAutoSecurityGroup(boolean isAutoSecurityGroup)
Set the security group.
|
public NodeGroup build()
Buildable.Builder
build
in interface Buildable.Builder<NodeGroupBuilder,NodeGroup>
public NodeGroupBuilder from(NodeGroup in)
Buildable.Builder
from
in interface Buildable.Builder<NodeGroupBuilder,NodeGroup>
public NodeGroupBuilder name(String name)
NodeGroupBuilder
name
in interface NodeGroupBuilder
name
- the name of the node grouppublic NodeGroupBuilder nodeGroupTemplateId(String templateId)
NodeGroupBuilder
nodeGroupTemplateId
in interface NodeGroupBuilder
templateId
- the id of the node group templatepublic NodeGroupBuilder count(int count)
NodeGroupBuilder
count
in interface NodeGroupBuilder
count
- the number of instances in the node grouppublic NodeGroupBuilder floatingIpPool(String networkId)
NodeGroupBuilder
floatingIpPool
in interface NodeGroupBuilder
networkId
- the id of floating IP Poolpublic NodeGroupBuilder flavor(String flavorId)
NodeGroupBuilder
flavor
in interface NodeGroupBuilder
flavorId
- the id of flavorpublic NodeGroupBuilder setAutoSecurityGroup(boolean isAutoSecurityGroup)
NodeGroupBuilder
setAutoSecurityGroup
in interface NodeGroupBuilder
isAutoSecurityGroup
- true or falsepublic NodeGroupBuilder addSecurityGroup(String id)
NodeGroupBuilder
addSecurityGroup
in interface NodeGroupBuilder
id
- the idpublic NodeGroupBuilder addNodeProcess(String name)
NodeGroupBuilder
addNodeProcess
in interface NodeGroupBuilder
name
- the namepublic NodeGroupBuilder addServiceConfig(String name, ServiceConfig config)
NodeGroupBuilder
addServiceConfig
in interface NodeGroupBuilder
name
- the service nameconfig
- the configCopyright © 2017. All rights reserved.