A section of the response body that provides information about the job that is created.
Example #1
0
 /// <summary>
 /// Job constructor with a aws job.
 /// </summary>
 /// <param name="job">The aws job</param>
 /// <param name="preset">The job preset</param>
 /// <param name="timeZone">The timezone to use</param>
 public Job(AwsJob job, Preset preset, TimeZoneInfo timeZone)
 {
     Id            = job.Id;
     FileName      = job.UserMetadata.ContainsKey("name") ? job.UserMetadata["name"] : job.Output.Key;
     PresetName    = preset.Name;
     Thumbnails    = !string.IsNullOrEmpty(job.Output.ThumbnailPattern);
     Rotate        = string.IsNullOrEmpty(job.Output.Rotate) ? "none" : job.Output.Rotate;
     Status        = job.Status;
     StatusDetail  = job.Output.StatusDetail;
     SubmittedDate = //Adjust for Unix time stamp, start after 1/1/1970 then convert to EST
                     TimeZoneInfo.ConvertTimeFromUtc(job.Timing.SubmitTimeMillis.DateFromUnixMilli(), timeZone).ToString("g");
 }
 /// <summary>
 /// Sets the Job property
 /// </summary>
 /// <param name="job">The value to set for the Job property </param>
 /// <returns>this instance</returns>
 public CreateJobResult WithJob(Job job)
 {
     this.job = job;
     return this;
 }
Example #3
0
 public ReadJobResult WithJob(Job job)
 {
     this.job = job;
     return this;
 }
 /// <summary>
 /// Sets the Job property
 /// </summary>
 /// <param name="job">The value to set for the Job property </param>
 /// <returns>this instance</returns>
 public CreateJobResult WithJob(Job job)
 {
     this.job = job;
     return(this);
 }