Interface UpdateMetricRequest.Builder
- All Superinterfaces:
AppMonetizationRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<UpdateMetricRequest.Builder,,UpdateMetricRequest> SdkBuilder<UpdateMetricRequest.Builder,,UpdateMetricRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateMetricRequest
@Mutable
@NotThreadSafe
public static interface UpdateMetricRequest.Builder
extends AppMonetizationRequest.Builder, SdkPojo, CopyableBuilder<UpdateMetricRequest.Builder,UpdateMetricRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the app.default UpdateMetricRequest.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 to update.A human-readable display name for the metric.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The unit of measure for the metric (for example, "requests"), in lowercase snake_case.Methods inherited from interface software.amazon.awssdk.services.appmonetization.model.AppMonetizationRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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.
- Parameters:
appId- The ID of the app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricId
The ID of the metric to update.
- Parameters:
metricId- The ID of the metric to update.- 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 (for example, "requests"), in lowercase snake_case.
- Parameters:
unitName- The unit of measure for the metric (for example, "requests"), in lowercase snake_case.- 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:
-
overrideConfiguration
UpdateMetricRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateMetricRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-