private RetryCondition buildCondition() {
        return new AndRetryCondition(new MaxNumberOfRetriesCondition(maxNumberOfRetries),
                                     new OrRetryCondition(
                                             new RetryOnExceptionsCondition(exceptions),
                                             new RetryOnStatusCodeCondition(statusCodes)));
    }
Construct a RetryPolicy with the current configuration in the builder.

@return Configured RetryPolicy object.
aws-java-sdk-opensdk/src/main/java/com/amazonaws/opensdk/retry/RetryPolicyBuilder.java