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 Details

    • create

      @Stability(Stable) public static CfnPricingRule.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnPricingRule.Builder.
    • name

      @Stability(Stable) public CfnPricingRule.Builder name(String name)
      The name of a pricing rule.

      Parameters:
      name - The name of a pricing rule. This parameter is required.
      Returns:
      this
    • scope

      @Stability(Stable) public CfnPricingRule.Builder scope(String 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

      @Stability(Stable) public CfnPricingRule.Builder type(String type)
      The type of pricing rule.

      Parameters:
      type - The type of pricing rule. This parameter is required.
      Returns:
      this
    • billingEntity

      @Stability(Stable) public CfnPricingRule.Builder billingEntity(String 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

      @Stability(Stable) public CfnPricingRule.Builder description(String description)
      The pricing rule description.

      Parameters:
      description - The pricing rule description. This parameter is required.
      Returns:
      this
    • modifierPercentage

      @Stability(Stable) public CfnPricingRule.Builder modifierPercentage(Number 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

      @Stability(Stable) public CfnPricingRule.Builder operation(String 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 to SKU , this attribute indicates which operation the PricingRule is modifying. For example, a value of RunInstances: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

      @Stability(Stable) public CfnPricingRule.Builder service(String service)
      If the Scope attribute is SERVICE , this attribute indicates which service the PricingRule is applicable for.

      Parameters:
      service - If the Scope attribute is SERVICE , this attribute indicates which service the PricingRule is applicable for. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnPricingRule.Builder tags(List<? extends CfnTag> 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

      @Stability(Stable) public CfnPricingRule.Builder tiering(IResolvable 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

      @Stability(Stable) public CfnPricingRule.Builder tiering(CfnPricingRule.TieringProperty 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

      @Stability(Stable) public CfnPricingRule.Builder usageType(String 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

      @Stability(Stable) public CfnPricingRule build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnPricingRule>
      Returns:
      a newly built instance of CfnPricingRule.