Class CfnPricingRuleMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.billingconductor.CfnPricingRuleMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPricingRuleMixinProps>
- Enclosing interface:
CfnPricingRuleMixinProps
@Stability(Stable)
public static final class CfnPricingRuleMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPricingRuleMixinProps>
A builder for
CfnPricingRuleMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbillingEntity(String billingEntity) Sets the value ofCfnPricingRuleMixinProps.getBillingEntity()build()Builds the configured instance.description(String description) Sets the value ofCfnPricingRuleMixinProps.getDescription()modifierPercentage(Number modifierPercentage) Sets the value ofCfnPricingRuleMixinProps.getModifierPercentage()Sets the value ofCfnPricingRuleMixinProps.getName()Sets the value ofCfnPricingRuleMixinProps.getOperation()Sets the value ofCfnPricingRuleMixinProps.getScope()Sets the value ofCfnPricingRuleMixinProps.getService()Sets the value ofCfnPricingRuleMixinProps.getTags()Sets the value ofCfnPricingRuleMixinProps.getTiering()tiering(IResolvable tiering) Sets the value ofCfnPricingRuleMixinProps.getTiering()Sets the value ofCfnPricingRuleMixinProps.getType()Sets the value ofCfnPricingRuleMixinProps.getUsageType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
billingEntity
Sets the value ofCfnPricingRuleMixinProps.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 ofCfnPricingRuleMixinProps.getDescription()- Parameters:
description- The pricing rule description.- Returns:
this
-
modifierPercentage
@Stability(Stable) public CfnPricingRuleMixinProps.Builder modifierPercentage(Number modifierPercentage) Sets the value ofCfnPricingRuleMixinProps.getModifierPercentage()- Parameters:
modifierPercentage- A percentage modifier applied on the public pricing rates.- Returns:
this
-
name
Sets the value ofCfnPricingRuleMixinProps.getName()- Parameters:
name- The name of a pricing rule.- Returns:
this
-
operation
Sets the value ofCfnPricingRuleMixinProps.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
Scopeattribute is set toSKU, this attribute indicates which operation thePricingRuleis modifying. For example, a value ofRunInstances:0202indicates the operation of running an Amazon EC2 instance.- Returns:
this
-
scope
Sets the value ofCfnPricingRuleMixinProps.getScope()- Parameters:
scope- The scope of pricing rule that indicates if it's globally applicable or service-specific.- Returns:
this
-
service
Sets the value ofCfnPricingRuleMixinProps.getService()- Parameters:
service- If theScopeattribute isSERVICE, this attribute indicates which service thePricingRuleis applicable for.- Returns:
this
-
tags
Sets the value ofCfnPricingRuleMixinProps.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 ofCfnPricingRuleMixinProps.getTiering()- Parameters:
tiering- The set of tiering configurations for the pricing rule.- Returns:
this
-
tiering
@Stability(Stable) public CfnPricingRuleMixinProps.Builder tiering(CfnPricingRulePropsMixin.TieringProperty tiering) Sets the value ofCfnPricingRuleMixinProps.getTiering()- Parameters:
tiering- The set of tiering configurations for the pricing rule.- Returns:
this
-
type
Sets the value ofCfnPricingRuleMixinProps.getType()- Parameters:
type- The type of pricing rule.- Returns:
this
-
usageType
Sets the value ofCfnPricingRuleMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnPricingRuleMixinProps>- Returns:
- a new instance of
CfnPricingRuleMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-