Interface QuestionMetric.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<QuestionMetric.Builder,QuestionMetric>,SdkBuilder<QuestionMetric.Builder,QuestionMetric>,SdkPojo
- Enclosing class:
- QuestionMetric
public static interface QuestionMetric.Builder extends SdkPojo, CopyableBuilder<QuestionMetric.Builder,QuestionMetric>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QuestionMetric.BuilderbestPractices(Collection<BestPractice> bestPractices)The best practices, or choices, that have been identified as contributing to risk in a question.QuestionMetric.BuilderbestPractices(Consumer<BestPractice.Builder>... bestPractices)The best practices, or choices, that have been identified as contributing to risk in a question.QuestionMetric.BuilderbestPractices(BestPractice... bestPractices)The best practices, or choices, that have been identified as contributing to risk in a question.QuestionMetric.BuilderquestionId(String questionId)Sets the value of the QuestionId property for this object.QuestionMetric.Builderrisk(String risk)Sets the value of the Risk property for this object.QuestionMetric.Builderrisk(Risk risk)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, sdkFields
-
-
-
-
Method Detail
-
questionId
QuestionMetric.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.
-
risk
QuestionMetric.Builder risk(String risk)
Sets the value of the Risk property for this object.
-
risk
QuestionMetric.Builder risk(Risk risk)
Sets the value of the Risk property for this object.
-
bestPractices
QuestionMetric.Builder bestPractices(Collection<BestPractice> 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
QuestionMetric.Builder bestPractices(BestPractice... 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
QuestionMetric.Builder bestPractices(Consumer<BestPractice.Builder>... 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.Builderavoiding the need to create one manually viaBestPractice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#bestPractices(List.) - 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:
#bestPractices(java.util.Collection)
-
-