Class GetUsageRequest

java.lang.Object
ai.vectros.resources.auth.requests.GetUsageRequest

public final class GetUsageRequest extends Object
  • Method Details

    • getYear

      public Optional<Integer> getYear()
      Returns:
      Calendar year (for example, 2026). Defaults to the current year.
    • getMonth

      public Optional<Integer> getMonth()
      Returns:
      Calendar month, 1-12 (for example, 5 for May). Defaults to the current month.
    • getContextId

      public Optional<String> getContextId()
      Returns:
      App context id. For a token with cross-context reach, this only restricts the contexts breakdown to that single app context — your account-wide totals are unaffected. For a token confined to one app context, your totals are already narrowed to it (see the operation description) regardless of this parameter; supplying it must name your own context or the request is refused.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static GetUsageRequest.Builder builder()