Class RequestOptions

java.lang.Object
com.alibaba.dashscope.RequestOptions

public final class RequestOptions extends Object
Per-call overrides (design §2): every resource method has a (params, RequestOptions) overload. Null fields inherit the client-level resolved config.
  • Field Details

  • Method Details

    • builder

      public static RequestOptions.Builder builder()
    • toBuilder

      public RequestOptions.Builder toBuilder()
    • getTimeout

      public Duration getTimeout()
      Single-request timeout; overrides the client default for this call only.
    • getMaxRetries

      public Integer getMaxRetries()
    • getApiKey

      public String getApiKey()
    • getWorkspace

      public String getWorkspace()
    • getHeaders

      public Map<String,String> getHeaders()
      Extra headers; applied last, may override SDK-set headers.
    • getEnableEncryption

      public Boolean getEnableEncryption()
      Enables the DashScope encrypted HTTP channel for this call.
    • getWsQueueCapacity

      public Integer getWsQueueCapacity()
      Maximum buffered WebSocket events per task; null/0 keeps the default unbounded behavior.