Interface Choice.Builder

    • Method Detail

      • choiceId

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

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

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

        Choice.Builder helpfulResource​(ChoiceContent helpfulResource)

        The helpful resource (both text and URL) for a particular choice.

        This field only applies to custom lenses. Each choice can have only one helpful resource.

        Parameters:
        helpfulResource - The helpful resource (both text and URL) for a particular choice.

        This field only applies to custom lenses. Each choice can have only one helpful resource.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • improvementPlan

        Choice.Builder improvementPlan​(ChoiceContent improvementPlan)

        The improvement plan (both text and URL) for a particular choice.

        This field only applies to custom lenses. Each choice can have only one improvement plan.

        Parameters:
        improvementPlan - The improvement plan (both text and URL) for a particular choice.

        This field only applies to custom lenses. Each choice can have only one improvement plan.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • additionalResources

        Choice.Builder additionalResources​(Collection<AdditionalResources> additionalResources)

        The additional resources for a choice in a custom lens.

        A choice can have up to two additional resources: one of type HELPFUL_RESOURCE, one of type IMPROVEMENT_PLAN, or both.

        Parameters:
        additionalResources - The additional resources for a choice in a custom lens.

        A choice can have up to two additional resources: one of type HELPFUL_RESOURCE, one of type IMPROVEMENT_PLAN, or both.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • additionalResources

        Choice.Builder additionalResources​(AdditionalResources... additionalResources)

        The additional resources for a choice in a custom lens.

        A choice can have up to two additional resources: one of type HELPFUL_RESOURCE, one of type IMPROVEMENT_PLAN, or both.

        Parameters:
        additionalResources - The additional resources for a choice in a custom lens.

        A choice can have up to two additional resources: one of type HELPFUL_RESOURCE, one of type IMPROVEMENT_PLAN, or both.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • additionalResources

        Choice.Builder additionalResources​(Consumer<AdditionalResources.Builder>... additionalResources)

        The additional resources for a choice in a custom lens.

        A choice can have up to two additional resources: one of type HELPFUL_RESOURCE, one of type IMPROVEMENT_PLAN, or both.

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

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

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