Interface PutMetricDataQueryDefinitionRequest.Builder

  • 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 example team/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 example team/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 Type specifies. CloudWatch doesn't validate or run the expression when you save it.

      Parameters:
      expression - The query expression, in the language that Type specifies. 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, use TagResource and UntagResource.

      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 omit Id. To change the tags of an existing definition, use TagResource and UntagResource.
      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, use TagResource and UntagResource.

      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 omit Id. To change the tags of an existing definition, use TagResource and UntagResource.
      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, use TagResource and UntagResource.

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

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

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

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.