Class SenlinClusterCreate.SenlinClusterCreateConcreteBuilder
- java.lang.Object
-
- org.openstack4j.openstack.senlin.domain.SenlinClusterCreate.SenlinClusterCreateConcreteBuilder
-
- All Implemented Interfaces:
Buildable.Builder<ClusterCreateBuilder,ClusterCreate>,ClusterCreateBuilder
- Enclosing class:
- SenlinClusterCreate
public static class SenlinClusterCreate.SenlinClusterCreateConcreteBuilder extends Object implements ClusterCreateBuilder
A Builder to create a SenlinCluster. Usebuild()to receive theClusterCreateobject.- Author:
- lion
-
-
Constructor Summary
Constructors Constructor Description SenlinClusterCreateConcreteBuilder()Constructor to create aSenlinClusterCreate.SenlinClusterCreateConcreteBuilderobject with a new, emptySenlinClusterCreateobject.SenlinClusterCreateConcreteBuilder(SenlinClusterCreate model)Constructor for manipulation of an existingSenlinClusterCreateobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterCreatebuild()Creates and return the Model Entity MClusterCreateBuilderdesiredCapacity(int desiredCapacity)Add the capacity, or initial size, of the clusterClusterCreateBuilderfrom(ClusterCreate in)Creates a Builder using the param M as the default valuesClusterCreateBuildermaxSize(int maxSize)Add the maximum size of the cluster.ClusterCreateBuildermetadata(Map<String,String> metadata)Add a set of key and value pairs to associate with the cluster.ClusterCreateBuilderminSize(int minSize)Add the minimum size of the cluster.ClusterCreateBuildername(String name)Add the name of the cluster.ClusterCreateBuilderprofileID(String profileID)Add the ID or name of the profile for the cluster.ClusterCreateBuildertimeout(int timeout)Add the timeout value, in minutes, for cluster creation.
-
-
-
Constructor Detail
-
SenlinClusterCreateConcreteBuilder
public SenlinClusterCreateConcreteBuilder()
Constructor to create aSenlinClusterCreate.SenlinClusterCreateConcreteBuilderobject with a new, emptySenlinClusterCreateobject.
-
SenlinClusterCreateConcreteBuilder
public SenlinClusterCreateConcreteBuilder(SenlinClusterCreate model)
Constructor for manipulation of an existingSenlinClusterCreateobject.- Parameters:
model- theSenlinClusterCreateobject which is to be modified.
-
-
Method Detail
-
build
public ClusterCreate build()
Description copied from interface:Buildable.BuilderCreates and return the Model Entity M- Specified by:
buildin interfaceBuildable.Builder<ClusterCreateBuilder,ClusterCreate>- Returns:
- M instance
-
from
public ClusterCreateBuilder from(ClusterCreate in)
Description copied from interface:Buildable.BuilderCreates a Builder using the param M as the default values- Specified by:
fromin interfaceBuildable.Builder<ClusterCreateBuilder,ClusterCreate>- Returns:
- Builder
-
name
public ClusterCreateBuilder name(String name)
Description copied from interface:ClusterCreateBuilderAdd the name of the cluster.- Specified by:
namein interfaceClusterCreateBuilder- Parameters:
name- The name of the cluster.- Returns:
- ClusterCreateBuilder
-
metadata
public ClusterCreateBuilder metadata(Map<String,String> metadata)
Description copied from interface:ClusterCreateBuilderAdd a set of key and value pairs to associate with the cluster.- Specified by:
metadatain interfaceClusterCreateBuilder- Parameters:
metadata- A set of key and value pairs to associate with the cluster.- Returns:
- ClusterCreateBuilder
-
desiredCapacity
public ClusterCreateBuilder desiredCapacity(int desiredCapacity)
Description copied from interface:ClusterCreateBuilderAdd the capacity, or initial size, of the cluster- Specified by:
desiredCapacityin interfaceClusterCreateBuilder- Parameters:
desiredCapacity- The capacity, or initial size, of the cluster- Returns:
- ClusterCreateBuilder
-
maxSize
public ClusterCreateBuilder maxSize(int maxSize)
Description copied from interface:ClusterCreateBuilderAdd the maximum size of the cluster.- Specified by:
maxSizein interfaceClusterCreateBuilder- Parameters:
maxSize- The maximum size of the cluster.- Returns:
- ClusterCreateBuilder
-
minSize
public ClusterCreateBuilder minSize(int minSize)
Description copied from interface:ClusterCreateBuilderAdd the minimum size of the cluster.- Specified by:
minSizein interfaceClusterCreateBuilder- Parameters:
minSize- The minimum size of the cluster.- Returns:
- ClusterCreateBuilder
-
profileID
public ClusterCreateBuilder profileID(String profileID)
Description copied from interface:ClusterCreateBuilderAdd the ID or name of the profile for the cluster.- Specified by:
profileIDin interfaceClusterCreateBuilder- Parameters:
profileID- The ID or name of the profile for the cluster.- Returns:
- ClusterCreateBuilder
-
timeout
public ClusterCreateBuilder timeout(int timeout)
Description copied from interface:ClusterCreateBuilderAdd the timeout value, in minutes, for cluster creation.- Specified by:
timeoutin interfaceClusterCreateBuilder- Parameters:
timeout- The timeout value, in minutes, for cluster creation.- Returns:
- ClusterCreateBuilder
-
-