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.Builderbuild in interface Buildable.Builder<ClusterCreateBuilder,ClusterCreate>public ClusterCreateBuilder from(ClusterCreate in)
Buildable.Builderfrom in interface Buildable.Builder<ClusterCreateBuilder,ClusterCreate>public ClusterCreateBuilder name(String name)
ClusterCreateBuildername in interface ClusterCreateBuildername - The name of the cluster.public ClusterCreateBuilder metadata(Map<String,String> metadata)
ClusterCreateBuildermetadata in interface ClusterCreateBuildermetadata - A set of key and value pairs to associate with the cluster.public ClusterCreateBuilder desiredCapacity(int desiredCapacity)
ClusterCreateBuilderdesiredCapacity in interface ClusterCreateBuilderdesiredCapacity - The capacity, or initial size, of the clusterpublic ClusterCreateBuilder maxSize(int maxSize)
ClusterCreateBuildermaxSize in interface ClusterCreateBuildermaxSize - The maximum size of the cluster.public ClusterCreateBuilder minSize(int minSize)
ClusterCreateBuilderminSize in interface ClusterCreateBuilderminSize - The minimum size of the cluster.public ClusterCreateBuilder profileID(String profileID)
ClusterCreateBuilderprofileID in interface ClusterCreateBuilderprofileID - The ID or name of the profile for the cluster.public ClusterCreateBuilder timeout(int timeout)
ClusterCreateBuildertimeout in interface ClusterCreateBuildertimeout - The timeout value, in minutes, for cluster creation.Copyright © 2017. All rights reserved.