internal SetQueueAttributesResponse SetQueueAttributes(SetQueueAttributesRequest request) { var marshaller = new SetQueueAttributesRequestMarshaller(); var unmarshaller = SetQueueAttributesResponseUnmarshaller.Instance; return(Invoke <SetQueueAttributesRequest, SetQueueAttributesResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the SetQueueAttributes operation. /// <seealso cref="Amazon.SQS.IAmazonSQS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetQueueAttributes 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 <SetQueueAttributesResponse> SetQueueAttributesAsync(SetQueueAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new SetQueueAttributesRequestMarshaller(); var unmarshaller = SetQueueAttributesResponseUnmarshaller.Instance; return(Invoke <IRequest, SetQueueAttributesRequest, SetQueueAttributesResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
public async Task <SetQueueAttributesResponse> SetAttributesAsync(SetQueueAttributesRequest request) { request.QueueName = this.QueueName; var marshaller = new SetQueueAttributesRequestMarshaller(); var unmarshaller = SetQueueAttributesResponseUnmarshaller.Instance; return(await _serviceClient.InvokeAsync <SetQueueAttributesRequest, SetQueueAttributesResponse>(request, marshaller, unmarshaller).ConfigureAwait(false)); }
/// <inheritdoc/> public SetQueueAttributesResponse SetAttributes(SetQueueAttributesRequest request) { request.QueueName = this.QueueName; var marshaller = new SetQueueAttributesRequestMarshaller(); var unmarshaller = SetQueueAttributesResponseUnmarshaller.Instance; return(_serviceClient.Invoke <SetQueueAttributesRequest, SetQueueAttributesResponse>(request, marshaller, unmarshaller)); }
/// <inheritdoc/> public IAsyncResult BeginSetAttributes(SetQueueAttributesRequest request, AsyncCallback callback, object state) { request.QueueName = this.QueueName; var marshaller = new SetQueueAttributesRequestMarshaller(); var unmarshaller = SetQueueAttributesResponseUnmarshaller.Instance; return(_serviceClient.BeginInvoke <SetQueueAttributesRequest>(request, marshaller, unmarshaller, callback, state)); }
public void SetQueueAttributesMarshallTest() { var operation = service_model.FindOperation("SetQueueAttributes"); var request = InstantiateClassGenerator.Execute <SetQueueAttributesRequest>(); var marshaller = new SetQueueAttributesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para>Sets the value of one or more queue attributes. Valid attributes that can be set are [VisibilityTimeout, Policy, MaximumMessageSize, /// MessageRetentionPeriod, ReceiveMessageWaitTimeSeconds].</para> /// </summary> /// /// <param name="setQueueAttributesRequest">Container for the necessary parameters to execute the SetQueueAttributes service method on /// AmazonSQS.</param> /// /// <exception cref="T:Amazon.SQS.Model.InvalidAttributeNameException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<SetQueueAttributesResponse> SetQueueAttributesAsync(SetQueueAttributesRequest setQueueAttributesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new SetQueueAttributesRequestMarshaller(); var unmarshaller = SetQueueAttributesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, SetQueueAttributesRequest, SetQueueAttributesResponse>(setQueueAttributesRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the SetQueueAttributes operation. /// <seealso cref="Amazon.SQS.IAmazonSQS.SetQueueAttributes"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetQueueAttributes 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 async Task<SetQueueAttributesResponse> SetQueueAttributesAsync(SetQueueAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new SetQueueAttributesRequestMarshaller(); var unmarshaller = SetQueueAttributesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, SetQueueAttributesRequest, SetQueueAttributesResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the SetQueueAttributes operation. /// <seealso cref="Amazon.SQS.IAmazonSQS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetQueueAttributes operation on AmazonSQSClient.</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 EndSetQueueAttributes /// operation.</returns> public IAsyncResult BeginSetQueueAttributes(SetQueueAttributesRequest request, AsyncCallback callback, object state) { var marshaller = new SetQueueAttributesRequestMarshaller(); var unmarshaller = SetQueueAttributesResponseUnmarshaller.Instance; return BeginInvoke<SetQueueAttributesRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Sets the value of one or more queue attributes. When you change a queue's attributes, /// the change can take up to 60 seconds for most of the attributes to propagate /// throughout the SQS system. Changes made to the <code>MessageRetentionPeriod</code> /// attribute can take up to 15 minutes. /// /// <note>Going forward, new attributes might be added. If you are writing code /// that calls this action, we recommend that you structure your code so that it can handle /// new attributes gracefully.</note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetQueueAttributes service method.</param> /// /// <returns>The response from the SetQueueAttributes service method, as returned by SQS.</returns> /// <exception cref="InvalidAttributeNameException"> /// The attribute referred to does not exist. /// </exception> public SetQueueAttributesResponse SetQueueAttributes(SetQueueAttributesRequest request) { var marshaller = new SetQueueAttributesRequestMarshaller(); var unmarshaller = SetQueueAttributesResponseUnmarshaller.Instance; return Invoke<SetQueueAttributesRequest,SetQueueAttributesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the SetQueueAttributes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetQueueAttributes 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<SetQueueAttributesResponse> SetQueueAttributesAsync(SetQueueAttributesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new SetQueueAttributesRequestMarshaller(); var unmarshaller = SetQueueAttributesResponseUnmarshaller.Instance; return InvokeAsync<SetQueueAttributesRequest,SetQueueAttributesResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeSetQueueAttributes(SetQueueAttributesRequest setQueueAttributesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new SetQueueAttributesRequestMarshaller().Marshall(setQueueAttributesRequest); var unmarshaller = SetQueueAttributesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
public void SetQueueAttributesMarshallTest() { var operation = service_model.FindOperation("SetQueueAttributes"); var request = InstantiateClassGenerator.Execute<SetQueueAttributesRequest>(); var marshaller = new SetQueueAttributesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Initiates the asynchronous execution of the SetQueueAttributes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetQueueAttributes operation on AmazonSQSClient.</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 SetQueueAttributesAsync(SetQueueAttributesRequest request, AmazonServiceCallback<SetQueueAttributesRequest, SetQueueAttributesResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new SetQueueAttributesRequestMarshaller(); var unmarshaller = SetQueueAttributesResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<SetQueueAttributesRequest,SetQueueAttributesResponse> responseObject = new AmazonServiceResult<SetQueueAttributesRequest,SetQueueAttributesResponse>((SetQueueAttributesRequest)req, (SetQueueAttributesResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<SetQueueAttributesRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
IAsyncResult invokeSetQueueAttributes(SetQueueAttributesRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new SetQueueAttributesRequestMarshaller(); var unmarshaller = SetQueueAttributesResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }