/// <summary>
        /// Queries by ID.
        /// </summary>
        private void GetById()
        {
            ResumeJobParams resumeJobParams = new ResumeJobParams();
            if (string.IsNullOrEmpty(this.Comments))
            {
                this.Comments = " ";
            }

            resumeJobParams.Comments = this.Comments;
            this.WriteJob(
                RecoveryServicesClient.ResumeAzureSiteRecoveryJob(this.Id, resumeJobParams).Job);
        }
 /// <summary>
 /// Resumes Azure Site Recovery Job.
 /// </summary>
 /// <param name="jobId">Job ID</param>
 /// <param name="resumeJobParams">Resume Job parameters</param>
 /// <returns>Job response</returns>
 public JobResponse ResumeAzureSiteRecoveryJob(
     string jobId,
     ResumeJobParams resumeJobParams)
 {
     return this.GetSiteRecoveryClient().Jobs.Resume(jobId, resumeJobParams, this.GetRequestHeaders());
 }
 /// <summary>
 /// Resume the job .
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IJobOperations.
 /// </param>
 /// <param name='jobId'>
 /// Required. Job ID.
 /// </param>
 /// <param name='resumeJobParameters'>
 /// Optional. Resume job parameters.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Job details object.
 /// </returns>
 public static Task<JobResponse> ResumeAsync(this IJobOperations operations, string jobId, ResumeJobParams resumeJobParameters, CustomRequestHeaders customRequestHeaders)
 {
     return operations.ResumeAsync(jobId, resumeJobParameters, customRequestHeaders, CancellationToken.None);
 }
 /// <summary>
 /// Resume the job .
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IJobOperations.
 /// </param>
 /// <param name='jobId'>
 /// Required. Job ID.
 /// </param>
 /// <param name='resumeJobParameters'>
 /// Optional. Resume job parameters.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Job details object.
 /// </returns>
 public static JobResponse Resume(this IJobOperations operations, string jobId, ResumeJobParams resumeJobParameters, CustomRequestHeaders customRequestHeaders)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IJobOperations)s).ResumeAsync(jobId, resumeJobParameters, customRequestHeaders);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }