Class CfnSpendingLimitProps.Builder
java.lang.Object
software.amazon.awscdk.services.braket.CfnSpendingLimitProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSpendingLimitProps>
- Enclosing interface:
CfnSpendingLimitProps
@Stability(Stable)
public static final class CfnSpendingLimitProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSpendingLimitProps>
A builder for
CfnSpendingLimitProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSpendingLimitProps.getDeviceArn()spendingLimit(String spendingLimit) Sets the value ofCfnSpendingLimitProps.getSpendingLimit()Sets the value ofCfnSpendingLimitProps.getTags()timePeriod(IResolvable timePeriod) Sets the value ofCfnSpendingLimitProps.getTimePeriod()timePeriod(CfnSpendingLimit.TimePeriodProperty timePeriod) Sets the value ofCfnSpendingLimitProps.getTimePeriod()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deviceArn
Sets the value ofCfnSpendingLimitProps.getDeviceArn()- Parameters:
deviceArn- The Amazon Resource Name (ARN) of the quantum device to apply the spending limit to. This parameter is required.- Returns:
this
-
spendingLimit
Sets the value ofCfnSpendingLimitProps.getSpendingLimit()- Parameters:
spendingLimit- The maximum amount that can be spent on the specified device, in USD. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnSpendingLimitProps.getTags()- Parameters:
tags- The tags to apply to the spending limit.- Returns:
this
-
timePeriod
Sets the value ofCfnSpendingLimitProps.getTimePeriod()- Parameters:
timePeriod- Defines a time range for spending limits, specifying when the limit is active.- Returns:
this
-
timePeriod
@Stability(Stable) public CfnSpendingLimitProps.Builder timePeriod(CfnSpendingLimit.TimePeriodProperty timePeriod) Sets the value ofCfnSpendingLimitProps.getTimePeriod()- Parameters:
timePeriod- Defines a time range for spending limits, specifying when the limit is active.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSpendingLimitProps>- Returns:
- a new instance of
CfnSpendingLimitProps - Throws:
NullPointerException- if any required attribute was not provided
-