Interface ProfileQuestion.Builder

  • Method Details

    • questionId

      ProfileQuestion.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.
    • questionTitle

      ProfileQuestion.Builder questionTitle(String questionTitle)
      Sets the value of the QuestionTitle property for this object.
      Parameters:
      questionTitle - The new value for the QuestionTitle property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • questionDescription

      ProfileQuestion.Builder questionDescription(String questionDescription)
      Sets the value of the QuestionDescription property for this object.
      Parameters:
      questionDescription - The new value for the QuestionDescription property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • questionChoices

      ProfileQuestion.Builder questionChoices(Collection<ProfileChoice> questionChoices)

      The question choices.

      Parameters:
      questionChoices - The question choices.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • questionChoices

      ProfileQuestion.Builder questionChoices(ProfileChoice... questionChoices)

      The question choices.

      Parameters:
      questionChoices - The question choices.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • questionChoices

      ProfileQuestion.Builder questionChoices(Consumer<ProfileChoice.Builder>... questionChoices)

      The question choices.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to questionChoices(List<ProfileChoice>).

      Parameters:
      questionChoices - a consumer that will call methods on ProfileChoice.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • selectedChoiceIds

      ProfileQuestion.Builder selectedChoiceIds(Collection<String> selectedChoiceIds)

      The selected choices.

      Parameters:
      selectedChoiceIds - The selected choices.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • selectedChoiceIds

      ProfileQuestion.Builder selectedChoiceIds(String... selectedChoiceIds)

      The selected choices.

      Parameters:
      selectedChoiceIds - The selected choices.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • minSelectedChoices

      ProfileQuestion.Builder minSelectedChoices(Integer minSelectedChoices)

      The minimum number of selected choices.

      Parameters:
      minSelectedChoices - The minimum number of selected choices.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxSelectedChoices

      ProfileQuestion.Builder maxSelectedChoices(Integer maxSelectedChoices)

      The maximum number of selected choices.

      Parameters:
      maxSelectedChoices - The maximum number of selected choices.
      Returns:
      Returns a reference to this object so that method calls can be chained together.