Interface SummaryMetricQueryResult.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SummaryMetricQueryResult.Builder,SummaryMetricQueryResult>,SdkBuilder<SummaryMetricQueryResult.Builder,SummaryMetricQueryResult>,SdkPojo
- Enclosing class:
- SummaryMetricQueryResult
public static interface SummaryMetricQueryResult.Builder extends SdkPojo, CopyableBuilder<SummaryMetricQueryResult.Builder,SummaryMetricQueryResult>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
queryId
SummaryMetricQueryResult.Builder queryId(String queryId)
The id of the query.
- Parameters:
queryId- The id of the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryStatus
SummaryMetricQueryResult.Builder queryStatus(String queryStatus)
The status of the metric query.
- Parameters:
queryStatus- The status of the metric query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MetricQueryStatus,MetricQueryStatus
-
queryStatus
SummaryMetricQueryResult.Builder queryStatus(MetricQueryStatus queryStatus)
The status of the metric query.
- Parameters:
queryStatus- The status of the metric query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MetricQueryStatus,MetricQueryStatus
-
error
SummaryMetricQueryResult.Builder error(String error)
The error message for the summary metric query.
- Parameters:
error- The error message for the summary metric query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
SummaryMetricQueryResult.Builder metricName(String metricName)
The name of the metric.
- Parameters:
metricName- The name of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MetricName,MetricName
-
metricName
SummaryMetricQueryResult.Builder metricName(MetricName metricName)
The name of the metric.
- Parameters:
metricName- The name of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MetricName,MetricName
-
dimensions
SummaryMetricQueryResult.Builder dimensions(Collection<Dimension> dimensions)
The dimensions of the metric.
- Parameters:
dimensions- The dimensions of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
SummaryMetricQueryResult.Builder dimensions(Dimension... dimensions)
The dimensions of the metric.
- Parameters:
dimensions- The dimensions of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
SummaryMetricQueryResult.Builder dimensions(Consumer<Dimension.Builder>... dimensions)
The dimensions of the metric.
This is a convenience method that creates an instance of theDimension.Builderavoiding the need to create one manually viaDimension.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#dimensions(List.) - Parameters:
dimensions- a consumer that will call methods onDimension.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#dimensions(java.util.Collection)
-
aggregationPeriod
SummaryMetricQueryResult.Builder aggregationPeriod(String aggregationPeriod)
The aggregation period of the metric.
- Parameters:
aggregationPeriod- The aggregation period of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AggregationPeriod,AggregationPeriod
-
aggregationPeriod
SummaryMetricQueryResult.Builder aggregationPeriod(AggregationPeriod aggregationPeriod)
The aggregation period of the metric.
- Parameters:
aggregationPeriod- The aggregation period of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AggregationPeriod,AggregationPeriod
-
startTimestamp
SummaryMetricQueryResult.Builder startTimestamp(Instant startTimestamp)
The start timestamp for summary metric query.
- Parameters:
startTimestamp- The start timestamp for summary metric query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTimestamp
SummaryMetricQueryResult.Builder endTimestamp(Instant endTimestamp)
The end timestamp for summary metric query.
- Parameters:
endTimestamp- The end timestamp for summary metric query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamps
SummaryMetricQueryResult.Builder timestamps(Collection<Instant> timestamps)
The timestamp of each aggregation result.
- Parameters:
timestamps- The timestamp of each aggregation result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamps
SummaryMetricQueryResult.Builder timestamps(Instant... timestamps)
The timestamp of each aggregation result.
- Parameters:
timestamps- The timestamp of each aggregation result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
SummaryMetricQueryResult.Builder values(Collection<MetricQueryValue> values)
The list of aggregated metrics.
- Parameters:
values- The list of aggregated metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
SummaryMetricQueryResult.Builder values(MetricQueryValue... values)
The list of aggregated metrics.
- Parameters:
values- The list of aggregated metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
SummaryMetricQueryResult.Builder values(Consumer<MetricQueryValue.Builder>... values)
The list of aggregated metrics.
This is a convenience method that creates an instance of theMetricQueryValue.Builderavoiding the need to create one manually viaMetricQueryValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#values(List.) - Parameters:
values- a consumer that will call methods onMetricQueryValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#values(java.util.Collection)
-
unit
SummaryMetricQueryResult.Builder unit(String unit)
The units of measurement to be used for interpreting the aggregation result.
- Parameters:
unit- The units of measurement to be used for interpreting the aggregation result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-