public static class SaharaNodeGroupTemplate.ConcreteNodeGroupTemplateBuilder extends Object implements NodeGroupTemplateBuilder
Modifier and Type | Method and Description |
---|---|
NodeGroupTemplateBuilder |
addNodeProcess(String name)
Add a node process
|
NodeGroupTemplateBuilder |
addSecurityGroup(String id)
Add the security group.
|
NodeGroupTemplateBuilder |
addServiceConfig(String name,
ServiceConfig config)
Add a service config
|
NodeGroupTemplate |
build()
Creates and return the Model Entity M
|
NodeGroupTemplateBuilder |
description(String description)
|
NodeGroupTemplateBuilder |
flavor(String flavorId)
|
NodeGroupTemplateBuilder |
floatingIpPool(String networkId)
|
NodeGroupTemplateBuilder |
from(NodeGroupTemplate in)
Creates a Builder using the param M as the default values
|
NodeGroupTemplateBuilder |
hadoopVersion(String hadoopVersion)
|
NodeGroupTemplateBuilder |
name(String name)
|
NodeGroupTemplateBuilder |
pluginName(String pluginName)
|
NodeGroupTemplateBuilder |
setAutoSecurityGroup(boolean isAutoSecurityGroup)
Set the security group.
|
public NodeGroupTemplate build()
Buildable.Builder
build
in interface Buildable.Builder<NodeGroupTemplateBuilder,NodeGroupTemplate>
public NodeGroupTemplateBuilder from(NodeGroupTemplate in)
Buildable.Builder
from
in interface Buildable.Builder<NodeGroupTemplateBuilder,NodeGroupTemplate>
public NodeGroupTemplateBuilder name(String name)
NodeGroupTemplateBuilder
name
in interface NodeGroupTemplateBuilder
name
- the name of the node group templatepublic NodeGroupTemplateBuilder description(String description)
NodeGroupTemplateBuilder
description
in interface NodeGroupTemplateBuilder
description
- the description of the node group templatepublic NodeGroupTemplateBuilder hadoopVersion(String hadoopVersion)
NodeGroupTemplateBuilder
hadoopVersion
in interface NodeGroupTemplateBuilder
hadoopVersion
- the version of hadooppublic NodeGroupTemplateBuilder pluginName(String pluginName)
NodeGroupTemplateBuilder
pluginName
in interface NodeGroupTemplateBuilder
pluginName
- the name of the sahara pluginpublic NodeGroupTemplateBuilder floatingIpPool(String networkId)
NodeGroupTemplateBuilder
floatingIpPool
in interface NodeGroupTemplateBuilder
networkId
- the id of floating IP Poolpublic NodeGroupTemplateBuilder flavor(String flavorId)
NodeGroupTemplateBuilder
flavor
in interface NodeGroupTemplateBuilder
flavorId
- the id of flavorpublic NodeGroupTemplateBuilder setAutoSecurityGroup(boolean isAutoSecurityGroup)
NodeGroupTemplateBuilder
setAutoSecurityGroup
in interface NodeGroupTemplateBuilder
isAutoSecurityGroup
- true or falsepublic NodeGroupTemplateBuilder addSecurityGroup(String id)
NodeGroupTemplateBuilder
addSecurityGroup
in interface NodeGroupTemplateBuilder
id
- the idpublic NodeGroupTemplateBuilder addNodeProcess(String name)
NodeGroupTemplateBuilder
addNodeProcess
in interface NodeGroupTemplateBuilder
name
- the namepublic NodeGroupTemplateBuilder addServiceConfig(String name, ServiceConfig config)
NodeGroupTemplateBuilder
addServiceConfig
in interface NodeGroupTemplateBuilder
name
- the service nameconfig
- the configCopyright © 2017. All rights reserved.