Interface UpdateOneTimePriceRequest.Builder
- All Superinterfaces:
AppMonetizationRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<UpdateOneTimePriceRequest.Builder,,UpdateOneTimePriceRequest> SdkBuilder<UpdateOneTimePriceRequest.Builder,,UpdateOneTimePriceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateOneTimePriceRequest
@Mutable
@NotThreadSafe
public static interface UpdateOneTimePriceRequest.Builder
extends AppMonetizationRequest.Builder, SdkPojo, CopyableBuilder<UpdateOneTimePriceRequest.Builder,UpdateOneTimePriceRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the app the one-time price belongs to.clientToken(String clientToken) A unique, case-sensitive identifier to ensure that the operation completes no more than one time.definition(Consumer<OneTimePriceDefinition.Builder> definition) The new definition to apply to the one-time price, including its display name, price, metric, and credited capacity.definition(OneTimePriceDefinition definition) The new definition to apply to the one-time price, including its display name, price, metric, and credited capacity.oneTimePriceId(String oneTimePriceId) The ID of the one-time price to update.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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 the one-time price belongs to.
- Parameters:
appId- The ID of the app the one-time price belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
oneTimePriceId
The ID of the one-time price to update.
- Parameters:
oneTimePriceId- The ID of the one-time price to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The new definition to apply to the one-time price, including its display name, price, metric, and credited capacity.
- Parameters:
definition- The new definition to apply to the one-time price, including its display name, price, metric, and credited capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
default UpdateOneTimePriceRequest.Builder definition(Consumer<OneTimePriceDefinition.Builder> definition) The new definition to apply to the one-time price, including its display name, price, metric, and credited capacity.
This is a convenience method that creates an instance of theOneTimePriceDefinition.Builderavoiding the need to create one manually viaOneTimePriceDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(OneTimePriceDefinition).- Parameters:
definition- a consumer that will call methods onOneTimePriceDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateOneTimePriceRequest.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
UpdateOneTimePriceRequest.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.
-