public static class SenlinClusterCreate.SenlinClusterCreateConcreteBuilder extends Object implements ClusterCreateBuilder
build()
to receive the
ClusterCreate
object.Constructor and Description |
---|
SenlinClusterCreateConcreteBuilder()
Constructor to create a
SenlinClusterCreate.SenlinClusterCreateConcreteBuilder object
with a new, empty SenlinClusterCreate object. |
SenlinClusterCreateConcreteBuilder(SenlinClusterCreate model)
Constructor for manipulation of an existing
SenlinClusterCreate
object. |
Modifier and Type | Method and Description |
---|---|
ClusterCreate |
build()
Creates and return the Model Entity M
|
ClusterCreateBuilder |
desiredCapacity(int desiredCapacity)
Add the capacity, or initial size, of the cluster
|
ClusterCreateBuilder |
from(ClusterCreate in)
Creates a Builder using the param M as the default values
|
ClusterCreateBuilder |
maxSize(int maxSize)
Add the maximum size of the cluster.
|
ClusterCreateBuilder |
metadata(Map<String,String> metadata)
Add a set of key and value pairs to associate with the cluster.
|
ClusterCreateBuilder |
minSize(int minSize)
Add the minimum size of the cluster.
|
ClusterCreateBuilder |
name(String name)
Add the name of the cluster.
|
ClusterCreateBuilder |
profileID(String profileID)
Add the ID or name of the profile for the cluster.
|
ClusterCreateBuilder |
timeout(int timeout)
Add the timeout value, in minutes, for cluster creation.
|
public SenlinClusterCreateConcreteBuilder()
SenlinClusterCreate.SenlinClusterCreateConcreteBuilder
object
with a new, empty SenlinClusterCreate
object.public SenlinClusterCreateConcreteBuilder(SenlinClusterCreate model)
SenlinClusterCreate
object.model
- the SenlinClusterCreate
object which is to be
modified.public ClusterCreate build()
Buildable.Builder
build
in interface Buildable.Builder<ClusterCreateBuilder,ClusterCreate>
public ClusterCreateBuilder from(ClusterCreate in)
Buildable.Builder
from
in interface Buildable.Builder<ClusterCreateBuilder,ClusterCreate>
public ClusterCreateBuilder name(String name)
ClusterCreateBuilder
name
in interface ClusterCreateBuilder
name
- The name of the cluster.public ClusterCreateBuilder metadata(Map<String,String> metadata)
ClusterCreateBuilder
metadata
in interface ClusterCreateBuilder
metadata
- A set of key and value pairs to associate with the cluster.public ClusterCreateBuilder desiredCapacity(int desiredCapacity)
ClusterCreateBuilder
desiredCapacity
in interface ClusterCreateBuilder
desiredCapacity
- The capacity, or initial size, of the clusterpublic ClusterCreateBuilder maxSize(int maxSize)
ClusterCreateBuilder
maxSize
in interface ClusterCreateBuilder
maxSize
- The maximum size of the cluster.public ClusterCreateBuilder minSize(int minSize)
ClusterCreateBuilder
minSize
in interface ClusterCreateBuilder
minSize
- The minimum size of the cluster.public ClusterCreateBuilder profileID(String profileID)
ClusterCreateBuilder
profileID
in interface ClusterCreateBuilder
profileID
- The ID or name of the profile for the cluster.public ClusterCreateBuilder timeout(int timeout)
ClusterCreateBuilder
timeout
in interface ClusterCreateBuilder
timeout
- The timeout value, in minutes, for cluster creation.Copyright © 2017. All rights reserved.