Interface ConsolidatedReportMetric.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ConsolidatedReportMetric.Builder,
,ConsolidatedReportMetric> SdkBuilder<ConsolidatedReportMetric.Builder,
,ConsolidatedReportMetric> SdkPojo
- Enclosing class:
ConsolidatedReportMetric
public static interface ConsolidatedReportMetric.Builder
extends SdkPojo, CopyableBuilder<ConsolidatedReportMetric.Builder,ConsolidatedReportMetric>
-
Method Summary
Modifier and TypeMethodDescriptionlenses
(Collection<LensMetric> lenses) The metrics for the lenses in the workload.lenses
(Consumer<LensMetric.Builder>... lenses) The metrics for the lenses in the workload.lenses
(LensMetric... lenses) The metrics for the lenses in the workload.lensesAppliedCount
(Integer lensesAppliedCount) The total number of lenses applied to the workload.metricType
(String metricType) The metric type of a metric in the consolidated report.metricType
(MetricType metricType) The metric type of a metric in the consolidated report.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.Sets the value of the UpdatedAt property for this object.workloadArn
(String workloadArn) Sets the value of the WorkloadArn property for this object.workloadId
(String workloadId) Sets the value of the WorkloadId property for this object.workloadName
(String workloadName) Sets the value of the WorkloadName 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 Details
-
metricType
The metric type of a metric in the consolidated report. Currently only WORKLOAD metric types are supported.
- Parameters:
metricType
- The metric type of a metric in the consolidated report. Currently only WORKLOAD metric types are supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricType
The metric type of a metric in the consolidated report. Currently only WORKLOAD metric types are supported.
- Parameters:
metricType
- The metric type of a metric in the consolidated report. Currently only WORKLOAD metric types are supported.- 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.
-
workloadId
Sets the value of the WorkloadId property for this object.- Parameters:
workloadId
- The new value for the WorkloadId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workloadName
Sets the value of the WorkloadName property for this object.- Parameters:
workloadName
- The new value for the WorkloadName property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workloadArn
Sets the value of the WorkloadArn property for this object.- Parameters:
workloadArn
- The new value for the WorkloadArn property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
Sets the value of the UpdatedAt property for this object.- Parameters:
updatedAt
- The new value for the UpdatedAt property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lenses
The metrics for the lenses in the workload.
- Parameters:
lenses
- The metrics for the lenses in the workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lenses
The metrics for the lenses in the workload.
- Parameters:
lenses
- The metrics for the lenses in the workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lenses
The metrics for the lenses in the workload.
This is a convenience method that creates an instance of theLensMetric.Builder
avoiding the need to create one manually viaLensMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolenses(List<LensMetric>)
.- Parameters:
lenses
- a consumer that will call methods onLensMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lensesAppliedCount
The total number of lenses applied to the workload.
- Parameters:
lensesAppliedCount
- The total number of lenses applied to the workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-