Container for the parameters to the GetStatus operation. This operation returns information about a job, including where the job is in the processing pipeline, the status of the results, and the signature value associated with the job. You can only return information about jobs you own.
Наследование: AmazonImportExportRequest
        public object Execute(ExecutorContext context)
        {
            var cmdletContext = context as CmdletContext;
            // create request
            var request = new Amazon.ImportExport.Model.GetStatusRequest();

            if (cmdletContext.APIVersion != null)
            {
                request.APIVersion = cmdletContext.APIVersion;
            }
            if (cmdletContext.JobId != null)
            {
                request.JobId = cmdletContext.JobId;
            }

            CmdletOutput output;

            // issue call
            var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);

            try
            {
                var    response       = CallAWSServiceOperation(client, request);
                object pipelineOutput = null;
                pipelineOutput = cmdletContext.Select(response, this);
                output         = new CmdletOutput
                {
                    PipelineOutput  = pipelineOutput,
                    ServiceResponse = response
                };
            }
            catch (Exception e)
            {
                output = new CmdletOutput {
                    ErrorResponse = e
                };
            }

            return(output);
        }
        /// <summary>
        /// Initiates the asynchronous execution of the GetStatus operation.
        /// <seealso cref="Amazon.ImportExport.IAmazonImportExport.GetStatus"/>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetStatus 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<GetStatusResponse> GetStatusAsync(GetStatusRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetStatusRequestMarshaller();
            var unmarshaller = GetStatusResponseUnmarshaller.GetInstance();
            return Invoke<IRequest, GetStatusRequest, GetStatusResponse>(request, marshaller, unmarshaller, signer, cancellationToken);
        }
        /// <summary>
        /// <para> This operation returns information about a job, including where the job is in the processing pipeline, the status of the results, and
        /// the signature value associated with the job. You can only return information about jobs you own. </para>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetStatus service method on AmazonImportExport.</param>
        /// 
        /// <returns>The response from the GetStatus service method, as returned by AmazonImportExport.</returns>
        /// 
        /// <exception cref="T:Amazon.ImportExport.Model.CanceledJobIdException" />
        /// <exception cref="T:Amazon.ImportExport.Model.ExpiredJobIdException" />
        /// <exception cref="T:Amazon.ImportExport.Model.InvalidAccessKeyIdException" />
        /// <exception cref="T:Amazon.ImportExport.Model.InvalidJobIdException" />
		public GetStatusResponse GetStatus(GetStatusRequest request)
        {
            var task = GetStatusAsync(request);
            try
            {
                return task.Result;
            }
            catch(AggregateException e)
            {
                ExceptionDispatchInfo.Capture(e.InnerException).Throw();
                return null;
            }
        }
 IAsyncResult invokeGetStatus(GetStatusRequest getStatusRequest, AsyncCallback callback, object state, bool synchronized)
 {
     IRequest irequest = new GetStatusRequestMarshaller().Marshall(getStatusRequest);
     var unmarshaller = GetStatusResponseUnmarshaller.GetInstance();
     AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);
     Invoke(result);
     return result;
 }
 /// <summary>
 /// <para> This operation returns information about a job, including where the job is in the processing pipeline, the status of the results, and
 /// the signature value associated with the job. You can only return information about jobs you own. </para>
 /// </summary>
 /// 
 /// <param name="getStatusRequest">Container for the necessary parameters to execute the GetStatus service method on AmazonImportExport.</param>
 /// 
 /// <returns>The response from the GetStatus service method, as returned by AmazonImportExport.</returns>
 /// 
 /// <exception cref="CanceledJobIdException"/>
 /// <exception cref="ExpiredJobIdException"/>
 /// <exception cref="InvalidAccessKeyIdException"/>
 /// <exception cref="InvalidJobIdException"/>
 public GetStatusResponse GetStatus(GetStatusRequest getStatusRequest)
 {
     IAsyncResult asyncResult = invokeGetStatus(getStatusRequest, null, null, true);
     return EndGetStatus(asyncResult);
 }
 /// <summary>
 /// Initiates the asynchronous execution of the GetStatus operation.
 /// <seealso cref="Amazon.ImportExport.AmazonImportExport.GetStatus"/>
 /// </summary>
 /// 
 /// <param name="getStatusRequest">Container for the necessary parameters to execute the GetStatus operation on AmazonImportExport.</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 EndGetStatus
 ///         operation.</returns>
 public IAsyncResult BeginGetStatus(GetStatusRequest getStatusRequest, AsyncCallback callback, object state)
 {
     return invokeGetStatus(getStatusRequest, callback, state, false);
 }
        /// <summary>
        /// Initiates the asynchronous execution of the GetStatus operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetStatus 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<GetStatusResponse> GetStatusAsync(GetStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetStatusRequestMarshaller();
            var unmarshaller = GetStatusResponseUnmarshaller.Instance;

            return InvokeAsync<GetStatusRequest,GetStatusResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
        internal GetStatusResponse GetStatus(GetStatusRequest request)
        {
            var marshaller = new GetStatusRequestMarshaller();
            var unmarshaller = GetStatusResponseUnmarshaller.Instance;

            return Invoke<GetStatusRequest,GetStatusResponse>(request, marshaller, unmarshaller);
        }
        /// <summary>
        /// Initiates the asynchronous execution of the GetStatus operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetStatus operation on AmazonImportExportClient.</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 EndGetStatus
        ///         operation.</returns>
        public IAsyncResult BeginGetStatus(GetStatusRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new GetStatusRequestMarshaller();
            var unmarshaller = GetStatusResponseUnmarshaller.Instance;

            return BeginInvoke<GetStatusRequest>(request, marshaller, unmarshaller,
                callback, state);
        }
 /// <summary>
 /// <para> This operation returns information about a job, including where
 /// the job is in the processing pipeline, the status of the results, and
 /// the signature value associated with the job. You can only return
 /// information about jobs you own. </para>
 /// </summary>
 /// 
 /// <param name="getStatusRequest">Container for the necessary parameters
 ///           to execute the GetStatus service method on AmazonImportExport.</param>
 /// 
 /// <returns>The response from the GetStatus service method, as returned
 ///         by AmazonImportExport.</returns>
 /// 
 /// <exception cref="CanceledJobIdException"/>
 /// <exception cref="ExpiredJobIdException"/>
 /// <exception cref="InvalidAccessKeyIdException"/>
 /// <exception cref="InvalidJobIdException"/>
 public GetStatusResponse GetStatus(GetStatusRequest getStatusRequest)
 {
     IRequest<GetStatusRequest> request = new GetStatusRequestMarshaller().Marshall(getStatusRequest);
     GetStatusResponse response = Invoke<GetStatusRequest, GetStatusResponse> (request, this.signer, GetStatusResponseUnmarshaller.GetInstance());
     return response;
 }
        /// <summary>
        /// <para> This operation returns information about a job, including where the job is in the processing pipeline, the status of the results, and
        /// the signature value associated with the job. You can only return information about jobs you own. </para>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetStatus service method on AmazonImportExport.</param>
        /// 
        /// <returns>The response from the GetStatus service method, as returned by AmazonImportExport.</returns>
        /// 
        /// <exception cref="T:Amazon.ImportExport.Model.CanceledJobIdException" />
        /// <exception cref="T:Amazon.ImportExport.Model.ExpiredJobIdException" />
        /// <exception cref="T:Amazon.ImportExport.Model.InvalidAccessKeyIdException" />
        /// <exception cref="T:Amazon.ImportExport.Model.InvalidJobIdException" />
		public GetStatusResponse GetStatus(GetStatusRequest request)
        {
            var task = GetStatusAsync(request);
            try
            {
                return task.Result;
            }
            catch(AggregateException e)
            {
                throw e.InnerException;
            }
        }
        /// <summary>
        /// Initiates the asynchronous execution of the GetStatus operation.
        /// <seealso cref="Amazon.ImportExport.IAmazonImportExport.GetStatus"/>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetStatus 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<GetStatusResponse> GetStatusAsync(GetStatusRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetStatusRequestMarshaller();
            var unmarshaller = GetStatusResponseUnmarshaller.GetInstance();
            var response = await Invoke<IRequest, GetStatusRequest, GetStatusResponse>(request, marshaller, unmarshaller, signer, cancellationToken)
                .ConfigureAwait(continueOnCapturedContext: false);
            return response;
        }
 private Amazon.ImportExport.Model.GetStatusResponse CallAWSServiceOperation(IAmazonImportExport client, Amazon.ImportExport.Model.GetStatusRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Import/Export", "GetStatus");
     try
     {
         #if DESKTOP
         return(client.GetStatus(request));
         #elif CORECLR
         return(client.GetStatusAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }