Interface ProfileTemplateQuestion.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ProfileTemplateQuestion.Builder,
,ProfileTemplateQuestion> SdkBuilder<ProfileTemplateQuestion.Builder,
,ProfileTemplateQuestion> SdkPojo
- Enclosing class:
ProfileTemplateQuestion
@Mutable
@NotThreadSafe
public static interface ProfileTemplateQuestion.Builder
extends SdkPojo, CopyableBuilder<ProfileTemplateQuestion.Builder,ProfileTemplateQuestion>
-
Method Summary
Modifier and TypeMethodDescriptionmaxSelectedChoices
(Integer maxSelectedChoices) The maximum number of choices selected.minSelectedChoices
(Integer minSelectedChoices) The minimum number of choices selected.questionChoices
(Collection<ProfileTemplateChoice> questionChoices) The question choices.questionChoices
(Consumer<ProfileTemplateChoice.Builder>... questionChoices) The question choices.questionChoices
(ProfileTemplateChoice... questionChoices) The question choices.questionDescription
(String questionDescription) Sets the value of the QuestionDescription property for this object.questionId
(String questionId) Sets the value of the QuestionId property for this object.questionTitle
(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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
The question choices.
- Parameters:
questionChoices
- The question choices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.Builder
avoiding the need to create one manually viaProfileTemplateChoice.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toquestionChoices(List<ProfileTemplateChoice>)
.- 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:
-
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
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.
-