public interface ClusterBuilder extends Buildable.Builder<ClusterBuilder,Cluster>
Cluster
object.
For mapping from object builder to JSON requestModifier and Type | Method and Description |
---|---|
ClusterBuilder |
addNodeGroup(NodeGroup nodeGroup)
Add a node group
|
ClusterBuilder |
addServiceConfig(String name,
ServiceConfig config)
Add a cluster config
|
ClusterBuilder |
hadoopVersion(String hadoopVersion)
|
ClusterBuilder |
image(String imageId)
|
ClusterBuilder |
keypairName(String keypairName)
See
Cluster#getKeypairName() |
ClusterBuilder |
managementNetworkId(String networkId)
|
ClusterBuilder |
name(String name)
|
ClusterBuilder |
pluginName(String pluginName)
|
ClusterBuilder |
template(String clusterTemplateId)
|
build, from
ClusterBuilder name(String name)
name
- the name of the clusterClusterBuilder hadoopVersion(String hadoopVersion)
hadoopVersion
- the version of hadoopClusterBuilder pluginName(String pluginName)
pluginName
- the name of the sahara pluginClusterBuilder template(String clusterTemplateId)
clusterTemplateId
- the id of cluster templateClusterBuilder image(String imageId)
imageId
- the id of imageClusterBuilder keypairName(String keypairName)
Cluster#getKeypairName()
keypairName
- the name of key pairClusterBuilder managementNetworkId(String networkId)
networkId
- the id of management networkClusterBuilder addServiceConfig(String name, ServiceConfig config)
name
- the service nameconfig
- the configClusterBuilder addNodeGroup(NodeGroup nodeGroup)
nodeGroup
- the node groupCopyright © 2017. All rights reserved.