Class RequestConfig


  • public class RequestConfig
    extends Object
    Class representing request configuration parameters used when making calls to the Terra API.
    • Method Detail

      • getWithSamples

        public RequestConfig.Samples getWithSamples()
        The value that will be sent to indicate whether the API should return data samples with the response body. This will be used in the with_samples query parameter.
        Returns:
        value for the with_samples query parameter
      • isToWebhook

        public boolean isToWebhook()
        The value that will be sent to indicate whether the API should send the data directly to the developer's webhook URL. This will be used in the to_webhook query parameter.
        Note that if this is set, the future returned by API request methods will never contain any parsed data objects.
        Returns:
        value for the to_webhook query parameter
      • isRetryIfRateLimited

        public boolean isRetryIfRateLimited()
        The value that will be sent to indicate whether the request will be retried later if rate limited.
        Returns:
        value for the to_webhook query parameter