Package io.dialob.executor
Class ImmutableAsyncFunctionCall.Builder
- java.lang.Object
-
- io.dialob.executor.ImmutableAsyncFunctionCall.Builder
-
- Enclosing class:
- ImmutableAsyncFunctionCall
@NotThreadSafe public static final class ImmutableAsyncFunctionCall.Builder extends Object
Builds instances of typeImmutableAsyncFunctionCall. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableAsyncFunctionCall.Builderargs(Object... args)Initializes the value for theargsattribute.ImmutableAsyncFunctionCallbuild()Builds a newImmutableAsyncFunctionCall.ImmutableAsyncFunctionCall.Builderfrom(AsyncFunctionCall instance)Fill a builder with attribute values from the providedAsyncFunctionCallinstance.ImmutableAsyncFunctionCall.BuilderfunctionName(String functionName)Initializes the value for thefunctionNameattribute.ImmutableAsyncFunctionCall.Builderid(String id)Initializes the optional valueidto id.ImmutableAsyncFunctionCall.Builderid(Optional<String> id)Initializes the optional valueidto id.ImmutableAsyncFunctionCall.BuildertargetId(ItemId targetId)Initializes the optional valuetargetIdto targetId.ImmutableAsyncFunctionCall.BuildertargetId(Optional<? extends ItemId> targetId)Initializes the optional valuetargetIdto targetId.
-
-
-
Method Detail
-
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
@CanIgnoreReturnValue public final ImmutableAsyncFunctionCall.Builder id(String id)
Initializes the optional valueidto id.- Parameters:
id- The value for id- Returns:
thisbuilder for chained invocation
-
id
@CanIgnoreReturnValue public final ImmutableAsyncFunctionCall.Builder id(Optional<String> id)
Initializes the optional valueidto id.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
targetId
@CanIgnoreReturnValue public final ImmutableAsyncFunctionCall.Builder targetId(ItemId 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
@CanIgnoreReturnValue public final ImmutableAsyncFunctionCall.Builder args(Object... args)
Initializes the value for theargsattribute.- Parameters:
args- The elements for args- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableAsyncFunctionCall build()
Builds a newImmutableAsyncFunctionCall.- Returns:
- An immutable instance of AsyncFunctionCall
- Throws:
IllegalStateException- if any required attributes are missing
-
-