Class CfnBudgetMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.deadline.CfnBudgetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBudgetMixinProps>
- Enclosing interface:
CfnBudgetMixinProps
@Stability(Stable)
public static final class CfnBudgetMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBudgetMixinProps>
A builder for
CfnBudgetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnBudgetMixinProps.getActions()actions(IResolvable actions) Sets the value ofCfnBudgetMixinProps.getActions()approximateDollarLimit(Number approximateDollarLimit) Sets the value ofCfnBudgetMixinProps.getApproximateDollarLimit()build()Builds the configured instance.description(String description) Sets the value ofCfnBudgetMixinProps.getDescription()displayName(String displayName) Sets the value ofCfnBudgetMixinProps.getDisplayName()Sets the value ofCfnBudgetMixinProps.getFarmId()Sets the value ofCfnBudgetMixinProps.getSchedule()schedule(IResolvable schedule) Sets the value ofCfnBudgetMixinProps.getSchedule()Sets the value ofCfnBudgetMixinProps.getTags()usageTrackingResource(CfnBudgetPropsMixin.UsageTrackingResourceProperty usageTrackingResource) Sets the value ofCfnBudgetMixinProps.getUsageTrackingResource()usageTrackingResource(IResolvable usageTrackingResource) Sets the value ofCfnBudgetMixinProps.getUsageTrackingResource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnBudgetMixinProps.getActions()- Parameters:
actions- The budget actions to specify what happens when the budget runs out.- Returns:
this
-
actions
Sets the value ofCfnBudgetMixinProps.getActions()- Parameters:
actions- The budget actions to specify what happens when the budget runs out.- Returns:
this
-
approximateDollarLimit
@Stability(Stable) public CfnBudgetMixinProps.Builder approximateDollarLimit(Number approximateDollarLimit) Sets the value ofCfnBudgetMixinProps.getApproximateDollarLimit()- Parameters:
approximateDollarLimit- The dollar limit based on consumed usage.- Returns:
this
-
description
Sets the value ofCfnBudgetMixinProps.getDescription()- Parameters:
description- The description of the budget.- Returns:
this
-
displayName
Sets the value ofCfnBudgetMixinProps.getDisplayName()- Parameters:
displayName- The display name of the budget.- Returns:
this
-
farmId
Sets the value ofCfnBudgetMixinProps.getFarmId()- Parameters:
farmId- The farm ID.- Returns:
this
-
schedule
Sets the value ofCfnBudgetMixinProps.getSchedule()- Parameters:
schedule- The start and end time of the budget.- Returns:
this
-
schedule
@Stability(Stable) public CfnBudgetMixinProps.Builder schedule(CfnBudgetPropsMixin.BudgetScheduleProperty schedule) Sets the value ofCfnBudgetMixinProps.getSchedule()- Parameters:
schedule- The start and end time of the budget.- Returns:
this
-
tags
Sets the value ofCfnBudgetMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
usageTrackingResource
@Stability(Stable) public CfnBudgetMixinProps.Builder usageTrackingResource(IResolvable usageTrackingResource) Sets the value ofCfnBudgetMixinProps.getUsageTrackingResource()- Parameters:
usageTrackingResource- The usage details of the allotted budget.- Returns:
this
-
usageTrackingResource
@Stability(Stable) public CfnBudgetMixinProps.Builder usageTrackingResource(CfnBudgetPropsMixin.UsageTrackingResourceProperty usageTrackingResource) Sets the value ofCfnBudgetMixinProps.getUsageTrackingResource()- Parameters:
usageTrackingResource- The usage details of the allotted budget.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBudgetMixinProps>- Returns:
- a new instance of
CfnBudgetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-