Interface PutMetricDataQueryDefinitionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchRequest.Builder,CopyableBuilder<PutMetricDataQueryDefinitionRequest.Builder,,PutMetricDataQueryDefinitionRequest> SdkBuilder<PutMetricDataQueryDefinitionRequest.Builder,,PutMetricDataQueryDefinitionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutMetricDataQueryDefinitionRequest
-
Method Summary
Modifier and TypeMethodDescriptionexpression(String expression) The query expression, in the language thatTypespecifies.The ID of the metric data query definition to update.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The name of the metric data query definition.tags(Collection<Tag> tags) A list of key-value pairs to associate with the metric data query definition.tags(Consumer<Tag.Builder>... tags) A list of key-value pairs to associate with the metric data query definition.A list of key-value pairs to associate with the metric data query definition.The language of the expression.The language of the expression.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
buildMethods 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
-
id
The ID of the metric data query definition to update. Omit this parameter to create a definition. CloudWatch then generates the ID and returns it in the response.
- Parameters:
id- The ID of the metric data query definition to update. Omit this parameter to create a definition. CloudWatch then generates the ID and returns it in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
path
The name of the metric data query definition. Use slashes (
/) to organize definitions into folders, for exampleteam/web/latency. The path must meet the following requirements:-
It must be unique in your account and Region.
-
It can't start or end with a slash.
-
It can't contain an empty folder name (
//). -
It can be at most 1,015 bytes when encoded as UTF-8.
- Parameters:
path- The name of the metric data query definition. Use slashes (/) to organize definitions into folders, for exampleteam/web/latency. The path must meet the following requirements:-
It must be unique in your account and Region.
-
It can't start or end with a slash.
-
It can't contain an empty folder name (
//). -
It can be at most 1,015 bytes when encoded as UTF-8.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
expression
The query expression, in the language that
Typespecifies. CloudWatch doesn't validate or run the expression when you save it.- Parameters:
expression- The query expression, in the language thatTypespecifies. CloudWatch doesn't validate or run the expression when you save it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The language of the expression. Valid values are the following:
-
PROMQL– A PromQL query. -
SQL– A CloudWatch Metrics Insights query. -
METRIC_MATH– A metric math expression.
- Parameters:
type- The language of the expression. Valid values are the following:-
PROMQL– A PromQL query. -
SQL– A CloudWatch Metrics Insights query. -
METRIC_MATH– A metric math expression.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
type
The language of the expression. Valid values are the following:
-
PROMQL– A PromQL query. -
SQL– A CloudWatch Metrics Insights query. -
METRIC_MATH– A metric math expression.
- Parameters:
type- The language of the expression. Valid values are the following:-
PROMQL– A PromQL query. -
SQL– A CloudWatch Metrics Insights query. -
METRIC_MATH– A metric math expression.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
tags
A list of key-value pairs to associate with the metric data query definition. You can use tags to categorize definitions and to control access to them. Tags are applied only when the request creates a definition, that is, when you omit
Id. To change the tags of an existing definition, useTagResourceandUntagResource.- Parameters:
tags- A list of key-value pairs to associate with the metric data query definition. You can use tags to categorize definitions and to control access to them. Tags are applied only when the request creates a definition, that is, when you omitId. To change the tags of an existing definition, useTagResourceandUntagResource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs to associate with the metric data query definition. You can use tags to categorize definitions and to control access to them. Tags are applied only when the request creates a definition, that is, when you omit
Id. To change the tags of an existing definition, useTagResourceandUntagResource.- Parameters:
tags- A list of key-value pairs to associate with the metric data query definition. You can use tags to categorize definitions and to control access to them. Tags are applied only when the request creates a definition, that is, when you omitId. To change the tags of an existing definition, useTagResourceandUntagResource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs to associate with the metric data query definition. You can use tags to categorize definitions and to control access to them. Tags are applied only when the request creates a definition, that is, when you omit
This is a convenience method that creates an instance of theId. To change the tags of an existing definition, useTagResourceandUntagResource.Tag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutMetricDataQueryDefinitionRequest.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
PutMetricDataQueryDefinitionRequest.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.
-