Class CfnBudget.CostTypesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.budgets.CfnBudget.CostTypesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBudget.CostTypesProperty>
- Enclosing interface:
CfnBudget.CostTypesProperty
@Stability(Stable)
public static final class CfnBudget.CostTypesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBudget.CostTypesProperty>
A builder for
CfnBudget.CostTypesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.includeCredit
(Boolean includeCredit) Sets the value ofCfnBudget.CostTypesProperty.getIncludeCredit()
includeCredit
(IResolvable includeCredit) Sets the value ofCfnBudget.CostTypesProperty.getIncludeCredit()
includeDiscount
(Boolean includeDiscount) Sets the value ofCfnBudget.CostTypesProperty.getIncludeDiscount()
includeDiscount
(IResolvable includeDiscount) Sets the value ofCfnBudget.CostTypesProperty.getIncludeDiscount()
includeOtherSubscription
(Boolean includeOtherSubscription) Sets the value ofCfnBudget.CostTypesProperty.getIncludeOtherSubscription()
includeOtherSubscription
(IResolvable includeOtherSubscription) Sets the value ofCfnBudget.CostTypesProperty.getIncludeOtherSubscription()
includeRecurring
(Boolean includeRecurring) Sets the value ofCfnBudget.CostTypesProperty.getIncludeRecurring()
includeRecurring
(IResolvable includeRecurring) Sets the value ofCfnBudget.CostTypesProperty.getIncludeRecurring()
includeRefund
(Boolean includeRefund) Sets the value ofCfnBudget.CostTypesProperty.getIncludeRefund()
includeRefund
(IResolvable includeRefund) Sets the value ofCfnBudget.CostTypesProperty.getIncludeRefund()
includeSubscription
(Boolean includeSubscription) Sets the value ofCfnBudget.CostTypesProperty.getIncludeSubscription()
includeSubscription
(IResolvable includeSubscription) Sets the value ofCfnBudget.CostTypesProperty.getIncludeSubscription()
includeSupport
(Boolean includeSupport) Sets the value ofCfnBudget.CostTypesProperty.getIncludeSupport()
includeSupport
(IResolvable includeSupport) Sets the value ofCfnBudget.CostTypesProperty.getIncludeSupport()
includeTax
(Boolean includeTax) Sets the value ofCfnBudget.CostTypesProperty.getIncludeTax()
includeTax
(IResolvable includeTax) Sets the value ofCfnBudget.CostTypesProperty.getIncludeTax()
includeUpfront
(Boolean includeUpfront) Sets the value ofCfnBudget.CostTypesProperty.getIncludeUpfront()
includeUpfront
(IResolvable includeUpfront) Sets the value ofCfnBudget.CostTypesProperty.getIncludeUpfront()
useAmortized
(Boolean useAmortized) Sets the value ofCfnBudget.CostTypesProperty.getUseAmortized()
useAmortized
(IResolvable useAmortized) Sets the value ofCfnBudget.CostTypesProperty.getUseAmortized()
useBlended
(Boolean useBlended) Sets the value ofCfnBudget.CostTypesProperty.getUseBlended()
useBlended
(IResolvable useBlended) Sets the value ofCfnBudget.CostTypesProperty.getUseBlended()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
includeCredit
Sets the value ofCfnBudget.CostTypesProperty.getIncludeCredit()
- Parameters:
includeCredit
- Specifies whether a budget includes credits. The default value istrue
.- Returns:
this
-
includeCredit
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeCredit(IResolvable includeCredit) Sets the value ofCfnBudget.CostTypesProperty.getIncludeCredit()
- Parameters:
includeCredit
- Specifies whether a budget includes credits. The default value istrue
.- Returns:
this
-
includeDiscount
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeDiscount(Boolean includeDiscount) Sets the value ofCfnBudget.CostTypesProperty.getIncludeDiscount()
- Parameters:
includeDiscount
- Specifies whether a budget includes discounts. The default value istrue
.- Returns:
this
-
includeDiscount
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeDiscount(IResolvable includeDiscount) Sets the value ofCfnBudget.CostTypesProperty.getIncludeDiscount()
- Parameters:
includeDiscount
- Specifies whether a budget includes discounts. The default value istrue
.- Returns:
this
-
includeOtherSubscription
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeOtherSubscription(Boolean includeOtherSubscription) Sets the value ofCfnBudget.CostTypesProperty.getIncludeOtherSubscription()
- Parameters:
includeOtherSubscription
- Specifies whether a budget includes non-RI subscription costs. The default value istrue
.- Returns:
this
-
includeOtherSubscription
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeOtherSubscription(IResolvable includeOtherSubscription) Sets the value ofCfnBudget.CostTypesProperty.getIncludeOtherSubscription()
- Parameters:
includeOtherSubscription
- Specifies whether a budget includes non-RI subscription costs. The default value istrue
.- Returns:
this
-
includeRecurring
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeRecurring(Boolean includeRecurring) Sets the value ofCfnBudget.CostTypesProperty.getIncludeRecurring()
- Parameters:
includeRecurring
- Specifies whether a budget includes recurring fees such as monthly RI fees. The default value istrue
.- Returns:
this
-
includeRecurring
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeRecurring(IResolvable includeRecurring) Sets the value ofCfnBudget.CostTypesProperty.getIncludeRecurring()
- Parameters:
includeRecurring
- Specifies whether a budget includes recurring fees such as monthly RI fees. The default value istrue
.- Returns:
this
-
includeRefund
Sets the value ofCfnBudget.CostTypesProperty.getIncludeRefund()
- Parameters:
includeRefund
- Specifies whether a budget includes refunds. The default value istrue
.- Returns:
this
-
includeRefund
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeRefund(IResolvable includeRefund) Sets the value ofCfnBudget.CostTypesProperty.getIncludeRefund()
- Parameters:
includeRefund
- Specifies whether a budget includes refunds. The default value istrue
.- Returns:
this
-
includeSubscription
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeSubscription(Boolean includeSubscription) Sets the value ofCfnBudget.CostTypesProperty.getIncludeSubscription()
- Parameters:
includeSubscription
- Specifies whether a budget includes subscriptions. The default value istrue
.- Returns:
this
-
includeSubscription
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeSubscription(IResolvable includeSubscription) Sets the value ofCfnBudget.CostTypesProperty.getIncludeSubscription()
- Parameters:
includeSubscription
- Specifies whether a budget includes subscriptions. The default value istrue
.- Returns:
this
-
includeSupport
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeSupport(Boolean includeSupport) Sets the value ofCfnBudget.CostTypesProperty.getIncludeSupport()
- Parameters:
includeSupport
- Specifies whether a budget includes support subscription fees. The default value istrue
.- Returns:
this
-
includeSupport
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeSupport(IResolvable includeSupport) Sets the value ofCfnBudget.CostTypesProperty.getIncludeSupport()
- Parameters:
includeSupport
- Specifies whether a budget includes support subscription fees. The default value istrue
.- Returns:
this
-
includeTax
Sets the value ofCfnBudget.CostTypesProperty.getIncludeTax()
- Parameters:
includeTax
- Specifies whether a budget includes taxes. The default value istrue
.- Returns:
this
-
includeTax
Sets the value ofCfnBudget.CostTypesProperty.getIncludeTax()
- Parameters:
includeTax
- Specifies whether a budget includes taxes. The default value istrue
.- Returns:
this
-
includeUpfront
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeUpfront(Boolean includeUpfront) Sets the value ofCfnBudget.CostTypesProperty.getIncludeUpfront()
- Parameters:
includeUpfront
- Specifies whether a budget includes upfront RI costs. The default value istrue
.- Returns:
this
-
includeUpfront
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder includeUpfront(IResolvable includeUpfront) Sets the value ofCfnBudget.CostTypesProperty.getIncludeUpfront()
- Parameters:
includeUpfront
- Specifies whether a budget includes upfront RI costs. The default value istrue
.- Returns:
this
-
useAmortized
Sets the value ofCfnBudget.CostTypesProperty.getUseAmortized()
- Parameters:
useAmortized
- Specifies whether a budget uses the amortized rate. The default value isfalse
.- Returns:
this
-
useAmortized
@Stability(Stable) public CfnBudget.CostTypesProperty.Builder useAmortized(IResolvable useAmortized) Sets the value ofCfnBudget.CostTypesProperty.getUseAmortized()
- Parameters:
useAmortized
- Specifies whether a budget uses the amortized rate. The default value isfalse
.- Returns:
this
-
useBlended
Sets the value ofCfnBudget.CostTypesProperty.getUseBlended()
- Parameters:
useBlended
- Specifies whether a budget uses a blended rate. The default value isfalse
.- Returns:
this
-
useBlended
Sets the value ofCfnBudget.CostTypesProperty.getUseBlended()
- Parameters:
useBlended
- Specifies whether a budget uses a blended rate. The default value isfalse
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBudget.CostTypesProperty>
- Returns:
- a new instance of
CfnBudget.CostTypesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-