Interface ChooseOneQuestion.Builder

  • Method Details

    • name

      A name for the question. The name must be unique among all the questions in the version, across all question types. The name can be up to 64 characters. It must start with a letter or an underscore, and can contain only the letters A-Z and a-z, the digits 0-9, and underscores.

      Parameters:
      name - A name for the question. The name must be unique among all the questions in the version, across all question types. The name can be up to 64 characters. It must start with a letter or an underscore, and can contain only the letters A-Z and a-z, the digits 0-9, and underscores.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • question

      ChooseOneQuestion.Builder question(String question)

      The text of the question. The text can be up to 256 bytes, encoded in UTF-8. It can contain letters in any language, combining marks, digits, spaces, and the following characters: . , ? ! ' " ( ) - : ; / & %, plus the curly apostrophe and quotation marks (U+2019, U+201C, and U+201D).

      Parameters:
      question - The text of the question. The text can be up to 256 bytes, encoded in UTF-8. It can contain letters in any language, combining marks, digits, spaces, and the following characters: . , ? ! ' " ( ) - : ; / & %, plus the curly apostrophe and quotation marks (U+2019, U+201C, and U+201D).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • options

      The options that Elemental Inference chooses from. You can specify from 2 to 26 options. The question counts as one item toward the limit of 100 scored items in a version, regardless of how many options it has.

      Parameters:
      options - The options that Elemental Inference chooses from. You can specify from 2 to 26 options. The question counts as one item toward the limit of 100 scored items in a version, regardless of how many options it has.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • options

      The options that Elemental Inference chooses from. You can specify from 2 to 26 options. The question counts as one item toward the limit of 100 scored items in a version, regardless of how many options it has.

      Parameters:
      options - The options that Elemental Inference chooses from. You can specify from 2 to 26 options. The question counts as one item toward the limit of 100 scored items in a version, regardless of how many options it has.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • options

      The options that Elemental Inference chooses from. You can specify from 2 to 26 options. The question counts as one item toward the limit of 100 scored items in a version, regardless of how many options it has.

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

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

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