Interface QuestionMetric.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<QuestionMetric.Builder,
,QuestionMetric> SdkBuilder<QuestionMetric.Builder,
,QuestionMetric> SdkPojo
- Enclosing class:
QuestionMetric
@Mutable
@NotThreadSafe
public static interface QuestionMetric.Builder
extends SdkPojo, CopyableBuilder<QuestionMetric.Builder,QuestionMetric>
-
Method Summary
Modifier and TypeMethodDescriptionbestPractices
(Collection<BestPractice> bestPractices) The best practices, or choices, that have been identified as contributing to risk in a question.bestPractices
(Consumer<BestPractice.Builder>... bestPractices) The best practices, or choices, that have been identified as contributing to risk in a question.bestPractices
(BestPractice... bestPractices) The best practices, or choices, that have been identified as contributing to risk in a question.questionId
(String questionId) Sets the value of the QuestionId property for this object.Sets the value of the Risk property for this object.Sets the value of the Risk 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.
-
risk
Sets the value of the Risk property for this object.- Parameters:
risk
- The new value for the Risk property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
risk
Sets the value of the Risk property for this object.- Parameters:
risk
- The new value for the Risk property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bestPractices
The best practices, or choices, that have been identified as contributing to risk in a question.
- Parameters:
bestPractices
- The best practices, or choices, that have been identified as contributing to risk in a question.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bestPractices
The best practices, or choices, that have been identified as contributing to risk in a question.
- Parameters:
bestPractices
- The best practices, or choices, that have been identified as contributing to risk in a question.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bestPractices
The best practices, or choices, that have been identified as contributing to risk in a question.
This is a convenience method that creates an instance of theBestPractice.Builder
avoiding the need to create one manually viaBestPractice.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobestPractices(List<BestPractice>)
.- Parameters:
bestPractices
- a consumer that will call methods onBestPractice.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-