Interface MetricDataQuery.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MetricDataQuery.Builder,,MetricDataQuery> SdkBuilder<MetricDataQuery.Builder,,MetricDataQuery> SdkPojo
- Enclosing class:
MetricDataQuery
@Mutable
@NotThreadSafe
public static interface MetricDataQuery.Builder
extends SdkPojo, CopyableBuilder<MetricDataQuery.Builder,MetricDataQuery>
-
Method Summary
Modifier and TypeMethodDescriptionSets the value of the AccountId property for this object.expression(String expression) Sets the value of the Expression property for this object.Sets the value of the Id property for this object.Sets the value of the Label property for this object.default MetricDataQuery.BuildermetricStat(Consumer<MetricStat.Builder> metricStat) Sets the value of the MetricStat property for this object.metricStat(MetricStat metricStat) Sets the value of the MetricStat property for this object.Sets the value of the Period property for this object.returnData(Boolean returnData) Sets the value of the ReturnData property for this object.Methods 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
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
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
Sets the value of the MetricStat property for this object. This is a convenience method that creates an instance of theMetricStat.Builderavoiding the need to create one manually viaMetricStat.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricStat(MetricStat).- Parameters:
metricStat- a consumer that will call methods onMetricStat.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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.
-