withMaxRetries

A copy with maxRetries changed.