Interface PutThirdPartyCostRequest.Builder

  • Method Details

    • appId

      The ID of the app the cost belongs to.

      Parameters:
      appId - The ID of the app the cost belongs to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • costId

      The ID of the cost. Omit it to create a new cost, or supply an existing cost ID to update that cost in place.

      Parameters:
      costId - The ID of the cost. Omit it to create a new cost, or supply an existing cost ID to update that cost in place.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • label

      A human-readable label for the cost (for example, "Anthropic API").

      Parameters:
      label - A human-readable label for the cost (for example, "Anthropic API").
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • amount

      A flat monthly amount as a decimal string (for example, "12.50").

      Parameters:
      amount - A flat monthly amount as a decimal string (for example, "12.50").
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • frequency

      How often the cost recurs. MONTHLY is the only value today.

      Parameters:
      frequency - How often the cost recurs. MONTHLY is the only value today.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • frequency

      How often the cost recurs. MONTHLY is the only value today.

      Parameters:
      frequency - How often the cost recurs. MONTHLY is the only value today.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • currency

      The currency of the amount. Defaults to USD when omitted (USD is the only supported currency).

      Parameters:
      currency - The currency of the amount. Defaults to USD when omitted (USD is the only supported currency).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • currency

      The currency of the amount. Defaults to USD when omitted (USD is the only supported currency).

      Parameters:
      currency - The currency of the amount. Defaults to USD when omitted (USD is the only supported currency).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • description

      PutThirdPartyCostRequest.Builder description(String description)

      A free-form description of the cost.

      Parameters:
      description - A free-form description of the cost.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • effectiveFrom

      PutThirdPartyCostRequest.Builder effectiveFrom(String effectiveFrom)

      First month (YYYY-MM) the cost applies in. Absent means the cost has no start month.

      Parameters:
      effectiveFrom - First month (YYYY-MM) the cost applies in. Absent means the cost has no start month.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • effectiveTo

      PutThirdPartyCostRequest.Builder effectiveTo(String effectiveTo)

      Last month (YYYY-MM) the cost applies in. Absent means the cost has no end month. When both are present, effectiveFrom must not be after effectiveTo.

      Parameters:
      effectiveTo - Last month (YYYY-MM) the cost applies in. Absent means the cost has no end month. When both are present, effectiveFrom must not be after effectiveTo.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      PutThirdPartyCostRequest.Builder clientToken(String clientToken)

      AWS App Monetization does not use this value for this operation. To retry without creating a duplicate cost, pass the costId returned by the first call.

      Parameters:
      clientToken - AWS App Monetization does not use this value for this operation. To retry without creating a duplicate cost, pass the costId returned by the first call.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

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