attempts

public abstract HttpRetryOptions.Builder attempts(Integer attempts)

Setter for attempts.

attempts: Maximum number of attempts, including the original request. If 0 or 1, it means no retries. If not specified, default to 5.