Interface Metric.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Metric.Builder,Metric>, SdkBuilder<Metric.Builder,Metric>, SdkPojo
Enclosing class:
Metric

@Mutable @NotThreadSafe public static interface Metric.Builder extends SdkPojo, CopyableBuilder<Metric.Builder,Metric>
  • Method Details

    • namespace

      Metric.Builder namespace(String namespace)
      Sets the value of the Namespace property for this object.
      Parameters:
      namespace - The new value for the Namespace property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricName

      Metric.Builder metricName(String metricName)
      Sets the value of the MetricName property for this object.
      Parameters:
      metricName - The new value for the MetricName property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      Metric.Builder dimensions(Collection<Dimension> dimensions)
      Sets the value of the Dimensions property for this object.
      Parameters:
      dimensions - The new value for the Dimensions property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      Metric.Builder dimensions(Dimension... dimensions)
      Sets the value of the Dimensions property for this object.
      Parameters:
      dimensions - The new value for the Dimensions property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      Metric.Builder dimensions(Consumer<Dimension.Builder>... dimensions)
      Sets the value of the Dimensions property for this object. This is a convenience method that creates an instance of the Dimension.Builder avoiding the need to create one manually via Dimension.builder().

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

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