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.Builder
build
in interface Buildable.Builder<PolicyCreateBuilder,PolicyCreate>
public PolicyCreateBuilder from(PolicyCreate in)
Buildable.Builder
from
in interface Buildable.Builder<PolicyCreateBuilder,PolicyCreate>
public PolicyCreateBuilder name(String name)
PolicyCreateBuilder
name
in interface PolicyCreateBuilder
name
- The name for the policy.public PolicyCreateBuilder spec(Map<String,Object> spec)
PolicyCreateBuilder
spec
in interface PolicyCreateBuilder
spec
- A detailed specification based on the policy type.public PolicyCreateBuilder properties(Map<String,Object> properties)
PolicyCreateBuilder
properties
in interface PolicyCreateBuilder
properties
- The properties of the spec.public PolicyCreateBuilder adjustment(Map<String,String> adjustment)
PolicyCreateBuilder
adjustment
in interface PolicyCreateBuilder
adjustment
- The adjustment of the policy.public PolicyCreateBuilder minStep(int minStep)
PolicyCreateBuilder
minStep
in interface PolicyCreateBuilder
minStep
- The value of the min_step for policy.public PolicyCreateBuilder number(int number)
PolicyCreateBuilder
number
in interface PolicyCreateBuilder
number
- The number of the policy.public PolicyCreateBuilder adjustmentType(String adjustmentType)
PolicyCreateBuilder
adjustmentType
in interface PolicyCreateBuilder
adjustmentType
- The type of the adjustment for the policy.public PolicyCreateBuilder event(String event)
PolicyCreateBuilder
event
in interface PolicyCreateBuilder
event
- The event of the properties for the policy.public PolicyCreateBuilder specType(String specType)
PolicyCreateBuilder
specType
in interface PolicyCreateBuilder
specType
- The type of the spec for the policy.public PolicyCreateBuilder version(String version)
PolicyCreateBuilder
version
in interface PolicyCreateBuilder
version
- The version of the spec for the policy.Copyright © 2017. All rights reserved.