Interface UsageTotal.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<UsageTotal.Builder,
,UsageTotal> SdkBuilder<UsageTotal.Builder,
,UsageTotal> SdkPojo
- Enclosing class:
UsageTotal
@Mutable
@NotThreadSafe
public static interface UsageTotal.Builder
extends SdkPojo, CopyableBuilder<UsageTotal.Builder,UsageTotal>
-
Method Summary
Modifier and TypeMethodDescriptionThe account ID of the account that usage data was retrieved for.usage
(Collection<Usage> usage) An object representing the total usage for an account.usage
(Consumer<Usage.Builder>... usage) An object representing the total usage for an account.An object representing the total usage for an account.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, sdkFieldNameToField, sdkFields
-
Method Details
-
accountId
The account ID of the account that usage data was retrieved for.
- Parameters:
accountId
- The account ID of the account that usage data was retrieved for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usage
An object representing the total usage for an account.
- Parameters:
usage
- An object representing the total usage for an account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usage
An object representing the total usage for an account.
- Parameters:
usage
- An object representing the total usage for an account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usage
An object representing the total usage for an account.
This is a convenience method that creates an instance of theUsage.Builder
avoiding the need to create one manually viaUsage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tousage(List<Usage>)
.- Parameters:
usage
- a consumer that will call methods onUsage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-