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