Class CfnPricingRule.Builder
java.lang.Object
software.amazon.awscdk.services.billingconductor.CfnPricingRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPricingRule>
- Enclosing class:
CfnPricingRule
@Stability(Stable)
public static final class CfnPricingRule.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPricingRule>
A fluent builder for
CfnPricingRule
.-
Method Summary
Modifier and TypeMethodDescriptionbillingEntity
(String billingEntity) The seller of services provided by AWS , their affiliates, or third-party providers selling services via AWS Marketplace .build()
static CfnPricingRule.Builder
description
(String description) The pricing rule description.modifierPercentage
(Number modifierPercentage) A percentage modifier applied on the public pricing rates.The name of a pricing rule.Operation is the specific AWS action covered by this line item.The scope of pricing rule that indicates if it's globally applicable or service-specific.If theScope
attribute isSERVICE
, this attribute indicates which service thePricingRule
is applicable for.A map that contains tag keys and tag values that are attached to a pricing rule.tiering
(IResolvable tiering) The set of tiering configurations for the pricing rule.tiering
(CfnPricingRule.TieringProperty tiering) The set of tiering configurations for the pricing rule.The type of pricing rule.Usage Type is the unit that each service uses to measure the usage of a specific type of resource.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnPricingRule.Builder
.
-
name
The name of a pricing rule.- Parameters:
name
- The name of a pricing rule. This parameter is required.- Returns:
this
-
scope
The scope of pricing rule that indicates if it's globally applicable or service-specific.- Parameters:
scope
- The scope of pricing rule that indicates if it's globally applicable or service-specific. This parameter is required.- Returns:
this
-
type
The type of pricing rule.- Parameters:
type
- The type of pricing rule. This parameter is required.- Returns:
this
-
billingEntity
The seller of services provided by AWS , their affiliates, or third-party providers selling services via AWS Marketplace .- Parameters:
billingEntity
- The seller of services provided by AWS , their affiliates, or third-party providers selling services via AWS Marketplace . This parameter is required.- Returns:
this
-
description
The pricing rule description.- Parameters:
description
- The pricing rule description. This parameter is required.- Returns:
this
-
modifierPercentage
A percentage modifier applied on the public pricing rates.- Parameters:
modifierPercentage
- A percentage modifier applied on the public pricing rates. This parameter is required.- Returns:
this
-
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.- Parameters:
operation
- Operation is the specific AWS action covered by this line item. This parameter is required.- Returns:
this
-
service
If theScope
attribute isSERVICE
, this attribute indicates which service thePricingRule
is applicable for.- Parameters:
service
- If theScope
attribute isSERVICE
, this attribute indicates which service thePricingRule
is applicable for. This parameter is required.- Returns:
this
-
tags
A map that contains tag keys and tag values that are attached to a pricing rule.- Parameters:
tags
- A map that contains tag keys and tag values that are attached to a pricing rule. This parameter is required.- Returns:
this
-
tiering
The set of tiering configurations for the pricing rule.- Parameters:
tiering
- The set of tiering configurations for the pricing rule. This parameter is required.- Returns:
this
-
tiering
The set of tiering configurations for the pricing rule.- Parameters:
tiering
- The set of tiering configurations for the pricing rule. This parameter is required.- Returns:
this
-
usageType
Usage Type is the unit that each service uses to measure the usage of a specific type of resource.- Parameters:
usageType
- Usage Type is the unit that each service uses to measure the usage of a specific type of resource. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPricingRule>
- Returns:
- a newly built instance of
CfnPricingRule
.
-