Interface CreatePlanRequest.Builder

  • 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

      CreatePlanRequest.Builder definition(PlanDefinition 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

      default CreatePlanRequest.Builder definition(Consumer<PlanDefinition.Builder> 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 the PlanDefinition.Builder avoiding the need to create one manually via PlanDefinition.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to definition(PlanDefinition).

      Parameters:
      definition - a consumer that will call methods on PlanDefinition.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientToken

      CreatePlanRequest.Builder clientToken(String 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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.