List of usage examples for com.amazonaws DefaultRequest DefaultRequest
public DefaultRequest(AmazonWebServiceRequest originalRequest, String serviceName)
From source file:com.ivona.services.tts.model.transform.lexicons.ListLexiconsPostRequestMarshaller.java
License:Open Source License
public Request<ListLexiconsRequest> marshall(ListLexiconsRequest listLexiconsRequest) { if (listLexiconsRequest == null) { throw new AmazonClientException("null listLexiconsRequest passed to marshall(...)"); }// ww w. j a v a 2s. c o m Request<ListLexiconsRequest> request = new DefaultRequest<ListLexiconsRequest>(listLexiconsRequest, IvonaSpeechCloudClient.SERVICE_NAME); request.setHttpMethod(HttpMethodName.POST); setRequestPayload(request, listLexiconsRequest); request.setResourcePath(RESOURCE_PATH); return request; }
From source file:com.ivona.services.tts.model.transform.lexicons.PutLexiconPostRequestMarshaller.java
License:Open Source License
public Request<PutLexiconRequest> marshall(PutLexiconRequest putLexiconRequest) { if (putLexiconRequest == null) { throw new AmazonClientException("null putLexiconRequest passed to marshall(...)"); }/*from ww w . j av a 2 s .c om*/ Request<PutLexiconRequest> request = new DefaultRequest<PutLexiconRequest>(putLexiconRequest, IvonaSpeechCloudClient.SERVICE_NAME); request.setHttpMethod(HttpMethodName.POST); setRequestPayload(request, putLexiconRequest); request.setResourcePath(RESOURCE_PATH); return request; }
From source file:com.ivona.services.tts.model.transform.listvoices.ListVoicesGetRequestMarshaller.java
License:Open Source License
public Request<ListVoicesRequest> marshall(ListVoicesRequest listVoicesRequest) { if (listVoicesRequest == null) { throw new AmazonClientException("null listVoicesRequest passed to marshall(...)"); }/* w w w.java2 s. c om*/ Request<ListVoicesRequest> request = new DefaultRequest<ListVoicesRequest>(listVoicesRequest, IvonaSpeechCloudClient.SERVICE_NAME); request.setHttpMethod(HttpMethodName.GET); request.setResourcePath(RESOURCE_PATH); setRequestParameters(request, listVoicesRequest); return request; }
From source file:com.ivona.services.tts.model.transform.listvoices.ListVoicesPostRequestMarshaller.java
License:Open Source License
public Request<ListVoicesRequest> marshall(ListVoicesRequest listVoicesRequest) { if (listVoicesRequest == null) { throw new AmazonClientException("null listVoicesRequest passed to marshall(...)"); }//from www.j a v a 2 s. c om Request<ListVoicesRequest> request = new DefaultRequest<ListVoicesRequest>(listVoicesRequest, IvonaSpeechCloudClient.SERVICE_NAME); request.setHttpMethod(HttpMethodName.POST); request.setResourcePath(RESOURCE_PATH); setRequestPayload(request, listVoicesRequest); return request; }