Class ImmutableAsyncFunctionCall.Builder

  • Enclosing class:
    ImmutableAsyncFunctionCall

    @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 Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutableAsyncFunctionCall.Builder from​(AsyncFunctionCall instance)
        Fill a builder with attribute values from the provided AsyncFunctionCall instance. 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:
        this builder for use in a chained invocation
      • id

        @CanIgnoreReturnValue
        public final ImmutableAsyncFunctionCall.Builder id​(String id)
        Initializes the optional value id to id.
        Parameters:
        id - The value for id
        Returns:
        this builder for chained invocation
      • targetId

        @CanIgnoreReturnValue
        public final ImmutableAsyncFunctionCall.Builder targetId​(ItemId targetId)
        Initializes the optional value targetId to targetId.
        Parameters:
        targetId - The value for targetId
        Returns:
        this builder for chained invocation
      • targetId

        @CanIgnoreReturnValue
        public final ImmutableAsyncFunctionCall.Builder targetId​(Optional<? extends ItemId> targetId)
        Initializes the optional value targetId to targetId.
        Parameters:
        targetId - The value for targetId
        Returns:
        this builder for use in a chained invocation
      • functionName

        @CanIgnoreReturnValue
        public final ImmutableAsyncFunctionCall.Builder functionName​(String functionName)
        Initializes the value for the functionName attribute.
        Parameters:
        functionName - The value for functionName
        Returns:
        this builder for use in a chained invocation
      • args

        @CanIgnoreReturnValue
        public final ImmutableAsyncFunctionCall.Builder args​(Object... args)
        Initializes the value for the args attribute.
        Parameters:
        args - The elements for args
        Returns:
        this builder for use in a chained invocation