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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Choice.BuilderadditionalResources(Collection<AdditionalResources> additionalResources)The additional resources for a choice in a custom lens.Choice.BuilderadditionalResources(Consumer<AdditionalResources.Builder>... additionalResources)The additional resources for a choice in a custom lens.Choice.BuilderadditionalResources(AdditionalResources... additionalResources)The additional resources for a choice in a custom lens.Choice.BuilderchoiceId(String choiceId)Sets the value of the ChoiceId property for this object.Choice.Builderdescription(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.Choice.BuilderhelpfulResource(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.Choice.BuilderimprovementPlan(ChoiceContent improvementPlan)The improvement plan (both text and URL) for a particular choice.Choice.Buildertitle(String title)Sets the value of the Title property for this object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
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.
-
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 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:
helpfulResource(ChoiceContent)
-
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 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:
improvementPlan(ChoiceContent)
-
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 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
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 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
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
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 to#additionalResources(List.) - 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:
#additionalResources(java.util.Collection)
-
-