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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UsageResourceResult.Builderresource(String resource)The 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.UsageResourceResult.Buildertotal(Total total)Represents the sum total of usage for the specified resource type.-
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
-
resource
UsageResourceResult.Builder resource(String 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
UsageResourceResult.Builder total(Total 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
default UsageResourceResult.Builder total(Consumer<Total.Builder> 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:
total(Total)
-
-