Interface ResultByTime.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResultByTime.Builder,ResultByTime>,SdkBuilder<ResultByTime.Builder,ResultByTime>,SdkPojo
- Enclosing class:
- ResultByTime
public static interface ResultByTime.Builder extends SdkPojo, CopyableBuilder<ResultByTime.Builder,ResultByTime>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ResultByTime.Builderestimated(Boolean estimated)Determines whether the result is estimated.ResultByTime.Buildergroups(Collection<Group> groups)The groups that this time period includes.ResultByTime.Buildergroups(Consumer<Group.Builder>... groups)The groups that this time period includes.ResultByTime.Buildergroups(Group... groups)The groups that this time period includes.default ResultByTime.BuildertimePeriod(Consumer<DateInterval.Builder> timePeriod)The time period that the result covers.ResultByTime.BuildertimePeriod(DateInterval timePeriod)The time period that the result covers.ResultByTime.Buildertotal(Map<String,MetricValue> total)The total amount of cost or usage accrued during the time period.-
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
-
timePeriod
ResultByTime.Builder timePeriod(DateInterval timePeriod)
The time period that the result covers.
- Parameters:
timePeriod- The time period that the result covers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timePeriod
default ResultByTime.Builder timePeriod(Consumer<DateInterval.Builder> timePeriod)
The time period that the result covers.
This is a convenience method that creates an instance of theDateInterval.Builderavoiding the need to create one manually viaDateInterval.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimePeriod(DateInterval).- Parameters:
timePeriod- a consumer that will call methods onDateInterval.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
timePeriod(DateInterval)
-
total
ResultByTime.Builder total(Map<String,MetricValue> total)
The total amount of cost or usage accrued during the time period.
- Parameters:
total- The total amount of cost or usage accrued during the time period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
ResultByTime.Builder groups(Collection<Group> groups)
The groups that this time period includes.
- Parameters:
groups- The groups that this time period includes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
ResultByTime.Builder groups(Group... groups)
The groups that this time period includes.
- Parameters:
groups- The groups that this time period includes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
ResultByTime.Builder groups(Consumer<Group.Builder>... groups)
The groups that this time period includes.
This is a convenience method that creates an instance of theGroup.Builderavoiding the need to create one manually viaGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#groups(List.) - Parameters:
groups- a consumer that will call methods onGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#groups(java.util.Collection)
-
estimated
ResultByTime.Builder estimated(Boolean estimated)
Determines whether the result is estimated.
- Parameters:
estimated- Determines whether the result is estimated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-