Interface GetCreditsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BillingResponse.Builder,Buildable,CopyableBuilder<GetCreditsResponse.Builder,,GetCreditsResponse> SdkBuilder<GetCreditsResponse.Builder,,GetCreditsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetCreditsResponse
@Mutable
@NotThreadSafe
public static interface GetCreditsResponse.Builder
extends BillingResponse.Builder, SdkPojo, CopyableBuilder<GetCreditsResponse.Builder,GetCreditsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncredits(Collection<CreditData> credits) The list of credits matching the request.credits(Consumer<CreditData.Builder>... credits) The list of credits matching the request.credits(CreditData... credits) The list of credits matching the request.Methods inherited from interface software.amazon.awssdk.services.billing.model.BillingResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
credits
The list of credits matching the request. Returns an empty list when no credits exist.
- Parameters:
credits- The list of credits matching the request. Returns an empty list when no credits exist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credits
The list of credits matching the request. Returns an empty list when no credits exist.
- Parameters:
credits- The list of credits matching the request. Returns an empty list when no credits exist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credits
The list of credits matching the request. Returns an empty list when no credits exist.
This is a convenience method that creates an instance of theCreditData.Builderavoiding the need to create one manually viaCreditData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocredits(List<CreditData>).- Parameters:
credits- a consumer that will call methods onCreditData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-