Interface Choice.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Choice.Builder,Choice>, SdkBuilder<Choice.Builder,Choice>, SdkPojo
Enclosing class:
Choice

public static interface Choice.Builder extends SdkPojo, CopyableBuilder<Choice.Builder,Choice>
  • Method Details

    • 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.
    • helpfulResource

      default Choice.Builder helpfulResource(Consumer<ChoiceContent.Builder> 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.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to helpfulResource(ChoiceContent).

      Parameters:
      helpfulResource - a consumer that will call methods on ChoiceContent.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • improvementPlan

      default Choice.Builder improvementPlan(Consumer<ChoiceContent.Builder> 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.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to improvementPlan(ChoiceContent).

      Parameters:
      improvementPlan - a consumer that will call methods on ChoiceContent.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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<AdditionalResources>).

      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: