Class ImmutableError.Builder
java.lang.Object
io.dialob.session.engine.program.model.ImmutableError.Builder
- Enclosing class:
ImmutableError
@Generated(from="Error",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableError.Builder
extends Object
Builds instances of type
ImmutableError.
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 newImmutableError.final ImmutableError.BuilderInitializes the value for thecodeattribute.final ImmutableError.BuilderdisabledExpression(Expression disabledExpression) Initializes the optional valuedisabledExpressionto disabledExpression.final ImmutableError.BuilderdisabledExpression(Optional<? extends Expression> disabledExpression) Initializes the optional valuedisabledExpressionto disabledExpression.final ImmutableError.BuilderFill a builder with attribute values from the providedio.dialob.session.engine.program.model.Errorinstance.final ImmutableError.Builderfrom(StructuralNode instance) Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.StructuralNodeinstance.final ImmutableError.BuilderisPrototype(boolean isPrototype) Initializes the value for theisPrototypeattribute.final ImmutableError.BuilderInitializes the value for theitemIdattribute.final ImmutableError.Builderlabel(Expression label) Initializes the value for thelabelattribute.final ImmutableError.BuildervalidationExpression(Expression validationExpression) Initializes the value for thevalidationExpressionattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.Errorinstance.- 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
-
code
Initializes the value for thecodeattribute.- Parameters:
code- The value for code (can benull)- Returns:
thisbuilder for use in a chained invocation
-
itemId
Initializes the value for theitemIdattribute.- Parameters:
itemId- The value for itemId- Returns:
thisbuilder for use in a chained invocation
-
validationExpression
@CanIgnoreReturnValue public final ImmutableError.Builder validationExpression(Expression validationExpression) Initializes the value for thevalidationExpressionattribute.- Parameters:
validationExpression- The value for validationExpression- Returns:
thisbuilder for use in a chained invocation
-
disabledExpression
@CanIgnoreReturnValue public final ImmutableError.Builder disabledExpression(Expression disabledExpression) Initializes the optional valuedisabledExpressionto disabledExpression.- Parameters:
disabledExpression- The value for disabledExpression- Returns:
thisbuilder for chained invocation
-
disabledExpression
@CanIgnoreReturnValue public final ImmutableError.Builder disabledExpression(Optional<? extends Expression> disabledExpression) Initializes the optional valuedisabledExpressionto disabledExpression.- Parameters:
disabledExpression- The value for disabledExpression- Returns:
thisbuilder for use in a chained invocation
-
label
Initializes the value for thelabelattribute.- Parameters:
label- The value for label (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableError.- Returns:
- An immutable instance of Error
- Throws:
IllegalStateException- if any required attributes are missing
-