Package io.dialob.session.engine.session
Class ImmutableAsyncFunctionCall.Builder
java.lang.Object
io.dialob.session.engine.session.ImmutableAsyncFunctionCall.Builder
- Enclosing class:
ImmutableAsyncFunctionCall
@Generated(from="AsyncFunctionCall",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableAsyncFunctionCall.Builder
extends Object
Builds instances of type
ImmutableAsyncFunctionCall.
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 TypeMethodDescriptionInitializes the value for theargsattribute.build()Builds a newImmutableAsyncFunctionCall.from(AsyncFunctionCall instance) Fill a builder with attribute values from the providedAsyncFunctionCallinstance.functionName(String functionName) Initializes the value for thefunctionNameattribute.Initializes the optional valueidto id.Initializes the optional valueidto id.Initializes the optional valuetargetIdto targetId.Initializes the optional valuetargetIdto targetId.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableAsyncFunctionCall.Builder from(AsyncFunctionCall instance) Fill a builder with attribute values from the providedAsyncFunctionCallinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
id
Initializes the optional valueidto id.- Parameters:
id- The value for id- Returns:
thisbuilder for chained invocation
-
id
Initializes the optional valueidto id.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
targetId
Initializes the optional valuetargetIdto targetId.- Parameters:
targetId- The value for targetId- Returns:
thisbuilder for chained invocation
-
targetId
@CanIgnoreReturnValue public final ImmutableAsyncFunctionCall.Builder targetId(Optional<? extends ItemId> targetId) Initializes the optional valuetargetIdto targetId.- Parameters:
targetId- The value for targetId- Returns:
thisbuilder for use in a chained invocation
-
functionName
@CanIgnoreReturnValue public final ImmutableAsyncFunctionCall.Builder functionName(String functionName) Initializes the value for thefunctionNameattribute.- Parameters:
functionName- The value for functionName- Returns:
thisbuilder for use in a chained invocation
-
args
Initializes the value for theargsattribute.- Parameters:
args- The elements for args- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableAsyncFunctionCall.- Returns:
- An immutable instance of AsyncFunctionCall
- Throws:
IllegalStateException- if any required attributes are missing
-