Class ImmutableValidationDisabledUpdateCommand.Builder
java.lang.Object
io.dialob.session.engine.session.command.ImmutableValidationDisabledUpdateCommand.Builder
- Enclosing class:
ImmutableValidationDisabledUpdateCommand
@Generated(from="ValidationDisabledUpdateCommand",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableValidationDisabledUpdateCommand.Builder
extends Object
Builds instances of type
ImmutableValidationDisabledUpdateCommand.
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 TypeMethodDescriptionaddAllTriggers(Iterable<? extends Trigger<ErrorState>> elements) Adds elements totriggerslist.addTriggers(Trigger<ErrorState> element) Adds one element totriggerslist.addTriggers(Trigger<ErrorState>... elements) Adds elements totriggerslist.build()Builds a newImmutableValidationDisabledUpdateCommand.expression(Expression expression) Initializes the value for theexpressionattribute.from(ErrorUpdateCommand instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.ErrorUpdateCommandinstance.from(ValidationDisabledUpdateCommand instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.ValidationDisabledUpdateCommandinstance.Initializes the value for thetargetIdattribute.triggers(Iterable<? extends Trigger<ErrorState>> elements) Sets or replaces all elements fortriggerslist.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableValidationDisabledUpdateCommand.Builder from(ErrorUpdateCommand instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.ErrorUpdateCommandinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableValidationDisabledUpdateCommand.Builder from(ValidationDisabledUpdateCommand instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.ValidationDisabledUpdateCommandinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addTriggers
@CanIgnoreReturnValue public final ImmutableValidationDisabledUpdateCommand.Builder addTriggers(Trigger<ErrorState> element) Adds one element totriggerslist.- Parameters:
element- A triggers element- Returns:
thisbuilder for use in a chained invocation
-
addTriggers
@CanIgnoreReturnValue @SafeVarargs public final ImmutableValidationDisabledUpdateCommand.Builder addTriggers(Trigger<ErrorState>... elements) Adds elements totriggerslist.- Parameters:
elements- An array of triggers elements- Returns:
thisbuilder for use in a chained invocation
-
triggers
@CanIgnoreReturnValue public final ImmutableValidationDisabledUpdateCommand.Builder triggers(Iterable<? extends Trigger<ErrorState>> elements) Sets or replaces all elements fortriggerslist.- Parameters:
elements- An iterable of triggers elements- Returns:
thisbuilder for use in a chained invocation
-
addAllTriggers
@CanIgnoreReturnValue public final ImmutableValidationDisabledUpdateCommand.Builder addAllTriggers(Iterable<? extends Trigger<ErrorState>> elements) Adds elements totriggerslist.- Parameters:
elements- An iterable of triggers elements- Returns:
thisbuilder for use in a chained invocation
-
targetId
@CanIgnoreReturnValue public final ImmutableValidationDisabledUpdateCommand.Builder targetId(ErrorId targetId) Initializes the value for thetargetIdattribute.- Parameters:
targetId- The value for targetId- Returns:
thisbuilder for use in a chained invocation
-
expression
@CanIgnoreReturnValue public final ImmutableValidationDisabledUpdateCommand.Builder expression(Expression expression) Initializes the value for theexpressionattribute.- Parameters:
expression- The value for expression- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableValidationDisabledUpdateCommand.- Returns:
- An immutable instance of ValidationDisabledUpdateCommand
- Throws:
IllegalStateException- if any required attributes are missing
-