Interface LensMetric.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LensMetric.Builder,,LensMetric> SdkBuilder<LensMetric.Builder,,LensMetric> SdkPojo
- Enclosing class:
LensMetric
public static interface LensMetric.Builder
extends SdkPojo, CopyableBuilder<LensMetric.Builder,LensMetric>
-
Method Summary
Modifier and TypeMethodDescriptionThe lens ARN.pillars(Collection<PillarMetric> pillars) The metrics for the pillars in a lens.pillars(Consumer<PillarMetric.Builder>... pillars) The metrics for the pillars in a lens.pillars(PillarMetric... pillars) The metrics for the pillars in a lens.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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
lensArn
The lens ARN.
- Parameters:
lensArn- The lens ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pillars
The metrics for the pillars in a lens.
- Parameters:
pillars- The metrics for the pillars in a lens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pillars
The metrics for the pillars in a lens.
- Parameters:
pillars- The metrics for the pillars in a lens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pillars
The metrics for the pillars in a lens.
This is a convenience method that creates an instance of thePillarMetric.Builderavoiding the need to create one manually viaPillarMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topillars(List<PillarMetric>).- Parameters:
pillars- a consumer that will call methods onPillarMetric.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-