Class CfnPricingRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.billingconductor.CfnPricingRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPricingRuleProps>
- Enclosing interface:
CfnPricingRuleProps
@Stability(Stable)
public static final class CfnPricingRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPricingRuleProps>
A builder for
CfnPricingRuleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbillingEntity
(String billingEntity) Sets the value ofCfnPricingRuleProps.getBillingEntity()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnPricingRuleProps.getDescription()
modifierPercentage
(Number modifierPercentage) Sets the value ofCfnPricingRuleProps.getModifierPercentage()
Sets the value ofCfnPricingRuleProps.getName()
Sets the value ofCfnPricingRuleProps.getOperation()
Sets the value ofCfnPricingRuleProps.getScope()
Sets the value ofCfnPricingRuleProps.getService()
Sets the value ofCfnPricingRuleProps.getTags()
tiering
(IResolvable tiering) Sets the value ofCfnPricingRuleProps.getTiering()
tiering
(CfnPricingRule.TieringProperty tiering) Sets the value ofCfnPricingRuleProps.getTiering()
Sets the value ofCfnPricingRuleProps.getType()
Sets the value ofCfnPricingRuleProps.getUsageType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnPricingRuleProps.getName()
- Parameters:
name
- The name of a pricing rule. This parameter is required.- Returns:
this
-
scope
Sets the value ofCfnPricingRuleProps.getScope()
- Parameters:
scope
- The scope of pricing rule that indicates if it's globally applicable or service-specific. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnPricingRuleProps.getType()
- Parameters:
type
- The type of pricing rule. This parameter is required.- Returns:
this
-
billingEntity
Sets the value ofCfnPricingRuleProps.getBillingEntity()
- Parameters:
billingEntity
- The seller of services provided by AWS , their affiliates, or third-party providers selling services via AWS Marketplace .- Returns:
this
-
description
Sets the value ofCfnPricingRuleProps.getDescription()
- Parameters:
description
- The pricing rule description.- Returns:
this
-
modifierPercentage
Sets the value ofCfnPricingRuleProps.getModifierPercentage()
- Parameters:
modifierPercentage
- A percentage modifier applied on the public pricing rates.- Returns:
this
-
operation
Sets the value ofCfnPricingRuleProps.getOperation()
- Parameters:
operation
- Operation is the specific AWS action covered by this line item. This describes the specific usage of the line item.If the
Scope
attribute is set toSKU
, this attribute indicates which operation thePricingRule
is modifying. For example, a value ofRunInstances:0202
indicates the operation of running an Amazon EC2 instance.- Returns:
this
-
service
Sets the value ofCfnPricingRuleProps.getService()
- Parameters:
service
- If theScope
attribute isSERVICE
, this attribute indicates which service thePricingRule
is applicable for.- Returns:
this
-
tags
Sets the value ofCfnPricingRuleProps.getTags()
- Parameters:
tags
- A map that contains tag keys and tag values that are attached to a pricing rule.- Returns:
this
-
tiering
Sets the value ofCfnPricingRuleProps.getTiering()
- Parameters:
tiering
- The set of tiering configurations for the pricing rule.- Returns:
this
-
tiering
@Stability(Stable) public CfnPricingRuleProps.Builder tiering(CfnPricingRule.TieringProperty tiering) Sets the value ofCfnPricingRuleProps.getTiering()
- Parameters:
tiering
- The set of tiering configurations for the pricing rule.- Returns:
this
-
usageType
Sets the value ofCfnPricingRuleProps.getUsageType()
- Parameters:
usageType
- Usage Type is the unit that each service uses to measure the usage of a specific type of resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPricingRuleProps>
- Returns:
- a new instance of
CfnPricingRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-