Interface ProfileQuestion.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ProfileQuestion.Builder,
,ProfileQuestion> SdkBuilder<ProfileQuestion.Builder,
,ProfileQuestion> SdkPojo
- Enclosing class:
ProfileQuestion
public static interface ProfileQuestion.Builder
extends SdkPojo, CopyableBuilder<ProfileQuestion.Builder,ProfileQuestion>
-
Method Summary
Modifier and TypeMethodDescriptionmaxSelectedChoices
(Integer maxSelectedChoices) The maximum number of selected choices.minSelectedChoices
(Integer minSelectedChoices) The minimum number of selected choices.questionChoices
(Collection<ProfileChoice> questionChoices) The question choices.questionChoices
(Consumer<ProfileChoice.Builder>... questionChoices) The question choices.questionChoices
(ProfileChoice... 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.selectedChoiceIds
(String... selectedChoiceIds) The selected choices.selectedChoiceIds
(Collection<String> selectedChoiceIds) The selected choices.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 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
The question choices.
This is a convenience method that creates an instance of theProfileChoice.Builder
avoiding the need to create one manually viaProfileChoice.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toquestionChoices(List<ProfileChoice>)
.- Parameters:
questionChoices
- a consumer that will call methods onProfileChoice.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selectedChoiceIds
The selected choices.
- Parameters:
selectedChoiceIds
- The selected choices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectedChoiceIds
The selected choices.
- Parameters:
selectedChoiceIds
- The selected choices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minSelectedChoices
The minimum number of selected choices.
- Parameters:
minSelectedChoices
- The minimum number of selected choices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxSelectedChoices
The maximum number of selected choices.
- Parameters:
maxSelectedChoices
- The maximum number of selected choices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-