Interface QuestionMetric.Builder

    • Method Detail

      • questionId

        QuestionMetric.Builder questionId​(String questionId)
        Sets the value of the QuestionId property for this object.
        Parameters:
        questionId - The new value for the QuestionId property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • risk

        QuestionMetric.Builder risk​(String risk)
        Sets the value of the Risk property for this object.
        Parameters:
        risk - The new value for the Risk property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Risk, Risk
      • risk

        QuestionMetric.Builder risk​(Risk risk)
        Sets the value of the Risk property for this object.
        Parameters:
        risk - The new value for the Risk property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Risk, Risk
      • bestPractices

        QuestionMetric.Builder bestPractices​(Collection<BestPractice> bestPractices)

        The best practices, or choices, that have been identified as contributing to risk in a question.

        Parameters:
        bestPractices - The best practices, or choices, that have been identified as contributing to risk in a question.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bestPractices

        QuestionMetric.Builder bestPractices​(BestPractice... bestPractices)

        The best practices, or choices, that have been identified as contributing to risk in a question.

        Parameters:
        bestPractices - The best practices, or choices, that have been identified as contributing to risk in a question.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bestPractices

        QuestionMetric.Builder bestPractices​(Consumer<BestPractice.Builder>... bestPractices)

        The best practices, or choices, that have been identified as contributing to risk in a question.

        This is a convenience method that creates an instance of the BestPractice.Builder avoiding the need to create one manually via BestPractice.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #bestPractices(List).

        Parameters:
        bestPractices - a consumer that will call methods on BestPractice.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #bestPractices(java.util.Collection)