public static class MagnumCluster.ClusterConcreteBuilder extends Object implements ClusterBuilder
Constructor and Description |
---|
ClusterConcreteBuilder() |
ClusterConcreteBuilder(MagnumCluster model) |
Modifier and Type | Method and Description |
---|---|
Cluster |
build()
Creates and return the Model Entity M
|
ClusterBuilder |
clusterTemplateId(String clusterTemplateId) |
ClusterBuilder |
createTimeout(Integer createTimeout) |
ClusterBuilder |
discoveryUrl(String discoveryUrl) |
ClusterBuilder |
from(Cluster in)
Creates a Builder using the param M as the default values
|
ClusterBuilder |
keypair(String keypair) |
ClusterBuilder |
links(List<GenericLink> links) |
ClusterBuilder |
masterCount(Integer masterCount) |
ClusterBuilder |
name(String name) |
ClusterBuilder |
nodeCount(Integer nodeCount) |
ClusterBuilder |
stackId(String stackId) |
ClusterBuilder |
status(String status) |
ClusterBuilder |
uuid(String uuid) |
public ClusterConcreteBuilder()
public ClusterConcreteBuilder(MagnumCluster model)
public Cluster build()
Buildable.Builder
build
in interface Buildable.Builder<ClusterBuilder,Cluster>
public ClusterBuilder from(Cluster in)
Buildable.Builder
from
in interface Buildable.Builder<ClusterBuilder,Cluster>
public ClusterBuilder status(String status)
status
in interface ClusterBuilder
Cluster.getStatus()
public ClusterBuilder clusterTemplateId(String clusterTemplateId)
clusterTemplateId
in interface ClusterBuilder
Cluster.getClusterTemplateId()
public ClusterBuilder uuid(String uuid)
uuid
in interface ClusterBuilder
Cluster.getUuid()
public ClusterBuilder links(List<GenericLink> links)
links
in interface ClusterBuilder
Cluster.getLinks()
public ClusterBuilder stackId(String stackId)
stackId
in interface ClusterBuilder
Cluster.getStackId()
public ClusterBuilder masterCount(Integer masterCount)
masterCount
in interface ClusterBuilder
Cluster.getMasterCount()
public ClusterBuilder createTimeout(Integer createTimeout)
createTimeout
in interface ClusterBuilder
Cluster.getCreateTimeout()
public ClusterBuilder nodeCount(Integer nodeCount)
nodeCount
in interface ClusterBuilder
Cluster.getNodeCount()
public ClusterBuilder discoveryUrl(String discoveryUrl)
discoveryUrl
in interface ClusterBuilder
Cluster.getDiscoveryUrl()
public ClusterBuilder keypair(String keypair)
keypair
in interface ClusterBuilder
Cluster.getKeypair()
public ClusterBuilder name(String name)
name
in interface ClusterBuilder
Cluster.getName()
Copyright © 2017. All rights reserved.