Interface UpdatePlanRequest.Builder
- All Superinterfaces:
AppMonetizationRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<UpdatePlanRequest.Builder,,UpdatePlanRequest> SdkBuilder<UpdatePlanRequest.Builder,,UpdatePlanRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdatePlanRequest
@Mutable
@NotThreadSafe
public static interface UpdatePlanRequest.Builder
extends AppMonetizationRequest.Builder, SdkPojo, CopyableBuilder<UpdatePlanRequest.Builder,UpdatePlanRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the app.default UpdatePlanRequest.Builderdefinition(Consumer<PlanDefinition.Builder> definition) The plan's updated pricing and packaging definition.definition(PlanDefinition definition) The plan's updated pricing and packaging definition.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The identifier of the plan.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.
-
planId
The identifier of the plan. AWS App Monetization generates this value when you create the plan. It is unique within the app and is never reused. Treat it as opaque.
- Parameters:
planId- The identifier of the plan. AWS App Monetization generates this value when you create the plan. It is unique within the app and is never reused. Treat it as opaque.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The plan's updated pricing and packaging definition.
- Parameters:
definition- The plan's updated pricing and packaging definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The plan's updated pricing and packaging definition.
This is a convenience method that creates an instance of thePlanDefinition.Builderavoiding the need to create one manually viaPlanDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(PlanDefinition).- Parameters:
definition- a consumer that will call methods onPlanDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdatePlanRequest.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
UpdatePlanRequest.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.
-