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 forPolicyCreate
objects- Author:
- lion
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PolicyCreateBuilder
adjustment(Map<String,String> adjustment)
Add the adjustment of the policy.PolicyCreateBuilder
adjustmentType(String adjustmentType)
Add the type of the adjustment for the policy.PolicyCreateBuilder
event(String event)
Add the event of the properties for the policy.PolicyCreateBuilder
minStep(int minStep)
Add the value of the min_step for policy.PolicyCreateBuilder
name(String name)
Add the name for the policy.PolicyCreateBuilder
number(int number)
Add the number of the policy.PolicyCreateBuilder
properties(Map<String,Object> properties)
Add the properties of the spec.PolicyCreateBuilder
spec(Map<String,Object> spec)
Add a detailed specification based on the policy type.PolicyCreateBuilder
specType(String specType)
Add the type of the spec for the policy.PolicyCreateBuilder
version(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
-
-