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