Interface EfficiencyMetricsByGroup.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EfficiencyMetricsByGroup.Builder,,EfficiencyMetricsByGroup> SdkBuilder<EfficiencyMetricsByGroup.Builder,,EfficiencyMetricsByGroup> SdkPojo
- Enclosing class:
EfficiencyMetricsByGroup
-
Method Summary
Modifier and TypeMethodDescriptionThe value of the grouping dimension for this set of metrics.An explanation of why efficiency metrics could not be calculated for this group when the metricsByTime field is null.metricsByTime(Collection<MetricsByTime> metricsByTime) A list of time-series data points containing efficiency metrics for this group.metricsByTime(Consumer<MetricsByTime.Builder>... metricsByTime) A list of time-series data points containing efficiency metrics for this group.metricsByTime(MetricsByTime... metricsByTime) A list of time-series data points containing efficiency metrics for this group.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
-
metricsByTime
A list of time-series data points containing efficiency metrics for this group. Each data point includes an efficiency score, estimated savings, spending, and a timestamp corresponding to the specified granularity. This field is null when efficiency metrics cannot be calculated for the group, in which case the message field provides an explanation.
- Parameters:
metricsByTime- A list of time-series data points containing efficiency metrics for this group. Each data point includes an efficiency score, estimated savings, spending, and a timestamp corresponding to the specified granularity. This field is null when efficiency metrics cannot be calculated for the group, in which case the message field provides an explanation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricsByTime
A list of time-series data points containing efficiency metrics for this group. Each data point includes an efficiency score, estimated savings, spending, and a timestamp corresponding to the specified granularity. This field is null when efficiency metrics cannot be calculated for the group, in which case the message field provides an explanation.
- Parameters:
metricsByTime- A list of time-series data points containing efficiency metrics for this group. Each data point includes an efficiency score, estimated savings, spending, and a timestamp corresponding to the specified granularity. This field is null when efficiency metrics cannot be calculated for the group, in which case the message field provides an explanation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricsByTime
A list of time-series data points containing efficiency metrics for this group. Each data point includes an efficiency score, estimated savings, spending, and a timestamp corresponding to the specified granularity. This field is null when efficiency metrics cannot be calculated for the group, in which case the message field provides an explanation.
This is a convenience method that creates an instance of theMetricsByTime.Builderavoiding the need to create one manually viaMetricsByTime.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricsByTime(List<MetricsByTime>).- Parameters:
metricsByTime- a consumer that will call methods onMetricsByTime.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
group
The value of the grouping dimension for this set of metrics. For example, if grouped by account ID, this field contains the account ID. If no grouping is specified, this field is empty.
- Parameters:
group- The value of the grouping dimension for this set of metrics. For example, if grouped by account ID, this field contains the account ID. If no grouping is specified, this field is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
message
An explanation of why efficiency metrics could not be calculated for this group when the metricsByTime field is null. Common reasons include insufficient or inconclusive cost and usage data during the specified time period. This field is null or empty when metrics are successfully calculated.
- Parameters:
message- An explanation of why efficiency metrics could not be calculated for this group when the metricsByTime field is null. Common reasons include insufficient or inconclusive cost and usage data during the specified time period. This field is null or empty when metrics are successfully calculated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-