Interface UsageResourceResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UsageResourceResult.Builder,,UsageResourceResult> SdkBuilder<UsageResourceResult.Builder,,UsageResourceResult> SdkPojo
- Enclosing class:
UsageResourceResult
public static interface UsageResourceResult.Builder
extends SdkPojo, CopyableBuilder<UsageResourceResult.Builder,UsageResourceResult>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services resource that generated usage.default UsageResourceResult.Buildertotal(Consumer<Total.Builder> total) Represents the sum total of usage for the specified resource type.Represents the sum total of usage for the specified resource type.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, sdkFields
-
Method Details
-
resource
The Amazon Web Services resource that generated usage.
- Parameters:
resource- The Amazon Web Services resource that generated usage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
total
Represents the sum total of usage for the specified resource type.
- Parameters:
total- Represents the sum total of usage for the specified resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
total
Represents the sum total of usage for the specified resource type.
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:
-