Class ImmutableVariableItem.Builder
java.lang.Object
io.dialob.session.engine.program.model.ImmutableVariableItem.Builder
- Enclosing class:
ImmutableVariableItem
@Generated(from="VariableItem",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableVariableItem.Builder
extends Object
Builds instances of type
ImmutableVariableItem.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableVariableItem.defaultValue(Object defaultValue) Initializes the optional valuedefaultValueto defaultValue.defaultValue(Optional<? extends Object> defaultValue) Initializes the optional valuedefaultValueto defaultValue.Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.Iteminstance.from(StructuralNode instance) Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.StructuralNodeinstance.from(VariableItem instance) Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.VariableIteminstance.Initializes the value for theidattribute.isAsync(boolean isAsync) Initializes the value for theisAsyncattribute.isPrototype(boolean isPrototype) Initializes the value for theisPrototypeattribute.isPublished(boolean isPublished) Initializes the value for theisPublishedattribute.Initializes the value for thetypeattribute.valueExpression(Expression valueExpression) Initializes the value for thevalueExpressionattribute.valueSetId(String valueSetId) Initializes the optional valuevalueSetIdto valueSetId.valueSetId(Optional<String> valueSetId) Initializes the optional valuevalueSetIdto valueSetId.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.Iteminstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.VariableIteminstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.StructuralNodeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
isPrototype
Initializes the value for theisPrototypeattribute.If not set, this attribute will have a default value as returned by the initializer of
isPrototype.- Parameters:
isPrototype- The value for isPrototype- Returns:
thisbuilder for use in a chained invocation
-
id
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
type
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
valueSetId
Initializes the optional valuevalueSetIdto valueSetId.- Parameters:
valueSetId- The value for valueSetId- Returns:
thisbuilder for chained invocation
-
valueSetId
@CanIgnoreReturnValue public final ImmutableVariableItem.Builder valueSetId(Optional<String> valueSetId) Initializes the optional valuevalueSetIdto valueSetId.- Parameters:
valueSetId- The value for valueSetId- Returns:
thisbuilder for use in a chained invocation
-
defaultValue
Initializes the optional valuedefaultValueto defaultValue.- Parameters:
defaultValue- The value for defaultValue- Returns:
thisbuilder for chained invocation
-
defaultValue
@CanIgnoreReturnValue public final ImmutableVariableItem.Builder defaultValue(Optional<? extends Object> defaultValue) Initializes the optional valuedefaultValueto defaultValue.- Parameters:
defaultValue- The value for defaultValue- Returns:
thisbuilder for use in a chained invocation
-
valueExpression
@CanIgnoreReturnValue public final ImmutableVariableItem.Builder valueExpression(Expression valueExpression) Initializes the value for thevalueExpressionattribute.- Parameters:
valueExpression- The value for valueExpression- Returns:
thisbuilder for use in a chained invocation
-
isAsync
Initializes the value for theisAsyncattribute.If not set, this attribute will have a default value as returned by the initializer of
isAsync.- Parameters:
isAsync- The value for isAsync- Returns:
thisbuilder for use in a chained invocation
-
isPublished
Initializes the value for theisPublishedattribute.If not set, this attribute will have a default value as returned by the initializer of
isPublished.- Parameters:
isPublished- The value for isPublished- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableVariableItem.- Returns:
- An immutable instance of VariableItem
- Throws:
IllegalStateException- if any required attributes are missing
-