Class SenlinPolicyCreate.SenlinPolicyCreateConcreteBuilder
- java.lang.Object
-
- org.openstack4j.openstack.senlin.domain.SenlinPolicyCreate.SenlinPolicyCreateConcreteBuilder
-
- All Implemented Interfaces:
Buildable.Builder<PolicyCreateBuilder,PolicyCreate>,PolicyCreateBuilder
- Enclosing class:
- SenlinPolicyCreate
public static class SenlinPolicyCreate.SenlinPolicyCreateConcreteBuilder extends Object implements PolicyCreateBuilder
A Builder to create a SenlinPolicy. Usebuild()to receive thePolicyCreateobject.- Author:
- lion
-
-
Constructor Summary
Constructors Constructor Description SenlinPolicyCreateConcreteBuilder()Constructor to create aSenlinPolicyCreate.SenlinPolicyCreateConcreteBuilderobject with a new, emptySenlinPolicyCreateobject.SenlinPolicyCreateConcreteBuilder(SenlinPolicyCreate model)Constructor for manipulation of an existingSenlinPolicyCreateobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyCreateBuilderadjustment(Map<String,String> adjustment)Add the adjustment of the policy.PolicyCreateBuilderadjustmentType(String adjustmentType)Add the type of the adjustment for the policy.PolicyCreatebuild()Creates and return the Model Entity MPolicyCreateBuilderevent(String event)Add the event of the properties for the policy.PolicyCreateBuilderfrom(PolicyCreate in)Creates a Builder using the param M as the default valuesPolicyCreateBuilderminStep(int minStep)Add the value of the min_step for policy.PolicyCreateBuildername(String name)Add the name for the policy.PolicyCreateBuildernumber(int number)Add the number of the policy.PolicyCreateBuilderproperties(Map<String,Object> properties)Add the properties of the spec.PolicyCreateBuilderspec(Map<String,Object> spec)Add a detailed specification based on the policy type.PolicyCreateBuilderspecType(String specType)Add the type of the spec for the policy.PolicyCreateBuilderversion(String version)Add the version of the spec for the policy.
-
-
-
Constructor Detail
-
SenlinPolicyCreateConcreteBuilder
public SenlinPolicyCreateConcreteBuilder()
Constructor to create aSenlinPolicyCreate.SenlinPolicyCreateConcreteBuilderobject with a new, emptySenlinPolicyCreateobject.
-
SenlinPolicyCreateConcreteBuilder
public SenlinPolicyCreateConcreteBuilder(SenlinPolicyCreate model)
Constructor for manipulation of an existingSenlinPolicyCreateobject.- Parameters:
model- theSenlinPolicyCreateobject which is to be modified.
-
-
Method Detail
-
build
public PolicyCreate build()
Description copied from interface:Buildable.BuilderCreates and return the Model Entity M- Specified by:
buildin interfaceBuildable.Builder<PolicyCreateBuilder,PolicyCreate>- Returns:
- M instance
-
from
public PolicyCreateBuilder from(PolicyCreate in)
Description copied from interface:Buildable.BuilderCreates a Builder using the param M as the default values- Specified by:
fromin interfaceBuildable.Builder<PolicyCreateBuilder,PolicyCreate>- Returns:
- Builder
-
name
public PolicyCreateBuilder name(String name)
Description copied from interface:PolicyCreateBuilderAdd the name for the policy.- Specified by:
namein interfacePolicyCreateBuilder- Parameters:
name- The name for the policy.- Returns:
- PolicyCreateBuilder
-
spec
public PolicyCreateBuilder spec(Map<String,Object> spec)
Description copied from interface:PolicyCreateBuilderAdd a detailed specification based on the policy type.- Specified by:
specin interfacePolicyCreateBuilder- Parameters:
spec- A detailed specification based on the policy type.- Returns:
- PolicyCreateBuilder
-
properties
public PolicyCreateBuilder properties(Map<String,Object> properties)
Description copied from interface:PolicyCreateBuilderAdd the properties of the spec.- Specified by:
propertiesin interfacePolicyCreateBuilder- Parameters:
properties- The properties of the spec.- Returns:
- PolicyCreateBuilder
-
adjustment
public PolicyCreateBuilder adjustment(Map<String,String> adjustment)
Description copied from interface:PolicyCreateBuilderAdd the adjustment of the policy.- Specified by:
adjustmentin interfacePolicyCreateBuilder- Parameters:
adjustment- The adjustment of the policy.- Returns:
- PolicyCreateBuilder
-
minStep
public PolicyCreateBuilder minStep(int minStep)
Description copied from interface:PolicyCreateBuilderAdd the value of the min_step for policy.- Specified by:
minStepin interfacePolicyCreateBuilder- Parameters:
minStep- The value of the min_step for policy.- Returns:
- PolicyCreateBuilder
-
number
public PolicyCreateBuilder number(int number)
Description copied from interface:PolicyCreateBuilderAdd the number of the policy.- Specified by:
numberin interfacePolicyCreateBuilder- Parameters:
number- The number of the policy.- Returns:
- PolicyCreateBuilder
-
adjustmentType
public PolicyCreateBuilder adjustmentType(String adjustmentType)
Description copied from interface:PolicyCreateBuilderAdd the type of the adjustment for the policy.- Specified by:
adjustmentTypein interfacePolicyCreateBuilder- Parameters:
adjustmentType- The type of the adjustment for the policy.- Returns:
- PolicyCreateBuilder
-
event
public PolicyCreateBuilder event(String event)
Description copied from interface:PolicyCreateBuilderAdd the event of the properties for the policy.- Specified by:
eventin interfacePolicyCreateBuilder- Parameters:
event- The event of the properties for the policy.- Returns:
- PolicyCreateBuilder
-
specType
public PolicyCreateBuilder specType(String specType)
Description copied from interface:PolicyCreateBuilderAdd the type of the spec for the policy.- Specified by:
specTypein interfacePolicyCreateBuilder- Parameters:
specType- The type of the spec for the policy.- Returns:
- PolicyCreateBuilder
-
version
public PolicyCreateBuilder version(String version)
Description copied from interface:PolicyCreateBuilderAdd the version of the spec for the policy.- Specified by:
versionin interfacePolicyCreateBuilder- Parameters:
version- The version of the spec for the policy.- Returns:
- PolicyCreateBuilder
-
-