Interface PutCustomChargesRequest.Builder
- All Superinterfaces:
AppMonetizationRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<PutCustomChargesRequest.Builder,,PutCustomChargesRequest> SdkBuilder<PutCustomChargesRequest.Builder,,PutCustomChargesRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutCustomChargesRequest
@Mutable
@NotThreadSafe
public static interface PutCustomChargesRequest.Builder
extends AppMonetizationRequest.Builder, SdkPojo, CopyableBuilder<PutCustomChargesRequest.Builder,PutCustomChargesRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the app.charges(Collection<CustomCharge> charges) The custom charges to add to this user's next invoice.charges(Consumer<CustomCharge.Builder>... charges) The custom charges to add to this user's next invoice.charges(CustomCharge... charges) The custom charges to add to this user's next invoice.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Required.scope(RequestScope scope) Required.The end user these charges bill.Methods inherited from interface software.amazon.awssdk.services.appmonetization.model.AppMonetizationRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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
-
appId
The ID of the app.
- Parameters:
appId- The ID of the app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userId
The end user these charges bill.
- Parameters:
userId- The end user these charges bill.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
charges
The custom charges to add to this user's next invoice. Stored at the submitted grain; the service never splits a charge. Accepted all-or-nothing.
- Parameters:
charges- The custom charges to add to this user's next invoice. Stored at the submitted grain; the service never splits a charge. Accepted all-or-nothing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
charges
The custom charges to add to this user's next invoice. Stored at the submitted grain; the service never splits a charge. Accepted all-or-nothing.
- Parameters:
charges- The custom charges to add to this user's next invoice. Stored at the submitted grain; the service never splits a charge. Accepted all-or-nothing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
charges
The custom charges to add to this user's next invoice. Stored at the submitted grain; the service never splits a charge. Accepted all-or-nothing.
This is a convenience method that creates an instance of theCustomCharge.Builderavoiding the need to create one manually viaCustomCharge.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocharges(List<CustomCharge>).- Parameters:
charges- a consumer that will call methods onCustomCharge.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scope
Required. The environment: live or sandbox.
- Parameters:
scope- Required. The environment: live or sandbox.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scope
Required. The environment: live or sandbox.
- Parameters:
scope- Required. The environment: live or sandbox.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutCustomChargesRequest.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
PutCustomChargesRequest.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.
-