Interface MetricDataQuery.Builder

  • Method Details

    • id

      Sets the value of the Id property for this object.
      Parameters:
      id - The new value for the Id property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricStat

      MetricDataQuery.Builder metricStat(MetricStat metricStat)
      Sets the value of the MetricStat property for this object.
      Parameters:
      metricStat - The new value for the MetricStat property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricStat

      default MetricDataQuery.Builder metricStat(Consumer<MetricStat.Builder> metricStat)
      Sets the value of the MetricStat property for this object. This is a convenience method that creates an instance of the MetricStat.Builder avoiding the need to create one manually via MetricStat.builder().

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

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

      MetricDataQuery.Builder expression(String expression)
      Sets the value of the Expression property for this object.
      Parameters:
      expression - The new value for the Expression property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • label

      Sets the value of the Label property for this object.
      Parameters:
      label - The new value for the Label property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • returnData

      MetricDataQuery.Builder returnData(Boolean returnData)
      Sets the value of the ReturnData property for this object.
      Parameters:
      returnData - The new value for the ReturnData property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • period

      Sets the value of the Period property for this object.
      Parameters:
      period - The new value for the Period property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountId

      MetricDataQuery.Builder accountId(String accountId)
      Sets the value of the AccountId property for this object.
      Parameters:
      accountId - The new value for the AccountId property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.