Class CfnSpendingLimit.Builder
java.lang.Object
software.amazon.awscdk.services.braket.CfnSpendingLimit.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSpendingLimit>
- Enclosing class:
CfnSpendingLimit
@Stability(Stable)
public static final class CfnSpendingLimit.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSpendingLimit>
A fluent builder for
CfnSpendingLimit.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnSpendingLimit.BuilderThe Amazon Resource Name (ARN) of the quantum device to apply the spending limit to.spendingLimit(String spendingLimit) The maximum amount that can be spent on the specified device, in USD.The tags to apply to the spending limit.timePeriod(IResolvable timePeriod) Defines a time range for spending limits, specifying when the limit is active.timePeriod(CfnSpendingLimit.TimePeriodProperty timePeriod) Defines a time range for spending limits, specifying when the limit is active.
-
Method Details
-
create
@Stability(Stable) public static CfnSpendingLimit.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnSpendingLimit.Builder.
-
deviceArn
The Amazon Resource Name (ARN) of the quantum device to apply the spending limit to.- Parameters:
deviceArn- The Amazon Resource Name (ARN) of the quantum device to apply the spending limit to. This parameter is required.- Returns:
this- See Also:
-
spendingLimit
The maximum amount that can be spent on the specified device, in USD.- Parameters:
spendingLimit- The maximum amount that can be spent on the specified device, in USD. This parameter is required.- Returns:
this- See Also:
-
tags
The tags to apply to the spending limit.- Parameters:
tags- The tags to apply to the spending limit. This parameter is required.- Returns:
this- See Also:
-
timePeriod
Defines a time range for spending limits, specifying when the limit is active.- Parameters:
timePeriod- Defines a time range for spending limits, specifying when the limit is active. This parameter is required.- Returns:
this- See Also:
-
timePeriod
@Stability(Stable) public CfnSpendingLimit.Builder timePeriod(CfnSpendingLimit.TimePeriodProperty timePeriod) Defines a time range for spending limits, specifying when the limit is active.- Parameters:
timePeriod- Defines a time range for spending limits, specifying when the limit is active. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSpendingLimit>- Returns:
- a newly built instance of
CfnSpendingLimit.
-