Interface UsageAccountResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<UsageAccountResult.Builder,
,UsageAccountResult> SdkBuilder<UsageAccountResult.Builder,
,UsageAccountResult> SdkPojo
- Enclosing class:
UsageAccountResult
public static interface UsageAccountResult.Builder
extends SdkPojo, CopyableBuilder<UsageAccountResult.Builder,UsageAccountResult>
-
Method Summary
Modifier and TypeMethodDescriptionThe Account ID that generated usage.default UsageAccountResult.Builder
total
(Consumer<Total.Builder> total) Represents the total of usage for the Account ID.Represents the total of usage for the Account ID.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
-
accountId
The Account ID that generated usage.
- Parameters:
accountId
- The Account ID that generated usage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
total
Represents the total of usage for the Account ID.
- Parameters:
total
- Represents the total of usage for the Account ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
total
Represents the total of usage for the Account ID.
This is a convenience method that creates an instance of theTotal.Builder
avoiding the need to create one manually viaTotal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tototal(Total)
.- Parameters:
total
- a consumer that will call methods onTotal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-