Interface PolicyCreateBuilder
-
- All Superinterfaces:
Buildable.Builder<PolicyCreateBuilder,PolicyCreate>
- All Known Implementing Classes:
SenlinPolicyCreate.SenlinPolicyCreateConcreteBuilder
public interface PolicyCreateBuilder extends Buildable.Builder<PolicyCreateBuilder,PolicyCreate>
This interface describes a builder forPolicyCreateobjects- Author:
- lion
-
-
Method Summary
All Methods Instance Methods Abstract 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.PolicyCreateBuilderevent(String event)Add the event of the properties for the policy.PolicyCreateBuilderminStep(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.-
Methods inherited from interface org.openstack4j.common.Buildable.Builder
build, from
-
-
-
-
Method Detail
-
name
PolicyCreateBuilder name(String name)
Add the name for the policy.- Parameters:
name- The name for the policy.- Returns:
- PolicyCreateBuilder
-
spec
PolicyCreateBuilder spec(Map<String,Object> spec)
Add a detailed specification based on the policy type.- Parameters:
spec- A detailed specification based on the policy type.- Returns:
- PolicyCreateBuilder
-
properties
PolicyCreateBuilder properties(Map<String,Object> properties)
Add the properties of the spec.- Parameters:
properties- The properties of the spec.- Returns:
- PolicyCreateBuilder
-
adjustment
PolicyCreateBuilder adjustment(Map<String,String> adjustment)
Add the adjustment of the policy.- Parameters:
adjustment- The adjustment of the policy.- Returns:
- PolicyCreateBuilder
-
minStep
PolicyCreateBuilder minStep(int minStep)
Add the value of the min_step for policy.- Parameters:
minStep- The value of the min_step for policy.- Returns:
- PolicyCreateBuilder
-
number
PolicyCreateBuilder number(int number)
Add the number of the policy.- Parameters:
number- The number of the policy.- Returns:
- PolicyCreateBuilder
-
adjustmentType
PolicyCreateBuilder adjustmentType(String adjustmentType)
Add the type of the adjustment for the policy.- Parameters:
adjustmentType- The type of the adjustment for the policy.- Returns:
- PolicyCreateBuilder
-
event
PolicyCreateBuilder event(String event)
Add the event of the properties for the policy.- Parameters:
event- The event of the properties for the policy.- Returns:
- PolicyCreateBuilder
-
specType
PolicyCreateBuilder specType(String specType)
Add the type of the spec for the policy.- Parameters:
specType- The type of the spec for the policy.- Returns:
- PolicyCreateBuilder
-
version
PolicyCreateBuilder version(String version)
Add the version of the spec for the policy.- Parameters:
version- The version of the spec for the policy.- Returns:
- PolicyCreateBuilder
-
-