Interface CostEstimate.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CostEstimate.Builder,
,CostEstimate> SdkBuilder<CostEstimate.Builder,
,CostEstimate> SdkPojo
- Enclosing class:
CostEstimate
public static interface CostEstimate.Builder
extends SdkPojo, CopyableBuilder<CostEstimate.Builder,CostEstimate>
-
Method Summary
Modifier and TypeMethodDescriptionresultsByTime
(Collection<EstimateByTime> resultsByTime) The cost estimate result that's associated with a time period.resultsByTime
(Consumer<EstimateByTime.Builder>... resultsByTime) The cost estimate result that's associated with a time period.resultsByTime
(EstimateByTime... resultsByTime) The cost estimate result that's associated with a time period.The types of usage that are included in the estimate, such as costs, usage, or data transfer.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
-
usageType
The types of usage that are included in the estimate, such as costs, usage, or data transfer.
- Parameters:
usageType
- The types of usage that are included in the estimate, such as costs, usage, or data transfer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultsByTime
The cost estimate result that's associated with a time period.
- Parameters:
resultsByTime
- The cost estimate result that's associated with a time period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultsByTime
The cost estimate result that's associated with a time period.
- Parameters:
resultsByTime
- The cost estimate result that's associated with a time period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultsByTime
The cost estimate result that's associated with a time period.
This is a convenience method that creates an instance of theEstimateByTime.Builder
avoiding the need to create one manually viaEstimateByTime.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresultsByTime(List<EstimateByTime>)
.- Parameters:
resultsByTime
- a consumer that will call methods onEstimateByTime.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-