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 Details

    • 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

      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

      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

      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

      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 the LensMetric.Builder avoiding the need to create one manually via LensMetric.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to lenses(List<LensMetric>).

      Parameters:
      lenses - a consumer that will call methods on LensMetric.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.