Interface CreatePlanRequest.Builder
- All Superinterfaces:
AppMonetizationRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreatePlanRequest.Builder,,CreatePlanRequest> SdkBuilder<CreatePlanRequest.Builder,,CreatePlanRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreatePlanRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the app the plan belongs to.clientToken(String clientToken) A unique, case-sensitive identifier to ensure that the operation completes no more than one time.default CreatePlanRequest.Builderdefinition(Consumer<PlanDefinition.Builder> definition) The pricing and packaging definition for the plan.definition(PlanDefinition definition) The pricing and packaging definition for the plan.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Optional tags to add to the plan when it is created.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 plan belongs to.
- Parameters:
appId- The ID of the app the plan belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The pricing and packaging definition for the plan. The plan's identifier is not supplied here: CreatePlan mints a server-generated planId and returns it on the created plan.
- Parameters:
definition- The pricing and packaging definition for the plan. The plan's identifier is not supplied here: CreatePlan mints a server-generated planId and returns it on the created plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The pricing and packaging definition for the plan. The plan's identifier is not supplied here: CreatePlan mints a server-generated planId and returns it on the created plan.
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:
-
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.
-
tags
Optional tags to add to the plan when it is created. Tagging on create also requires permission for appmonetization:TagResource.
- Parameters:
tags- Optional tags to add to the plan when it is created. Tagging on create also requires permission for appmonetization:TagResource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreatePlanRequest.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
CreatePlanRequest.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.
-