Interface UsageAccountResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UsageAccountResult.Builder,,UsageAccountResult> SdkBuilder<UsageAccountResult.Builder,,UsageAccountResult> SdkPojo
- Enclosing class:
UsageAccountResult
@Mutable
@NotThreadSafe
public static interface UsageAccountResult.Builder
extends SdkPojo, CopyableBuilder<UsageAccountResult.Builder,UsageAccountResult>
-
Method Summary
Modifier and TypeMethodDescriptionThe Account ID that generated usage.default UsageAccountResult.Buildertotal(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaTotal.builder().When the
Consumercompletes,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:
-