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 Summary
Modifier and TypeMethodDescriptionThe ID of the app the plan belongs to.The Amazon Resource Name (ARN) of the plan.The time the plan was created.default Plan.Builderdefinition(Consumer<PlanDefinition.Builder> definition) The plan's pricing and packaging definition.definition(PlanDefinition definition) The plan's pricing and packaging definition.The identifier of the plan.The offering stage the plan was read from.The offering stage the plan was read from.The time the plan was last updated.Methods 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.
-
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
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
The plan's 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:
-
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
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
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
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
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.
-