Interface CreateSpendingLimitRequest.Builder

  • Method Details

    • clientToken

      CreateSpendingLimitRequest.Builder clientToken(String 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

      CreateSpendingLimitRequest.Builder spendingLimit(String 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 the TimePeriod.Builder avoiding the need to create one manually via TimePeriod.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to timePeriod(TimePeriod).

      Parameters:
      timePeriod - a consumer that will call methods on TimePeriod.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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.