Package net.solarnetwork.domain
Class BasicNodeControlInfo.Builder
java.lang.Object
net.solarnetwork.domain.BasicNodeControlInfo.Builder
- Enclosing class:
- BasicNodeControlInfo
Builder to build
BasicNodeControlInfo.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance from this builder.withControlId(String controlId) Configure a control ID.withPropertyName(String propertyName) Configure a property name.withReadonly(Boolean readonly) Configure a read-only flag.Configure a property type.Configure a unit.Configure a value.
-
Method Details
-
withControlId
Configure a control ID.- Parameters:
controlId- the control ID- Returns:
- this instance
-
withType
Configure a property type.- Parameters:
type- the property type- Returns:
- this instance
-
withValue
Configure a value.- Parameters:
value- the value- Returns:
- this instance
-
withReadonly
Configure a read-only flag.- Parameters:
readonly- true for a read-only property- Returns:
- this instance
-
withUnit
Configure a unit.- Parameters:
unit- the unit- Returns:
- this instance
-
withPropertyName
Configure a property name.- Parameters:
propertyName- the property name- Returns:
- this instance
-
build
Create a new instance from this builder.- Returns:
- the new instance
-