Interface SplitCreditRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BillingRequest.Builder,Buildable,CopyableBuilder<SplitCreditRequest.Builder,,SplitCreditRequest> SdkBuilder<SplitCreditRequest.Builder,,SplitCreditRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
SplitCreditRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time.The ID of the credit to split.Specifies whether to validate the request and return the result without changing any credit.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.portions(Collection<SplitPortion> portions) The new credits to create, one for each portion, in the order listed.portions(Consumer<SplitPortion.Builder>... portions) The new credits to create, one for each portion, in the order listed.portions(SplitPortion... portions) The new credits to create, one for each portion, in the order listed.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.billing.model.BillingRequest.Builder
buildMethods 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, sdkFields
-
Method Details
-
creditId
The ID of the credit to split.
- Parameters:
creditId- The ID of the credit to split.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portions
The new credits to create, one for each portion, in the order listed.
- Parameters:
portions- The new credits to create, one for each portion, in the order listed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portions
The new credits to create, one for each portion, in the order listed.
- Parameters:
portions- The new credits to create, one for each portion, in the order listed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portions
The new credits to create, one for each portion, in the order listed.
This is a convenience method that creates an instance of theSplitPortion.Builderavoiding the need to create one manually viaSplitPortion.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toportions(List<SplitPortion>).- Parameters:
portions- a consumer that will call methods onSplitPortion.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a successful request with the same client token and parameters, the retry completes without performing any further actions. If you reuse a client token with different parameters, the request fails with a
ValidationException.- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a successful request with the same client token and parameters, the retry completes without performing any further actions. If you reuse a client token with different parameters, the request fails with aValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
Specifies whether to validate the request and return the result without changing any credit.
- Parameters:
dryRun- Specifies whether to validate the request and return the result without changing any credit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SplitCreditRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SplitCreditRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-