public static class SenlinPolicyCreate.SenlinPolicyCreateConcreteBuilder extends Object implements PolicyCreateBuilder
build() to receive the
PolicyCreate object.| Constructor and Description |
|---|
SenlinPolicyCreateConcreteBuilder()
Constructor to create a
SenlinPolicyCreate.SenlinPolicyCreateConcreteBuilder object
with a new, empty SenlinPolicyCreate object. |
SenlinPolicyCreateConcreteBuilder(SenlinPolicyCreate model)
Constructor for manipulation of an existing
SenlinPolicyCreate
object. |
| Modifier and Type | Method and 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.
|
PolicyCreate |
build()
Creates and return the Model Entity M
|
PolicyCreateBuilder |
event(String event)
Add the event of the properties for the policy.
|
PolicyCreateBuilder |
from(PolicyCreate in)
Creates a Builder using the param M as the default values
|
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.
|
public SenlinPolicyCreateConcreteBuilder()
SenlinPolicyCreate.SenlinPolicyCreateConcreteBuilder object
with a new, empty SenlinPolicyCreate object.public SenlinPolicyCreateConcreteBuilder(SenlinPolicyCreate model)
SenlinPolicyCreate
object.model - the SenlinPolicyCreate object which is to be
modified.public PolicyCreate build()
Buildable.Builderbuild in interface Buildable.Builder<PolicyCreateBuilder,PolicyCreate>public PolicyCreateBuilder from(PolicyCreate in)
Buildable.Builderfrom in interface Buildable.Builder<PolicyCreateBuilder,PolicyCreate>public PolicyCreateBuilder name(String name)
PolicyCreateBuildername in interface PolicyCreateBuildername - The name for the policy.public PolicyCreateBuilder spec(Map<String,Object> spec)
PolicyCreateBuilderspec in interface PolicyCreateBuilderspec - A detailed specification based on the policy type.public PolicyCreateBuilder properties(Map<String,Object> properties)
PolicyCreateBuilderproperties in interface PolicyCreateBuilderproperties - The properties of the spec.public PolicyCreateBuilder adjustment(Map<String,String> adjustment)
PolicyCreateBuilderadjustment in interface PolicyCreateBuilderadjustment - The adjustment of the policy.public PolicyCreateBuilder minStep(int minStep)
PolicyCreateBuilderminStep in interface PolicyCreateBuilderminStep - The value of the min_step for policy.public PolicyCreateBuilder number(int number)
PolicyCreateBuildernumber in interface PolicyCreateBuildernumber - The number of the policy.public PolicyCreateBuilder adjustmentType(String adjustmentType)
PolicyCreateBuilderadjustmentType in interface PolicyCreateBuilderadjustmentType - The type of the adjustment for the policy.public PolicyCreateBuilder event(String event)
PolicyCreateBuilderevent in interface PolicyCreateBuilderevent - The event of the properties for the policy.public PolicyCreateBuilder specType(String specType)
PolicyCreateBuilderspecType in interface PolicyCreateBuilderspecType - The type of the spec for the policy.public PolicyCreateBuilder version(String version)
PolicyCreateBuilderversion in interface PolicyCreateBuilderversion - The version of the spec for the policy.Copyright © 2017. All rights reserved.