@@ -58,8 +58,8 @@ final class DefaultJsonAsyncClient implements JsonAsyncClient {
58
58
59
59
private final SdkJsonProtocolFactory protocolFactory ;
60
60
61
- protected DefaultJsonAsyncClient (AsyncClientConfiguration clientConfiguration ) {
62
- this .clientHandler = new SdkAsyncClientHandler (clientConfiguration , null );
61
+ protected DefaultJsonAsyncClient (AsyncClientConfiguration clientConfiguration , AdvancedConfiguration serviceConfiguration ) {
62
+ this .clientHandler = new SdkAsyncClientHandler (clientConfiguration , serviceConfiguration );
63
63
this .protocolFactory = init ();
64
64
}
65
65
@@ -96,8 +96,8 @@ public CompletableFuture<APostOperationResponse> aPostOperation(APostOperationRe
96
96
HttpResponseHandler <SdkServiceException > errorResponseHandler = createErrorResponseHandler ();
97
97
98
98
return clientHandler .execute (new ClientExecutionParams <APostOperationRequest , APostOperationResponse >()
99
- .withMarshaller (new APostOperationRequestMarshaller (protocolFactory )).withResponseHandler (responseHandler )
100
- .withErrorResponseHandler (errorResponseHandler ).withInput (aPostOperationRequest ));
99
+ .withMarshaller (new APostOperationRequestMarshaller (protocolFactory )).withResponseHandler (responseHandler )
100
+ .withErrorResponseHandler (errorResponseHandler ).withInput (aPostOperationRequest ));
101
101
}
102
102
103
103
/**
@@ -135,9 +135,9 @@ public CompletableFuture<APostOperationWithOutputResponse> aPostOperationWithOut
135
135
136
136
return clientHandler
137
137
.execute (new ClientExecutionParams <APostOperationWithOutputRequest , APostOperationWithOutputResponse >()
138
- .withMarshaller (new APostOperationWithOutputRequestMarshaller (protocolFactory ))
139
- .withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
140
- .withInput (aPostOperationWithOutputRequest ));
138
+ .withMarshaller (new APostOperationWithOutputRequestMarshaller (protocolFactory ))
139
+ .withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
140
+ .withInput (aPostOperationWithOutputRequest ));
141
141
}
142
142
143
143
/**
@@ -175,9 +175,9 @@ public CompletableFuture<GetWithoutRequiredMembersResponse> getWithoutRequiredMe
175
175
176
176
return clientHandler
177
177
.execute (new ClientExecutionParams <GetWithoutRequiredMembersRequest , GetWithoutRequiredMembersResponse >()
178
- .withMarshaller (new GetWithoutRequiredMembersRequestMarshaller (protocolFactory ))
179
- .withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
180
- .withInput (getWithoutRequiredMembersRequest ));
178
+ .withMarshaller (new GetWithoutRequiredMembersRequestMarshaller (protocolFactory ))
179
+ .withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
180
+ .withInput (getWithoutRequiredMembersRequest ));
181
181
}
182
182
183
183
/**
@@ -212,9 +212,9 @@ public CompletableFuture<PaginatedOperationWithResultKeyResponse> paginatedOpera
212
212
213
213
return clientHandler
214
214
.execute (new ClientExecutionParams <PaginatedOperationWithResultKeyRequest , PaginatedOperationWithResultKeyResponse >()
215
- .withMarshaller (new PaginatedOperationWithResultKeyRequestMarshaller (protocolFactory ))
216
- .withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
217
- .withInput (paginatedOperationWithResultKeyRequest ));
215
+ .withMarshaller (new PaginatedOperationWithResultKeyRequestMarshaller (protocolFactory ))
216
+ .withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
217
+ .withInput (paginatedOperationWithResultKeyRequest ));
218
218
}
219
219
220
220
/**
@@ -249,9 +249,9 @@ public CompletableFuture<PaginatedOperationWithoutResultKeyResponse> paginatedOp
249
249
250
250
return clientHandler
251
251
.execute (new ClientExecutionParams <PaginatedOperationWithoutResultKeyRequest , PaginatedOperationWithoutResultKeyResponse >()
252
- .withMarshaller (new PaginatedOperationWithoutResultKeyRequestMarshaller (protocolFactory ))
253
- .withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
254
- .withInput (paginatedOperationWithoutResultKeyRequest ));
252
+ .withMarshaller (new PaginatedOperationWithoutResultKeyRequestMarshaller (protocolFactory ))
253
+ .withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
254
+ .withInput (paginatedOperationWithoutResultKeyRequest ));
255
255
}
256
256
257
257
/**
@@ -290,9 +290,9 @@ public CompletableFuture<StreamingInputOperationResponse> streamingInputOperatio
290
290
HttpResponseHandler <SdkServiceException > errorResponseHandler = createErrorResponseHandler ();
291
291
292
292
return clientHandler .execute (new ClientExecutionParams <StreamingInputOperationRequest , StreamingInputOperationResponse >()
293
- .withMarshaller (new StreamingInputOperationRequestMarshaller (protocolFactory ))
294
- .withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
295
- .withAsyncRequestProvider (requestProvider ).withInput (streamingInputOperationRequest ));
293
+ .withMarshaller (new StreamingInputOperationRequestMarshaller (protocolFactory ))
294
+ .withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
295
+ .withAsyncRequestProvider (requestProvider ).withInput (streamingInputOperationRequest ));
296
296
}
297
297
298
298
/**
@@ -344,13 +344,13 @@ public void close() {
344
344
345
345
private software .amazon .awssdk .core .protocol .json .SdkJsonProtocolFactory init () {
346
346
return new SdkJsonProtocolFactory (new JsonClientMetadata ()
347
- .withProtocolVersion ("1.1" )
348
- .withSupportsCbor (false )
349
- .withSupportsIon (false )
350
- .withBaseServiceExceptionClass (software .amazon .awssdk .services .json .model .JsonException .class )
351
- .withContentTypeOverride ("" )
352
- .addErrorMetadata (
353
- new JsonErrorShapeMetadata ().withErrorCode ("InvalidInput" ).withModeledClass (InvalidInputException .class )));
347
+ .withProtocolVersion ("1.1" )
348
+ .withSupportsCbor (false )
349
+ .withSupportsIon (false )
350
+ .withBaseServiceExceptionClass (software .amazon .awssdk .services .json .model .JsonException .class )
351
+ .withContentTypeOverride ("" )
352
+ .addErrorMetadata (
353
+ new JsonErrorShapeMetadata ().withErrorCode ("InvalidInput" ).withModeledClass (InvalidInputException .class )));
354
354
}
355
355
356
356
private HttpResponseHandler <SdkServiceException > createErrorResponseHandler () {
0 commit comments