Interface PricingPlan.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PricingPlan.Builder,,PricingPlan> SdkBuilder<PricingPlan.Builder,,PricingPlan> SdkPojo
- Enclosing class:
PricingPlan
@Mutable
@NotThreadSafe
public static interface PricingPlan.Builder
extends SdkPojo, CopyableBuilder<PricingPlan.Builder,PricingPlan>
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description of the pricing plan.discountAppliesToMinimumCharge(Boolean discountAppliesToMinimumCharge) Whether the discount applies to the minimum Support charge.The end date of the pricing plan.minimumCharge(String minimumCharge) The minimum Support charge amount for this pricing plan.The name of the pricing plan.planDiscountPercent(String planDiscountPercent) The discount percentage applied by this pricing plan.pricingPlanId(String pricingPlanId) The unique identifier for the pricing plan.The start date of the pricing plan.Whether the pricing plan uses tiered pricing.tiers(Collection<PricingPlanTier> tiers) The pricing tiers within this plan.tiers(Consumer<PricingPlanTier.Builder>... tiers) The pricing tiers within this plan.tiers(PricingPlanTier... tiers) The pricing tiers within this plan.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
-
pricingPlanId
The unique identifier for the pricing plan.
- Parameters:
pricingPlanId- The unique identifier for the pricing plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the pricing plan.
- Parameters:
name- The name of the pricing plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the pricing plan.
- Parameters:
description- A description of the pricing plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startDate
The start date of the pricing plan.
- Parameters:
startDate- The start date of the pricing plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endDate
The end date of the pricing plan.
- Parameters:
endDate- The end date of the pricing plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
planDiscountPercent
The discount percentage applied by this pricing plan.
- Parameters:
planDiscountPercent- The discount percentage applied by this pricing plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
discountAppliesToMinimumCharge
Whether the discount applies to the minimum Support charge.
- Parameters:
discountAppliesToMinimumCharge- Whether the discount applies to the minimum Support charge.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minimumCharge
The minimum Support charge amount for this pricing plan.
- Parameters:
minimumCharge- The minimum Support charge amount for this pricing plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tiered
Whether the pricing plan uses tiered pricing.
- Parameters:
tiered- Whether the pricing plan uses tiered pricing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tiers
The pricing tiers within this plan.
- Parameters:
tiers- The pricing tiers within this plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tiers
The pricing tiers within this plan.
- Parameters:
tiers- The pricing tiers within this plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tiers
The pricing tiers within this plan.
This is a convenience method that creates an instance of thePricingPlanTier.Builderavoiding the need to create one manually viaPricingPlanTier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totiers(List<PricingPlanTier>).- Parameters:
tiers- a consumer that will call methods onPricingPlanTier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-