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
Modifier and TypeMethodDescriptionDetermines whether the result is estimated.groups
(Collection<Group> groups) The groups that this time period includes.groups
(Consumer<Group.Builder>... groups) The groups that this time period includes.The groups that this time period includes.default ResultByTime.Builder
timePeriod
(Consumer<DateInterval.Builder> timePeriod) The time period that the result covers.timePeriod
(DateInterval timePeriod) The time period that the result covers.total
(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 Details
-
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
The time period that the result covers.
This is a convenience method that creates an instance of theDateInterval.Builder
avoiding the need to create one manually viaDateInterval.builder()
.When the
Consumer
completes,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:
-
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
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
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
The groups that this time period includes.
This is a convenience method that creates an instance of theGroup.Builder
avoiding the need to create one manually viaGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroups(List<Group>)
.- 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:
-
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.
-