/** * Invokes the IdempotentOperation operation. * * @param idempotentOperationRequest * @return Result of the IdempotentOperation operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ProtocolRestXmlException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ProtocolRestXmlClient.IdempotentOperation */ @Override public IdempotentOperationResponse idempotentOperation(IdempotentOperationRequest idempotentOperationRequest) throws AwsServiceException, SdkClientException, ProtocolRestXmlException { HttpResponseHandler<IdempotentOperationResponse> responseHandler = protocolFactory.createResponseHandler( IdempotentOperationResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<IdempotentOperationRequest, IdempotentOperationResponse>() .withOperationName("IdempotentOperation").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(idempotentOperationRequest) .withMarshaller(new IdempotentOperationRequestMarshaller(protocolFactory))); }
public <T extends AwsResponse> HttpResponseHandler<T> createResponseHandler(Supplier<SdkPojo> pojoSupplier, XmlOperationMetadata staxOperationMetadata) { return new AwsXmlResponseHandler<>( XmlProtocolUnmarshaller.builder().build(), r -> pojoSupplier.get(), staxOperationMetadata.isHasStreamingSuccessResponse()); }
public <T extends AwsResponse> HttpResponseHandler<T> createResponseHandler(Supplier<SdkPojo> pojoSupplier, XmlOperationMetadata staxOperationMetadata) { return new AwsXmlResponseHandler<>( XmlProtocolUnmarshaller.builder().build(), r -> pojoSupplier.get(), staxOperationMetadata.isHasStreamingSuccessResponse()); }
/** * Invokes the MembersInHeaders operation. * * @param membersInHeadersRequest * @return Result of the MembersInHeaders operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ProtocolRestXmlException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ProtocolRestXmlClient.MembersInHeaders */ @Override public MembersInHeadersResponse membersInHeaders(MembersInHeadersRequest membersInHeadersRequest) throws AwsServiceException, SdkClientException, ProtocolRestXmlException { HttpResponseHandler<MembersInHeadersResponse> responseHandler = protocolFactory.createResponseHandler( MembersInHeadersResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<MembersInHeadersRequest, MembersInHeadersResponse>() .withOperationName("MembersInHeaders").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(membersInHeadersRequest) .withMarshaller(new MembersInHeadersRequestMarshaller(protocolFactory))); }
/** * Invokes the MultiLocationOperation operation. * * @param multiLocationOperationRequest * @return Result of the MultiLocationOperation operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ProtocolRestXmlException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ProtocolRestXmlClient.MultiLocationOperation */ @Override public MultiLocationOperationResponse multiLocationOperation(MultiLocationOperationRequest multiLocationOperationRequest) throws AwsServiceException, SdkClientException, ProtocolRestXmlException { HttpResponseHandler<MultiLocationOperationResponse> responseHandler = protocolFactory.createResponseHandler( MultiLocationOperationResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<MultiLocationOperationRequest, MultiLocationOperationResponse>() .withOperationName("MultiLocationOperation").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(multiLocationOperationRequest) .withMarshaller(new MultiLocationOperationRequestMarshaller(protocolFactory))); }
/** * Invokes the MembersInQueryParams operation. * * @param membersInQueryParamsRequest * @return Result of the MembersInQueryParams operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ProtocolRestXmlException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ProtocolRestXmlClient.MembersInQueryParams */ @Override public MembersInQueryParamsResponse membersInQueryParams(MembersInQueryParamsRequest membersInQueryParamsRequest) throws AwsServiceException, SdkClientException, ProtocolRestXmlException { HttpResponseHandler<MembersInQueryParamsResponse> responseHandler = protocolFactory.createResponseHandler( MembersInQueryParamsResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<MembersInQueryParamsRequest, MembersInQueryParamsResponse>() .withOperationName("MembersInQueryParams").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(membersInQueryParamsRequest) .withMarshaller(new MembersInQueryParamsRequestMarshaller(protocolFactory))); }
/** * Invokes the RestXmlTypes operation. * * @param restXmlTypesRequest * @return Result of the RestXmlTypes operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ProtocolRestXmlException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ProtocolRestXmlClient.RestXmlTypes */ @Override public RestXmlTypesResponse restXmlTypes(RestXmlTypesRequest restXmlTypesRequest) throws AwsServiceException, SdkClientException, ProtocolRestXmlException { HttpResponseHandler<RestXmlTypesResponse> responseHandler = protocolFactory.createResponseHandler( RestXmlTypesResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<RestXmlTypesRequest, RestXmlTypesResponse>() .withOperationName("RestXmlTypes").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(restXmlTypesRequest) .withMarshaller(new RestXmlTypesRequestMarshaller(protocolFactory))); }
/** * <p> * Deletes the policy from the bucket. * </p> * * @param deleteBucketPolicyRequest * @return Result of the DeleteBucketPolicy operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws S3Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample S3Client.DeleteBucketPolicy */ @Override public DeleteBucketPolicyResponse deleteBucketPolicy(DeleteBucketPolicyRequest deleteBucketPolicyRequest) throws AwsServiceException, SdkClientException, S3Exception { HttpResponseHandler<DeleteBucketPolicyResponse> responseHandler = protocolFactory.createResponseHandler( DeleteBucketPolicyResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<DeleteBucketPolicyRequest, DeleteBucketPolicyResponse>() .withOperationName("DeleteBucketPolicy").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteBucketPolicyRequest) .withMarshaller(new DeleteBucketPolicyRequestMarshaller(protocolFactory))); }
/** * <p> * Removes the <code>PublicAccessBlock</code> configuration from an Amazon S3 bucket. * </p> * * @param deletePublicAccessBlockRequest * @return Result of the DeletePublicAccessBlock operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws S3Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample S3Client.DeletePublicAccessBlock */ @Override public DeletePublicAccessBlockResponse deletePublicAccessBlock(DeletePublicAccessBlockRequest deletePublicAccessBlockRequest) throws AwsServiceException, SdkClientException, S3Exception { HttpResponseHandler<DeletePublicAccessBlockResponse> responseHandler = protocolFactory.createResponseHandler( DeletePublicAccessBlockResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<DeletePublicAccessBlockRequest, DeletePublicAccessBlockResponse>() .withOperationName("DeletePublicAccessBlock").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deletePublicAccessBlockRequest) .withMarshaller(new DeletePublicAccessBlockRequestMarshaller(protocolFactory))); }
/** * <p> * Gets the access control policy for the bucket. * </p> * * @param getBucketAclRequest * @return Result of the GetBucketAcl operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws S3Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample S3Client.GetBucketAcl */ @Override public GetBucketAclResponse getBucketAcl(GetBucketAclRequest getBucketAclRequest) throws AwsServiceException, SdkClientException, S3Exception { HttpResponseHandler<GetBucketAclResponse> responseHandler = protocolFactory.createResponseHandler( GetBucketAclResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<GetBucketAclRequest, GetBucketAclResponse>() .withOperationName("GetBucketAcl").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getBucketAclRequest) .withMarshaller(new GetBucketAclRequestMarshaller(protocolFactory))); }
/** * <p> * Returns the region the bucket resides in. * </p> * * @param getBucketLocationRequest * @return Result of the GetBucketLocation operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws S3Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample S3Client.GetBucketLocation */ @Override public GetBucketLocationResponse getBucketLocation(GetBucketLocationRequest getBucketLocationRequest) throws AwsServiceException, SdkClientException, S3Exception { HttpResponseHandler<GetBucketLocationResponse> responseHandler = protocolFactory.createResponseHandler( GetBucketLocationResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<GetBucketLocationRequest, GetBucketLocationResponse>() .withOperationName("GetBucketLocation").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getBucketLocationRequest) .withMarshaller(new GetBucketLocationRequestMarshaller(protocolFactory))); }
/** * <p> * Returns the versioning state of a bucket. * </p> * * @param getBucketVersioningRequest * @return Result of the GetBucketVersioning operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws S3Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample S3Client.GetBucketVersioning */ @Override public GetBucketVersioningResponse getBucketVersioning(GetBucketVersioningRequest getBucketVersioningRequest) throws AwsServiceException, SdkClientException, S3Exception { HttpResponseHandler<GetBucketVersioningResponse> responseHandler = protocolFactory.createResponseHandler( GetBucketVersioningResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<GetBucketVersioningRequest, GetBucketVersioningResponse>() .withOperationName("GetBucketVersioning").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getBucketVersioningRequest) .withMarshaller(new GetBucketVersioningRequestMarshaller(protocolFactory))); }
/** * <p> * Returns the website configuration for a bucket. * </p> * * @param getBucketWebsiteRequest * @return Result of the GetBucketWebsite operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws S3Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample S3Client.GetBucketWebsite */ @Override public GetBucketWebsiteResponse getBucketWebsite(GetBucketWebsiteRequest getBucketWebsiteRequest) throws AwsServiceException, SdkClientException, S3Exception { HttpResponseHandler<GetBucketWebsiteResponse> responseHandler = protocolFactory.createResponseHandler( GetBucketWebsiteResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<GetBucketWebsiteRequest, GetBucketWebsiteResponse>() .withOperationName("GetBucketWebsite").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getBucketWebsiteRequest) .withMarshaller(new GetBucketWebsiteRequestMarshaller(protocolFactory))); }
/** * <p> * Returns metadata about all of the versions of objects in a bucket. * </p> * * @param listObjectVersionsRequest * @return Result of the ListObjectVersions operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws S3Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample S3Client.ListObjectVersions */ @Override public ListObjectVersionsResponse listObjectVersions(ListObjectVersionsRequest listObjectVersionsRequest) throws AwsServiceException, SdkClientException, S3Exception { HttpResponseHandler<ListObjectVersionsResponse> responseHandler = protocolFactory.createResponseHandler( ListObjectVersionsResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<ListObjectVersionsRequest, ListObjectVersionsResponse>() .withOperationName("ListObjectVersions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listObjectVersionsRequest) .withMarshaller(new ListObjectVersionsRequestMarshaller(protocolFactory))); }
/** * <p> * Lists the parts that have been uploaded for a specific multipart upload. * </p> * * @param listPartsRequest * @return Result of the ListParts operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws S3Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample S3Client.ListParts */ @Override public ListPartsResponse listParts(ListPartsRequest listPartsRequest) throws AwsServiceException, SdkClientException, S3Exception { HttpResponseHandler<ListPartsResponse> responseHandler = protocolFactory.createResponseHandler( ListPartsResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<ListPartsRequest, ListPartsResponse>() .withOperationName("ListParts").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listPartsRequest) .withMarshaller(new ListPartsRequestMarshaller(protocolFactory))); }
/** * <p> * Sets the CORS configuration for a bucket. * </p> * * @param putBucketCorsRequest * @return Result of the PutBucketCors operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws S3Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample S3Client.PutBucketCors */ @Override public PutBucketCorsResponse putBucketCors(PutBucketCorsRequest putBucketCorsRequest) throws AwsServiceException, SdkClientException, S3Exception { HttpResponseHandler<PutBucketCorsResponse> responseHandler = protocolFactory.createResponseHandler( PutBucketCorsResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<PutBucketCorsRequest, PutBucketCorsResponse>() .withOperationName("PutBucketCors").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(putBucketCorsRequest) .withMarshaller(new PutBucketCorsRequestMarshaller(protocolFactory))); }
/** * <p> * Sets the tags for a bucket. * </p> * * @param putBucketTaggingRequest * @return Result of the PutBucketTagging operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws S3Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample S3Client.PutBucketTagging */ @Override public PutBucketTaggingResponse putBucketTagging(PutBucketTaggingRequest putBucketTaggingRequest) throws AwsServiceException, SdkClientException, S3Exception { HttpResponseHandler<PutBucketTaggingResponse> responseHandler = protocolFactory.createResponseHandler( PutBucketTaggingResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<PutBucketTaggingRequest, PutBucketTaggingResponse>() .withOperationName("PutBucketTagging").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(putBucketTaggingRequest) .withMarshaller(new PutBucketTaggingRequestMarshaller(protocolFactory))); }
/** * <p> * Set the website configuration for a bucket. * </p> * * @param putBucketWebsiteRequest * @return Result of the PutBucketWebsite operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws S3Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample S3Client.PutBucketWebsite */ @Override public PutBucketWebsiteResponse putBucketWebsite(PutBucketWebsiteRequest putBucketWebsiteRequest) throws AwsServiceException, SdkClientException, S3Exception { HttpResponseHandler<PutBucketWebsiteResponse> responseHandler = protocolFactory.createResponseHandler( PutBucketWebsiteResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<PutBucketWebsiteRequest, PutBucketWebsiteResponse>() .withOperationName("PutBucketWebsite").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(putBucketWebsiteRequest) .withMarshaller(new PutBucketWebsiteRequestMarshaller(protocolFactory))); }
/** * Invokes the DeleteOperation operation. * * @param deleteOperationRequest * @return Result of the DeleteOperation operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ProtocolRestXmlException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ProtocolRestXmlClient.DeleteOperation */ @Override public DeleteOperationResponse deleteOperation(DeleteOperationRequest deleteOperationRequest) throws AwsServiceException, SdkClientException, ProtocolRestXmlException { HttpResponseHandler<DeleteOperationResponse> responseHandler = protocolFactory.createResponseHandler( DeleteOperationResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<DeleteOperationRequest, DeleteOperationResponse>() .withOperationName("DeleteOperation").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteOperationRequest) .withMarshaller(new DeleteOperationRequestMarshaller(protocolFactory))); }
/** * Invokes the QueryParamWithoutValue operation. * * @param queryParamWithoutValueRequest * @return Result of the QueryParamWithoutValue operation returned by the service. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ProtocolRestXmlException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ProtocolRestXmlClient.QueryParamWithoutValue */ @Override public QueryParamWithoutValueResponse queryParamWithoutValue(QueryParamWithoutValueRequest queryParamWithoutValueRequest) throws AwsServiceException, SdkClientException, ProtocolRestXmlException { HttpResponseHandler<QueryParamWithoutValueResponse> responseHandler = protocolFactory.createResponseHandler( QueryParamWithoutValueResponse::builder, new XmlOperationMetadata().withHasStreamingSuccessResponse(false)); HttpResponseHandler<AwsServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(); return clientHandler.execute(new ClientExecutionParams<QueryParamWithoutValueRequest, QueryParamWithoutValueResponse>() .withOperationName("QueryParamWithoutValue").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(queryParamWithoutValueRequest) .withMarshaller(new QueryParamWithoutValueRequestMarshaller(protocolFactory))); }