Class ImmutableExecutorBody

    • Method Detail

      • getQuestionnaire

        public io.dialob.api.questionnaire.Questionnaire getQuestionnaire()
        Specified by:
        getQuestionnaire in interface DialobClient.ExecutorBody
        Returns:
        The value of the questionnaire attribute
      • withActions

        public final ImmutableExecutorBody withActions​(io.dialob.api.proto.Actions value)
        Copy the current immutable object by setting a value for the actions attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for actions
        Returns:
        A modified copy of the this object
      • withQuestionnaire

        public final ImmutableExecutorBody withQuestionnaire​(io.dialob.api.questionnaire.Questionnaire value)
        Copy the current immutable object by setting a value for the questionnaire attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for questionnaire
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableExecutorBody that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: actions, questionnaire.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value ExecutorBody with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableExecutorBody copyOf​(DialobClient.ExecutorBody instance)
        Creates an immutable copy of a DialobClient.ExecutorBody value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable ExecutorBody instance