Interface ClusterCreateBuilder
-
- All Superinterfaces:
Buildable.Builder<ClusterCreateBuilder,ClusterCreate>
- All Known Implementing Classes:
SenlinClusterCreate.SenlinClusterCreateConcreteBuilder
public interface ClusterCreateBuilder extends Buildable.Builder<ClusterCreateBuilder,ClusterCreate>
This interface describes a builder forClusterCreate
objects- Author:
- lion
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClusterCreateBuilder
desiredCapacity(int desiredCapacity)
Add the capacity, or initial size, of the clusterClusterCreateBuilder
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.-
Methods inherited from interface org.openstack4j.common.Buildable.Builder
build, from
-
-
-
-
Method Detail
-
name
ClusterCreateBuilder name(String name)
Add the name of the cluster.- Parameters:
name
- The name of the cluster.- Returns:
- ClusterCreateBuilder
-
metadata
ClusterCreateBuilder metadata(Map<String,String> metadata)
Add a set of key and value pairs to associate with the cluster.- Parameters:
metadata
- A set of key and value pairs to associate with the cluster.- Returns:
- ClusterCreateBuilder
-
desiredCapacity
ClusterCreateBuilder desiredCapacity(int desiredCapacity)
Add the capacity, or initial size, of the cluster- Parameters:
desiredCapacity
- The capacity, or initial size, of the cluster- Returns:
- ClusterCreateBuilder
-
maxSize
ClusterCreateBuilder maxSize(int maxSize)
Add the maximum size of the cluster.- Parameters:
maxSize
- The maximum size of the cluster.- Returns:
- ClusterCreateBuilder
-
minSize
ClusterCreateBuilder minSize(int minSize)
Add the minimum size of the cluster.- Parameters:
minSize
- The minimum size of the cluster.- Returns:
- ClusterCreateBuilder
-
profileID
ClusterCreateBuilder profileID(String profileID)
Add the ID or name of the profile for the cluster.- Parameters:
profileID
- The ID or name of the profile for the cluster.- Returns:
- ClusterCreateBuilder
-
timeout
ClusterCreateBuilder timeout(int timeout)
Add the timeout value, in minutes, for cluster creation.- Parameters:
timeout
- The timeout value, in minutes, for cluster creation.- Returns:
- ClusterCreateBuilder
-
-