public Builder withException(Exception exception) {
             return new Builder(this.statusCode, exception);
         }
@param exception The exception that was thrown.
@return This object for method chaining.
aws-java-sdk-core/src/main/java/com/amazonaws/retry/internal/CredentialsEndpointRetryParameters.java