Class ImmutableExecutorBody.Builder

  • Enclosing class:
    ImmutableExecutorBody

    @NotThreadSafe
    public static final class ImmutableExecutorBody.Builder
    extends Object
    Builds instances of type ImmutableExecutorBody. 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 ImmutableExecutorBody.Builder from​(DialobClient.ExecutorBody instance)
        Fill a builder with attribute values from the provided ExecutorBody 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
      • actions

        @CanIgnoreReturnValue
        public final ImmutableExecutorBody.Builder actions​(io.dialob.api.proto.Actions actions)
        Initializes the value for the actions attribute.
        Parameters:
        actions - The value for actions
        Returns:
        this builder for use in a chained invocation
      • questionnaire

        @CanIgnoreReturnValue
        public final ImmutableExecutorBody.Builder questionnaire​(io.dialob.api.questionnaire.Questionnaire questionnaire)
        Initializes the value for the questionnaire attribute.
        Parameters:
        questionnaire - The value for questionnaire
        Returns:
        this builder for use in a chained invocation