public static class SenlinClusterActionCreate.SenlinClusterActionCreateConcreteBuilder extends Object implements ClusterActionCreateBuilder
build()
to receive the
ClusterCreate
object.Constructor and Description |
---|
SenlinClusterActionCreateConcreteBuilder()
Constructor to create a
SenlinClusterActionCreate.SenlinClusterActionCreateConcreteBuilder object
with a new, empty SenlinClusterActionCreate object. |
SenlinClusterActionCreateConcreteBuilder(SenlinClusterActionCreate model)
Constructor for manipulation of an existing
SenlinClusterActionCreate
object. |
Modifier and Type | Method and Description |
---|---|
ClusterActionCreateBuilder |
addNodes(Map<String,ArrayList<String>> addNodes)
Add one or more nodes, as a list, to a cluster
|
ClusterActionCreate |
build()
Creates and return the Model Entity M
|
ClusterActionCreateBuilder |
check(Map<String,String> check)
Check the health status of a cluster
|
ClusterActionCreateBuilder |
delNodes(Map<String,ArrayList<String>> delNodes)
Delete one or more nodes, as a list, from a cluster
|
ClusterActionCreateBuilder |
from(ClusterActionCreate in)
Creates a Builder using the param M as the default values
|
ClusterActionCreateBuilder |
policyAttach(Map<String,String> policyAttach)
Attach a policy to a cluster
|
ClusterActionCreateBuilder |
policyDetach(Map<String,String> policyDetach)
Detach a policy from a cluster
|
ClusterActionCreateBuilder |
policyUpdate(Map<String,String> policyUpdate)
Update the policy attachment
|
ClusterActionCreateBuilder |
recover(Map<String,String> recover)
Recover a cluster from its current unhealthy status
|
ClusterActionCreateBuilder |
resize(Map<String,String> resize)
Change the size of the cluster
|
ClusterActionCreateBuilder |
scaleIn(Map<String,String> scaleIn)
Shrink the cluster by count number of nodes
|
ClusterActionCreateBuilder |
scaleOut(Map<String,String> scaleOut)
Enlarge the cluster by count number of nodes
|
public SenlinClusterActionCreateConcreteBuilder()
SenlinClusterActionCreate.SenlinClusterActionCreateConcreteBuilder
object
with a new, empty SenlinClusterActionCreate
object.public SenlinClusterActionCreateConcreteBuilder(SenlinClusterActionCreate model)
SenlinClusterActionCreate
object.model
- the SenlinClusterActionCreate
object which is to be
modified.public ClusterActionCreate build()
Buildable.Builder
build
in interface Buildable.Builder<ClusterActionCreateBuilder,ClusterActionCreate>
public ClusterActionCreateBuilder from(ClusterActionCreate in)
Buildable.Builder
from
in interface Buildable.Builder<ClusterActionCreateBuilder,ClusterActionCreate>
public ClusterActionCreateBuilder addNodes(Map<String,ArrayList<String>> addNodes)
ClusterActionCreateBuilder
addNodes
in interface ClusterActionCreateBuilder
addNodes
- the list of nodepublic ClusterActionCreateBuilder delNodes(Map<String,ArrayList<String>> delNodes)
ClusterActionCreateBuilder
delNodes
in interface ClusterActionCreateBuilder
delNodes
- the list of nodepublic ClusterActionCreateBuilder scaleOut(Map<String,String> scaleOut)
ClusterActionCreateBuilder
scaleOut
in interface ClusterActionCreateBuilder
scaleOut
- count number of nodespublic ClusterActionCreateBuilder scaleIn(Map<String,String> scaleIn)
ClusterActionCreateBuilder
scaleIn
in interface ClusterActionCreateBuilder
scaleIn
- count number of nodespublic ClusterActionCreateBuilder resize(Map<String,String> resize)
ClusterActionCreateBuilder
resize
in interface ClusterActionCreateBuilder
resize
- size of the clusterpublic ClusterActionCreateBuilder check(Map<String,String> check)
ClusterActionCreateBuilder
check
in interface ClusterActionCreateBuilder
check
- check infopublic ClusterActionCreateBuilder recover(Map<String,String> recover)
ClusterActionCreateBuilder
recover
in interface ClusterActionCreateBuilder
recover
- its current unhealthy statuspublic ClusterActionCreateBuilder policyAttach(Map<String,String> policyAttach)
ClusterActionCreateBuilder
policyAttach
in interface ClusterActionCreateBuilder
policyAttach
- parameters for the policy attachmentpublic ClusterActionCreateBuilder policyDetach(Map<String,String> policyDetach)
ClusterActionCreateBuilder
policyDetach
in interface ClusterActionCreateBuilder
policyDetach
- parameters for the policy attachmentpublic ClusterActionCreateBuilder policyUpdate(Map<String,String> policyUpdate)
ClusterActionCreateBuilder
policyUpdate
in interface ClusterActionCreateBuilder
policyUpdate
- property settingsCopyright © 2017. All rights reserved.