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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConsolidatedReportMetric.Builderlenses(Collection<LensMetric> lenses)The metrics for the lenses in the workload.ConsolidatedReportMetric.Builderlenses(Consumer<LensMetric.Builder>... lenses)The metrics for the lenses in the workload.ConsolidatedReportMetric.Builderlenses(LensMetric... lenses)The metrics for the lenses in the workload.ConsolidatedReportMetric.BuilderlensesAppliedCount(Integer lensesAppliedCount)The total number of lenses applied to the workload.ConsolidatedReportMetric.BuildermetricType(String metricType)The metric type of a metric in the consolidated report.ConsolidatedReportMetric.BuildermetricType(MetricType metricType)The metric type of a metric in the consolidated report.ConsolidatedReportMetric.BuilderriskCounts(Map<Risk,Integer> riskCounts)Sets the value of the RiskCounts property for this object.ConsolidatedReportMetric.BuilderriskCountsWithStrings(Map<String,Integer> riskCounts)Sets the value of the RiskCounts property for this object.ConsolidatedReportMetric.BuilderupdatedAt(Instant updatedAt)Sets the value of the UpdatedAt property for this object.ConsolidatedReportMetric.BuilderworkloadArn(String workloadArn)Sets the value of the WorkloadArn property for this object.ConsolidatedReportMetric.BuilderworkloadId(String workloadId)Sets the value of the WorkloadId property for this object.ConsolidatedReportMetric.BuilderworkloadName(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 Detail
-
metricType
ConsolidatedReportMetric.Builder metricType(String 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,MetricType
-
metricType
ConsolidatedReportMetric.Builder metricType(MetricType 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,MetricType
-
riskCountsWithStrings
ConsolidatedReportMetric.Builder riskCountsWithStrings(Map<String,Integer> 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.
-
riskCounts
ConsolidatedReportMetric.Builder riskCounts(Map<Risk,Integer> 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
ConsolidatedReportMetric.Builder workloadId(String 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
ConsolidatedReportMetric.Builder workloadName(String 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
ConsolidatedReportMetric.Builder workloadArn(String 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
ConsolidatedReportMetric.Builder updatedAt(Instant 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
ConsolidatedReportMetric.Builder lenses(Collection<LensMetric> 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
ConsolidatedReportMetric.Builder lenses(LensMetric... 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
ConsolidatedReportMetric.Builder lenses(Consumer<LensMetric.Builder>... lenses)
The metrics for the lenses in the workload.
This is a convenience method that creates an instance of theLensMetric.Builderavoiding the need to create one manually viaLensMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#lenses(List.) - 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:
#lenses(java.util.Collection)
-
lensesAppliedCount
ConsolidatedReportMetric.Builder lensesAppliedCount(Integer 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.
-
-