Interface UsageTotal.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<UsageTotal.Builder,UsageTotal>,SdkBuilder<UsageTotal.Builder,UsageTotal>,SdkPojo
- Enclosing class:
- UsageTotal
public static interface UsageTotal.Builder extends SdkPojo, CopyableBuilder<UsageTotal.Builder,UsageTotal>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UsageTotal.BuilderaccountId(String accountId)The account ID of the account that usage data was retrieved for.UsageTotal.Builderusage(Collection<Usage> usage)An object representing the total usage for an account.UsageTotal.Builderusage(Consumer<Usage.Builder>... usage)An object representing the total usage for an account.UsageTotal.Builderusage(Usage... usage)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, sdkFields
-
-
-
-
Method Detail
-
accountId
UsageTotal.Builder accountId(String 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
UsageTotal.Builder usage(Collection<Usage> 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
UsageTotal.Builder usage(Usage... 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
UsageTotal.Builder usage(Consumer<Usage.Builder>... usage)
An object representing the total usage for an account.
This is a convenience method that creates an instance of theUsage.Builderavoiding the need to create one manually viaUsage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#usage(List.) - 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:
#usage(java.util.Collection)
-
-