Interface LensMetric.Builder

  • Method Details

    • lensArn

      LensMetric.Builder lensArn(String 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

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

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

      Parameters:
      pillars - a consumer that will call methods on PillarMetric.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • riskCountsWithStrings

      LensMetric.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

      LensMetric.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.