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

    • appId

      Metric.Builder appId(String appId)

      The ID of the app the metric belongs to.

      Parameters:
      appId - The ID of the app the metric belongs to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricId

      Metric.Builder metricId(String metricId)

      The ID of the metric. We assign this value when you create the metric; it is unique within the app. Treat it as opaque.

      Parameters:
      metricId - The ID of the metric. We assign this value when you create the metric; it is unique within the app. Treat it as opaque.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Metric.Builder name(String name)

      A human-readable display name for the metric.

      Parameters:
      name - A human-readable display name for the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Metric.Builder description(String description)

      A description of what the metric measures.

      Parameters:
      description - A description of what the metric measures.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventType

      Metric.Builder eventType(String eventType)

      The event type this metric aggregates.

      Parameters:
      eventType - The event type this metric aggregates.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unitName

      Metric.Builder unitName(String unitName)

      The unit of measure for the metric.

      Parameters:
      unitName - The unit of measure for the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      Metric.Builder definition(MetricDefinition definition)

      The aggregation definition: filters, aggregation function, grouping, and period.

      Parameters:
      definition - The aggregation definition: filters, aggregation function, grouping, and period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      default Metric.Builder definition(Consumer<MetricDefinition.Builder> definition)

      The aggregation definition: filters, aggregation function, grouping, and period.

      This is a convenience method that creates an instance of the MetricDefinition.Builder avoiding the need to create one manually via MetricDefinition.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to definition(MetricDefinition).

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

      The Amazon Resource Name (ARN) of the metric. Output only.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the metric. Output only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stage

      Metric.Builder stage(String stage)

      The offering stage this metric was read from: DRAFT or PUBLISHED. Present on metric reads; absent on write responses.

      Parameters:
      stage - The offering stage this metric was read from: DRAFT or PUBLISHED. Present on metric reads; absent on write responses.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • stage

      Metric.Builder stage(PlanStage stage)

      The offering stage this metric was read from: DRAFT or PUBLISHED. Present on metric reads; absent on write responses.

      Parameters:
      stage - The offering stage this metric was read from: DRAFT or PUBLISHED. Present on metric reads; absent on write responses.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: