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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProfileQuestion.BuildermaxSelectedChoices(Integer maxSelectedChoices)The maximum number of selected choices.ProfileQuestion.BuilderminSelectedChoices(Integer minSelectedChoices)The minimum number of selected choices.ProfileQuestion.BuilderquestionChoices(Collection<ProfileChoice> questionChoices)The question choices.ProfileQuestion.BuilderquestionChoices(Consumer<ProfileChoice.Builder>... questionChoices)The question choices.ProfileQuestion.BuilderquestionChoices(ProfileChoice... questionChoices)The question choices.ProfileQuestion.BuilderquestionDescription(String questionDescription)Sets the value of the QuestionDescription property for this object.ProfileQuestion.BuilderquestionId(String questionId)Sets the value of the QuestionId property for this object.ProfileQuestion.BuilderquestionTitle(String questionTitle)Sets the value of the QuestionTitle property for this object.ProfileQuestion.BuilderselectedChoiceIds(String... selectedChoiceIds)The selected choices.ProfileQuestion.BuilderselectedChoiceIds(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 Detail
-
questionId
ProfileQuestion.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
ProfileQuestion.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
ProfileQuestion.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
ProfileQuestion.Builder questionChoices(Collection<ProfileChoice> 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
ProfileQuestion.Builder questionChoices(ProfileChoice... 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
ProfileQuestion.Builder questionChoices(Consumer<ProfileChoice.Builder>... questionChoices)
The question choices.
This is a convenience method that creates an instance of theProfileChoice.Builderavoiding the need to create one manually viaProfileChoice.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 onProfileChoice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#questionChoices(java.util.Collection)
-
selectedChoiceIds
ProfileQuestion.Builder selectedChoiceIds(Collection<String> 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
ProfileQuestion.Builder selectedChoiceIds(String... 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
ProfileQuestion.Builder minSelectedChoices(Integer 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
ProfileQuestion.Builder maxSelectedChoices(Integer 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.
-
-