Interface SplitCreditResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BillingResponse.Builder,Buildable,CopyableBuilder<SplitCreditResponse.Builder,,SplitCreditResponse> SdkBuilder<SplitCreditResponse.Builder,,SplitCreditResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SplitCreditResponse
@Mutable
@NotThreadSafe
public static interface SplitCreditResponse.Builder
extends BillingResponse.Builder, SdkPojo, CopyableBuilder<SplitCreditResponse.Builder,SplitCreditResponse>
-
Method Summary
Modifier and TypeMethodDescriptionchildCredits(Collection<ChildCredit> childCredits) The new credits, in the order of the requested portions.childCredits(Consumer<ChildCredit.Builder>... childCredits) The new credits, in the order of the requested portions.childCredits(ChildCredit... childCredits) The new credits, in the order of the requested portions.Specifies whether the request was a dry run.parentCreditId(String parentCreditId) The ID of the credit that was split.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
-
parentCreditId
The ID of the credit that was split.
- Parameters:
parentCreditId- The ID of the credit that was split.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
childCredits
The new credits, in the order of the requested portions.
- Parameters:
childCredits- The new credits, in the order of the requested portions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
childCredits
The new credits, in the order of the requested portions.
- Parameters:
childCredits- The new credits, in the order of the requested portions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
childCredits
The new credits, in the order of the requested portions.
This is a convenience method that creates an instance of theChildCredit.Builderavoiding the need to create one manually viaChildCredit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochildCredits(List<ChildCredit>).- Parameters:
childCredits- a consumer that will call methods onChildCredit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dryRun
Specifies whether the request was a dry run. If
true, the operation didn't change any credit.- Parameters:
dryRun- Specifies whether the request was a dry run. Iftrue, the operation didn't change any credit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-