public void ListReceiptRuleSetsMarshallTest() { var operation = service_model.FindOperation("ListReceiptRuleSets"); var request = InstantiateClassGenerator.Execute <ListReceiptRuleSetsRequest>(); var marshaller = new ListReceiptRuleSetsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = ListReceiptRuleSetsResponseUnmarshaller.Instance.Unmarshall(context) as ListReceiptRuleSetsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the ListReceiptRuleSets operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListReceiptRuleSets operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<ListReceiptRuleSetsResponse> ListReceiptRuleSetsAsync(ListReceiptRuleSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListReceiptRuleSetsRequestMarshaller(); var unmarshaller = ListReceiptRuleSetsResponseUnmarshaller.Instance; return InvokeAsync<ListReceiptRuleSetsRequest,ListReceiptRuleSetsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Lists the receipt rule sets that exist under your AWS account. If there are additional /// receipt rule sets to be retrieved, you will receive a <code>NextToken</code> that /// you can provide to the next call to <code>ListReceiptRuleSets</code> to retrieve the /// additional entries. /// /// /// <para> /// For information about managing receipt rule sets, see the <a href="http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html">Amazon /// SES Developer Guide</a>. /// </para> /// /// <para> /// This action is throttled at one request per second. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListReceiptRuleSets service method.</param> /// /// <returns>The response from the ListReceiptRuleSets service method, as returned by SimpleEmailService.</returns> public ListReceiptRuleSetsResponse ListReceiptRuleSets(ListReceiptRuleSetsRequest request) { var marshaller = new ListReceiptRuleSetsRequestMarshaller(); var unmarshaller = ListReceiptRuleSetsResponseUnmarshaller.Instance; return Invoke<ListReceiptRuleSetsRequest,ListReceiptRuleSetsResponse>(request, marshaller, unmarshaller); }
public void ListReceiptRuleSetsMarshallTest() { var operation = service_model.FindOperation("ListReceiptRuleSets"); var request = InstantiateClassGenerator.Execute<ListReceiptRuleSetsRequest>(); var marshaller = new ListReceiptRuleSetsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = ListReceiptRuleSetsResponseUnmarshaller.Instance.Unmarshall(context) as ListReceiptRuleSetsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the ListReceiptRuleSets operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListReceiptRuleSets operation on AmazonSimpleEmailServiceClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListReceiptRuleSets /// operation.</returns> public IAsyncResult BeginListReceiptRuleSets(ListReceiptRuleSetsRequest request, AsyncCallback callback, object state) { var marshaller = new ListReceiptRuleSetsRequestMarshaller(); var unmarshaller = ListReceiptRuleSetsResponseUnmarshaller.Instance; return BeginInvoke<ListReceiptRuleSetsRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Initiates the asynchronous execution of the ListReceiptRuleSets operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListReceiptRuleSets operation on AmazonSimpleEmailServiceClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> public void ListReceiptRuleSetsAsync(ListReceiptRuleSetsRequest request, AmazonServiceCallback<ListReceiptRuleSetsRequest, ListReceiptRuleSetsResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new ListReceiptRuleSetsRequestMarshaller(); var unmarshaller = ListReceiptRuleSetsResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<ListReceiptRuleSetsRequest,ListReceiptRuleSetsResponse> responseObject = new AmazonServiceResult<ListReceiptRuleSetsRequest,ListReceiptRuleSetsResponse>((ListReceiptRuleSetsRequest)req, (ListReceiptRuleSetsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<ListReceiptRuleSetsRequest>(request, marshaller, unmarshaller, options, callbackHelper); }