Interface ProfileTemplateQuestion.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ProfileTemplateQuestion.Builder,ProfileTemplateQuestion>,SdkBuilder<ProfileTemplateQuestion.Builder,ProfileTemplateQuestion>,SdkPojo
- Enclosing class:
- ProfileTemplateQuestion
public static interface ProfileTemplateQuestion.Builder extends SdkPojo, CopyableBuilder<ProfileTemplateQuestion.Builder,ProfileTemplateQuestion>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProfileTemplateQuestion.BuildermaxSelectedChoices(Integer maxSelectedChoices)The maximum number of choices selected.ProfileTemplateQuestion.BuilderminSelectedChoices(Integer minSelectedChoices)The minimum number of choices selected.ProfileTemplateQuestion.BuilderquestionChoices(Collection<ProfileTemplateChoice> questionChoices)The question choices.ProfileTemplateQuestion.BuilderquestionChoices(Consumer<ProfileTemplateChoice.Builder>... questionChoices)The question choices.ProfileTemplateQuestion.BuilderquestionChoices(ProfileTemplateChoice... questionChoices)The question choices.ProfileTemplateQuestion.BuilderquestionDescription(String questionDescription)Sets the value of the QuestionDescription property for this object.ProfileTemplateQuestion.BuilderquestionId(String questionId)Sets the value of the QuestionId property for this object.ProfileTemplateQuestion.BuilderquestionTitle(String questionTitle)Sets the value of the QuestionTitle 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
-
questionId
ProfileTemplateQuestion.Builder questionId(String questionId)
Sets the value of the QuestionId property for this object.- Parameters:
questionId- The new value for the QuestionId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
questionTitle
ProfileTemplateQuestion.Builder questionTitle(String questionTitle)
Sets the value of the QuestionTitle property for this object.- Parameters:
questionTitle- The new value for the QuestionTitle property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
questionDescription
ProfileTemplateQuestion.Builder questionDescription(String questionDescription)
Sets the value of the QuestionDescription property for this object.- Parameters:
questionDescription- The new value for the QuestionDescription property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
questionChoices
ProfileTemplateQuestion.Builder questionChoices(Collection<ProfileTemplateChoice> questionChoices)
The question choices.
- Parameters:
questionChoices- The question choices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
questionChoices
ProfileTemplateQuestion.Builder questionChoices(ProfileTemplateChoice... questionChoices)
The question choices.
- Parameters:
questionChoices- The question choices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
questionChoices
ProfileTemplateQuestion.Builder questionChoices(Consumer<ProfileTemplateChoice.Builder>... questionChoices)
The question choices.
This is a convenience method that creates an instance of theProfileTemplateChoice.Builderavoiding the need to create one manually viaProfileTemplateChoice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#questionChoices(List.) - Parameters:
questionChoices- a consumer that will call methods onProfileTemplateChoice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#questionChoices(java.util.Collection)
-
minSelectedChoices
ProfileTemplateQuestion.Builder minSelectedChoices(Integer minSelectedChoices)
The minimum number of choices selected.
- Parameters:
minSelectedChoices- The minimum number of choices selected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxSelectedChoices
ProfileTemplateQuestion.Builder maxSelectedChoices(Integer maxSelectedChoices)
The maximum number of choices selected.
- Parameters:
maxSelectedChoices- The maximum number of choices selected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-