with

open fun with(maxAttempts: Int, backoff: Duration, maxBackoff: Duration, allowedMethods: Array<HttpMethod>): RetryPolicy
open fun with(maxAttempts: Int, backoff: Duration, allowedMethods: Array<HttpMethod>): RetryPolicy