Interface CreateSpendingLimitRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BraketRequest.Builder,Buildable,CopyableBuilder<CreateSpendingLimitRequest.Builder,,CreateSpendingLimitRequest> SdkBuilder<CreateSpendingLimitRequest.Builder,,CreateSpendingLimitRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateSpendingLimitRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier to ensure that the operation completes no more than one time.The Amazon Resource Name (ARN) of the quantum device to apply the spending limit to.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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(Consumer<TimePeriod.Builder> timePeriod) The time period during which the spending limit is active, including start and end dates.timePeriod(TimePeriod timePeriod) The time period during which the spending limit is active, including start and end dates.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.braket.model.BraketRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Braket ignores the request, but does not return an error.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Braket ignores the request, but does not return an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timePeriod
The time period during which the spending limit is active, including start and end dates.
- Parameters:
timePeriod- The time period during which the spending limit is active, including start and end dates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timePeriod
The time period during which the spending limit is active, including start and end dates.
This is a convenience method that creates an instance of theTimePeriod.Builderavoiding the need to create one manually viaTimePeriod.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimePeriod(TimePeriod).- Parameters:
timePeriod- a consumer that will call methods onTimePeriod.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to apply to the spending limit. Each tag consists of a key and an optional value.
- Parameters:
tags- The tags to apply to the spending limit. Each tag consists of a key and an optional value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateSpendingLimitRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSpendingLimitRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-