Interface ThirdPartyCostItem.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.

      Parameters:
      costId - The ID of the cost.
      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

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

      Parameters:
      amount - The 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

      ThirdPartyCostItem.Builder frequency(String 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

      ThirdPartyCostItem.Builder currency(String currency)

      The currency of the amount. USD is the only supported currency.

      Parameters:
      currency - The currency of the amount. 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. USD is the only supported currency.

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

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

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

      ThirdPartyCostItem.Builder effectiveTo(String effectiveTo)

      Last month (YYYY-MM) the cost applies in. Absent means the cost has no end month.

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

      ThirdPartyCostItem.Builder createdAt(Instant createdAt)

      The time the cost was created.

      Parameters:
      createdAt - The time the cost was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      ThirdPartyCostItem.Builder updatedAt(Instant updatedAt)

      The time the cost was last updated.

      Parameters:
      updatedAt - The time the cost was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.