Interface CreateGatewayRateLimitRequest.Builder

  • Method Details

    • gatewayIdentifier

      CreateGatewayRateLimitRequest.Builder gatewayIdentifier(String gatewayIdentifier)

      The unique identifier of the gateway to create the rate limit for.

      Parameters:
      gatewayIdentifier - The unique identifier of the gateway to create the rate limit for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.

      Parameters:
      clientToken - A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rateLimitId

      Optional customer-defined limit ID. If not provided, system generates one.

      Parameters:
      rateLimitId - Optional customer-defined limit ID. If not provided, system generates one.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Optional human-readable description for this limit.

      Parameters:
      description - Optional human-readable description for this limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensionKeys

      Ordered list of dimension names defining the scope of this limit. Unique per gateway — no two limits can share the same dimensionKeys.

      Parameters:
      dimensionKeys - Ordered list of dimension names defining the scope of this limit. Unique per gateway — no two limits can share the same dimensionKeys.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensionKeys

      CreateGatewayRateLimitRequest.Builder dimensionKeys(String... dimensionKeys)

      Ordered list of dimension names defining the scope of this limit. Unique per gateway — no two limits can share the same dimensionKeys.

      Parameters:
      dimensionKeys - Ordered list of dimension names defining the scope of this limit. Unique per gateway — no two limits can share the same dimensionKeys.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entries

      Rule entries mapping dimension values to rate configurations.

      Parameters:
      entries - Rule entries mapping dimension values to rate configurations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entries

      Rule entries mapping dimension values to rate configurations.

      Parameters:
      entries - Rule entries mapping dimension values to rate configurations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entries

      Rule entries mapping dimension values to rate configurations.

      This is a convenience method that creates an instance of the LimitEntry.Builder avoiding the need to create one manually via LimitEntry.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to entries(List<LimitEntry>).

      Parameters:
      entries - a consumer that will call methods on LimitEntry.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateGatewayRateLimitRequest.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.