Interface PillarMetric.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PillarMetric.Builder,
,PillarMetric> SdkBuilder<PillarMetric.Builder,
,PillarMetric> SdkPojo
- Enclosing class:
PillarMetric
@Mutable
@NotThreadSafe
public static interface PillarMetric.Builder
extends SdkPojo, CopyableBuilder<PillarMetric.Builder,PillarMetric>
-
Method Summary
Modifier and TypeMethodDescriptionSets the value of the PillarId property for this object.questions
(Collection<QuestionMetric> questions) The questions that have been identified as risks in the pillar.questions
(Consumer<QuestionMetric.Builder>... questions) The questions that have been identified as risks in the pillar.questions
(QuestionMetric... questions) The questions that have been identified as risks in the pillar.riskCounts
(Map<Risk, Integer> riskCounts) Sets the value of the RiskCounts property for this object.riskCountsWithStrings
(Map<String, Integer> riskCounts) Sets the value of the RiskCounts 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
-
pillarId
Sets the value of the PillarId property for this object.- Parameters:
pillarId
- The new value for the PillarId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
riskCountsWithStrings
Sets the value of the RiskCounts property for this object.- Parameters:
riskCounts
- The new value for the RiskCounts property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
riskCounts
Sets the value of the RiskCounts property for this object.- Parameters:
riskCounts
- The new value for the RiskCounts property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
questions
The questions that have been identified as risks in the pillar.
- Parameters:
questions
- The questions that have been identified as risks in the pillar.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
questions
The questions that have been identified as risks in the pillar.
- Parameters:
questions
- The questions that have been identified as risks in the pillar.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
questions
The questions that have been identified as risks in the pillar.
This is a convenience method that creates an instance of theQuestionMetric.Builder
avoiding the need to create one manually viaQuestionMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toquestions(List<QuestionMetric>)
.- Parameters:
questions
- a consumer that will call methods onQuestionMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-