Interface Choice.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Choice.Builder,,Choice> SdkBuilder<Choice.Builder,,Choice> SdkPojo
- Enclosing class:
Choice
-
Method Summary
Modifier and TypeMethodDescriptionadditionalResources(Collection<AdditionalResources> additionalResources) The additional resources for a choice in a custom lens.additionalResources(Consumer<AdditionalResources.Builder>... additionalResources) The additional resources for a choice in a custom lens.additionalResources(AdditionalResources... additionalResources) The additional resources for a choice in a custom lens.Sets the value of the ChoiceId property for this object.description(String description) Sets the value of the Description property for this object.default Choice.BuilderhelpfulResource(Consumer<ChoiceContent.Builder> helpfulResource) The helpful resource (both text and URL) for a particular choice.helpfulResource(ChoiceContent helpfulResource) The helpful resource (both text and URL) for a particular choice.default Choice.BuilderimprovementPlan(Consumer<ChoiceContent.Builder> improvementPlan) The improvement plan (both text and URL) for a particular choice.improvementPlan(ChoiceContent improvementPlan) The improvement plan (both text and URL) for a particular choice.Sets the value of the Title property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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
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 theChoiceContent.Builderavoiding the need to create one manually viaChoiceContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohelpfulResource(ChoiceContent).- Parameters:
helpfulResource- a consumer that will call methods onChoiceContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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 theChoiceContent.Builderavoiding the need to create one manually viaChoiceContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimprovementPlan(ChoiceContent).- Parameters:
improvementPlan- a consumer that will call methods onChoiceContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 typeIMPROVEMENT_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 typeIMPROVEMENT_PLAN, or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 typeIMPROVEMENT_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 typeIMPROVEMENT_PLAN, or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalResources
The additional resources for a choice in a custom lens.
A choice can have up to two additional resources: one of type
This is a convenience method that creates an instance of theHELPFUL_RESOURCE, one of typeIMPROVEMENT_PLAN, or both.AdditionalResources.Builderavoiding the need to create one manually viaAdditionalResources.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toadditionalResources(List<AdditionalResources>).- Parameters:
additionalResources- a consumer that will call methods onAdditionalResources.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-