internal SetIdentityPoolRolesResponse SetIdentityPoolRoles(SetIdentityPoolRolesRequest request) { SetIdentityPoolRolesRequestMarshaller marshaller = new SetIdentityPoolRolesRequestMarshaller(); SetIdentityPoolRolesResponseUnmarshaller instance = SetIdentityPoolRolesResponseUnmarshaller.Instance; return(Invoke <SetIdentityPoolRolesRequest, SetIdentityPoolRolesResponse>(request, marshaller, instance)); }
public void SetIdentityPoolRolesAsync(SetIdentityPoolRolesRequest request, AmazonServiceCallback <SetIdentityPoolRolesRequest, SetIdentityPoolRolesResponse> callback, AsyncOptions options = null) { options = ((options == null) ? new AsyncOptions() : options); SetIdentityPoolRolesRequestMarshaller marshaller = new SetIdentityPoolRolesRequestMarshaller(); SetIdentityPoolRolesResponseUnmarshaller instance = SetIdentityPoolRolesResponseUnmarshaller.Instance; Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if (callback != null) { callbackHelper = delegate(AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) { AmazonServiceResult <SetIdentityPoolRolesRequest, SetIdentityPoolRolesResponse> responseObject = new AmazonServiceResult <SetIdentityPoolRolesRequest, SetIdentityPoolRolesResponse>((SetIdentityPoolRolesRequest)req, (SetIdentityPoolRolesResponse)res, ex, ao.State); callback(responseObject); }; } BeginInvoke(request, marshaller, instance, options, callbackHelper); }