Interface Metric.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Metric.Builder,,Metric> SdkBuilder<Metric.Builder,,Metric> SdkPojo
- Enclosing class:
Metric
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the app the metric belongs to.The Amazon Resource Name (ARN) of the metric.default Metric.Builderdefinition(Consumer<MetricDefinition.Builder> definition) The aggregation definition: filters, aggregation function, grouping, and period.definition(MetricDefinition definition) The aggregation definition: filters, aggregation function, grouping, and period.description(String description) A description of what the metric measures.The event type this metric aggregates.The ID of the metric.A human-readable display name for the metric.The offering stage this metric was read from: DRAFT or PUBLISHED.The offering stage this metric was read from: DRAFT or PUBLISHED.The unit of measure for the metric.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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
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
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
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
The aggregation definition: filters, aggregation function, grouping, and period.
This is a convenience method that creates an instance of theMetricDefinition.Builderavoiding the need to create one manually viaMetricDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(MetricDefinition).- Parameters:
definition- a consumer that will call methods onMetricDefinition.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
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
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:
-