Class CfnSubscriptionProps.Builder
java.lang.Object
software.amazon.awscdk.services.pricingplanmanager.CfnSubscriptionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriptionProps>
- Enclosing interface:
CfnSubscriptionProps
@Stability(Stable)
public static final class CfnSubscriptionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubscriptionProps>
A builder for
CfnSubscriptionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.planFamily(String planFamily) Sets the value ofCfnSubscriptionProps.getPlanFamily()Sets the value ofCfnSubscriptionProps.getPlanTier()resourceArns(List<String> resourceArns) Sets the value ofCfnSubscriptionProps.getResourceArns()usageLevel(String usageLevel) Sets the value ofCfnSubscriptionProps.getUsageLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
planFamily
Sets the value ofCfnSubscriptionProps.getPlanFamily()- Parameters:
planFamily- The name of the pricing plan family. This parameter is required.- Returns:
this
-
planTier
Sets the value ofCfnSubscriptionProps.getPlanTier()- Parameters:
planTier- The tier of the pricing plan. This parameter is required. Upgrades take effect immediately. However, rolling back an upgrade does not revert billing instantly; it schedules a downgrade to the end of the current billing period, and the higher-tier charge applies for the remainder of that month. While a downgrade is scheduled, the CurrentPlanTier property reports the tier currently being billed.- Returns:
this
-
resourceArns
Sets the value ofCfnSubscriptionProps.getResourceArns()- Parameters:
resourceArns- The ARNs of resources associated with the subscription. This parameter is required.- Returns:
this
-
usageLevel
Sets the value ofCfnSubscriptionProps.getUsageLevel()- Parameters:
usageLevel- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubscriptionProps>- Returns:
- a new instance of
CfnSubscriptionProps - Throws:
NullPointerException- if any required attribute was not provided
-