Interface ListUsageTotalsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListUsageTotalsResponse.Builder,,ListUsageTotalsResponse> Inspector2Response.Builder,SdkBuilder<ListUsageTotalsResponse.Builder,,ListUsageTotalsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListUsageTotalsResponse
@Mutable
@NotThreadSafe
public static interface ListUsageTotalsResponse.Builder
extends Inspector2Response.Builder, SdkPojo, CopyableBuilder<ListUsageTotalsResponse.Builder,ListUsageTotalsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe pagination parameter to be used on the next list operation to retrieve more items.totals(Collection<UsageTotal> totals) An object with details on the total usage for the requested account.totals(Consumer<UsageTotal.Builder>... totals) An object with details on the total usage for the requested account.totals(UsageTotal... totals) An object with details on the total usage for the requested account.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.inspector2.model.Inspector2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
nextToken
The pagination parameter to be used on the next list operation to retrieve more items.
- Parameters:
nextToken- The pagination parameter to be used on the next list operation to retrieve more items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totals
An object with details on the total usage for the requested account.
- Parameters:
totals- An object with details on the total usage for the requested account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totals
An object with details on the total usage for the requested account.
- Parameters:
totals- An object with details on the total usage for the requested account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totals
An object with details on the total usage for the requested account.
This is a convenience method that creates an instance of theUsageTotal.Builderavoiding the need to create one manually viaUsageTotal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tototals(List<UsageTotal>).- Parameters:
totals- a consumer that will call methods onUsageTotal.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-