Interface Plan.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Plan.Builder,Plan>, SdkBuilder<Plan.Builder,Plan>, SdkPojo
Enclosing class:
Plan

@Mutable @NotThreadSafe public static interface Plan.Builder extends SdkPojo, CopyableBuilder<Plan.Builder,Plan>
  • Method Details

    • appId

      Plan.Builder appId(String 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.
    • planId

      Plan.Builder planId(String planId)

      The identifier of the plan. AWS App Monetization generates this value when the plan is created. 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 the plan is created. 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

      Plan.Builder definition(PlanDefinition definition)

      The plan's pricing and packaging definition.

      Parameters:
      definition - The plan's pricing and packaging definition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      default Plan.Builder definition(Consumer<PlanDefinition.Builder> definition)

      The plan's pricing and packaging definition.

      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:
    • stage

      Plan.Builder stage(String stage)

      The offering stage the plan was read from.

      Parameters:
      stage - The offering stage the plan was read from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • stage

      Plan.Builder stage(PlanStage stage)

      The offering stage the plan was read from.

      Parameters:
      stage - The offering stage the plan was read from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      Plan.Builder createdAt(Instant createdAt)

      The time the plan was created.

      Parameters:
      createdAt - The time the plan was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      Plan.Builder updatedAt(Instant updatedAt)

      The time the plan was last updated.

      Parameters:
      updatedAt - The time the plan was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      Plan.Builder arn(String arn)

      The Amazon Resource Name (ARN) of the plan.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.