/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the transcribe-2017-10-26.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.TranscribeService.Model
{
///
/// Provides detailed information about a transcription job.
///
///
///
/// To view the status of the specified transcription job, check the TranscriptionJobStatus
/// field. If the status is COMPLETED
, the job is finished and you can find
/// the results at the location specified in TranscriptFileUri
. If the status
/// is FAILED
, FailureReason
provides details on why your transcription
/// job failed.
///
///
///
/// If you enabled content redaction, the redacted transcript can be found at the location
/// specified in RedactedTranscriptFileUri
.
///
///
public partial class TranscriptionJob
{
private DateTime? _completionTime;
private ContentRedaction _contentRedaction;
private DateTime? _creationTime;
private string _failureReason;
private float? _identifiedLanguageScore;
private bool? _identifyLanguage;
private bool? _identifyMultipleLanguages;
private JobExecutionSettings _jobExecutionSettings;
private LanguageCode _languageCode;
private List _languageCodes = new List();
private Dictionary _languageIdSettings = new Dictionary();
private List _languageOptions = new List();
private Media _media;
private MediaFormat _mediaFormat;
private int? _mediaSampleRateHertz;
private ModelSettings _modelSettings;
private Settings _settings;
private DateTime? _startTime;
private SubtitlesOutput _subtitles;
private List _tags = new List();
private List _toxicityDetection = new List();
private Transcript _transcript;
private string _transcriptionJobName;
private TranscriptionJobStatus _transcriptionJobStatus;
///
/// Gets and sets the property CompletionTime.
///
/// The date and time the specified transcription job finished processing.
///
///
///
/// Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
/// 2022-05-04T12:33:13.922000-07:00
represents a transcription job that
/// started processing at 12:33 PM UTC-7 on May 4, 2022.
///
///
public DateTime CompletionTime
{
get { return this._completionTime.GetValueOrDefault(); }
set { this._completionTime = value; }
}
// Check to see if CompletionTime property is set
internal bool IsSetCompletionTime()
{
return this._completionTime.HasValue;
}
///
/// Gets and sets the property ContentRedaction.
///
/// Indicates whether redaction was enabled in your transcript.
///
///
public ContentRedaction ContentRedaction
{
get { return this._contentRedaction; }
set { this._contentRedaction = value; }
}
// Check to see if ContentRedaction property is set
internal bool IsSetContentRedaction()
{
return this._contentRedaction != null;
}
///
/// Gets and sets the property CreationTime.
///
/// The date and time the specified transcription job request was made.
///
///
///
/// Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
/// 2022-05-04T12:32:58.761000-07:00
represents a transcription job that
/// started processing at 12:32 PM UTC-7 on May 4, 2022.
///
///
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// Gets and sets the property FailureReason.
///
/// If TranscriptionJobStatus
is FAILED
, FailureReason
/// contains information about why the transcription job request failed.
///
///
///
/// The FailureReason
field contains one of the following values:
///
/// -
///
///
Unsupported media format
.
///
///
///
/// The media format specified in MediaFormat
isn't valid. Refer to MediaFormat
/// for a list of supported formats.
///
/// -
///
///
The media format provided does not match the detected media format
.
///
///
///
/// The media format specified in MediaFormat
doesn't match the format of
/// the input file. Check the media format of your media file and correct the specified
/// value.
///
/// -
///
///
Invalid sample rate for audio file
.
///
///
///
/// The sample rate specified in MediaSampleRateHertz
isn't valid. The sample
/// rate must be between 8,000 and 48,000 hertz.
///
/// -
///
///
The sample rate provided does not match the detected sample rate
.
///
///
///
/// The sample rate specified in MediaSampleRateHertz
doesn't match the sample
/// rate detected in your input media file. Check the sample rate of your media file and
/// correct the specified value.
///
/// -
///
///
Invalid file size: file size too large
.
///
///
///
/// The size of your media file is larger than what Amazon Transcribe can process. For
/// more information, refer to Guidelines
/// and quotas.
///
/// -
///
///
Invalid number of channels: number of channels too large
.
///
///
///
/// Your audio contains more channels than Amazon Transcribe is able to process. For more
/// information, refer to Guidelines
/// and quotas.
///
///
///
public string FailureReason
{
get { return this._failureReason; }
set { this._failureReason = value; }
}
// Check to see if FailureReason property is set
internal bool IsSetFailureReason()
{
return this._failureReason != null;
}
///
/// Gets and sets the property IdentifiedLanguageScore.
///
/// The confidence score associated with the language identified in your media file.
///
///
///
/// Confidence scores are values between 0 and 1; a larger value indicates a higher probability
/// that the identified language correctly matches the language spoken in your media.
///
///
public float IdentifiedLanguageScore
{
get { return this._identifiedLanguageScore.GetValueOrDefault(); }
set { this._identifiedLanguageScore = value; }
}
// Check to see if IdentifiedLanguageScore property is set
internal bool IsSetIdentifiedLanguageScore()
{
return this._identifiedLanguageScore.HasValue;
}
///
/// Gets and sets the property IdentifyLanguage.
///
/// Indicates whether automatic language identification was enabled (TRUE
)
/// for the specified transcription job.
///
///
public bool IdentifyLanguage
{
get { return this._identifyLanguage.GetValueOrDefault(); }
set { this._identifyLanguage = value; }
}
// Check to see if IdentifyLanguage property is set
internal bool IsSetIdentifyLanguage()
{
return this._identifyLanguage.HasValue;
}
///
/// Gets and sets the property IdentifyMultipleLanguages.
///
/// Indicates whether automatic multi-language identification was enabled (TRUE
)
/// for the specified transcription job.
///
///
public bool IdentifyMultipleLanguages
{
get { return this._identifyMultipleLanguages.GetValueOrDefault(); }
set { this._identifyMultipleLanguages = value; }
}
// Check to see if IdentifyMultipleLanguages property is set
internal bool IsSetIdentifyMultipleLanguages()
{
return this._identifyMultipleLanguages.HasValue;
}
///
/// Gets and sets the property JobExecutionSettings.
///
/// Provides information about how your transcription job was processed. This parameter
/// shows if your request was queued and what data access role was used.
///
///
public JobExecutionSettings JobExecutionSettings
{
get { return this._jobExecutionSettings; }
set { this._jobExecutionSettings = value; }
}
// Check to see if JobExecutionSettings property is set
internal bool IsSetJobExecutionSettings()
{
return this._jobExecutionSettings != null;
}
///
/// Gets and sets the property LanguageCode.
///
/// The language code used to create your transcription job. This parameter is used with
/// single-language identification. For multi-language identification requests, refer
/// to the plural version of this parameter, LanguageCodes
.
///
///
public LanguageCode LanguageCode
{
get { return this._languageCode; }
set { this._languageCode = value; }
}
// Check to see if LanguageCode property is set
internal bool IsSetLanguageCode()
{
return this._languageCode != null;
}
///
/// Gets and sets the property LanguageCodes.
///
/// The language codes used to create your transcription job. This parameter is used with
/// multi-language identification. For single-language identification requests, refer
/// to the singular version of this parameter, LanguageCode
.
///
///
public List LanguageCodes
{
get { return this._languageCodes; }
set { this._languageCodes = value; }
}
// Check to see if LanguageCodes property is set
internal bool IsSetLanguageCodes()
{
return this._languageCodes != null && this._languageCodes.Count > 0;
}
///
/// Gets and sets the property LanguageIdSettings.
///
/// Provides the name and language of all custom language models, custom vocabularies,
/// and custom vocabulary filters that you included in your request.
///
///
[AWSProperty(Min=1, Max=5)]
public Dictionary LanguageIdSettings
{
get { return this._languageIdSettings; }
set { this._languageIdSettings = value; }
}
// Check to see if LanguageIdSettings property is set
internal bool IsSetLanguageIdSettings()
{
return this._languageIdSettings != null && this._languageIdSettings.Count > 0;
}
///
/// Gets and sets the property LanguageOptions.
///
/// Provides the language codes you specified in your request.
///
///
[AWSProperty(Min=1)]
public List LanguageOptions
{
get { return this._languageOptions; }
set { this._languageOptions = value; }
}
// Check to see if LanguageOptions property is set
internal bool IsSetLanguageOptions()
{
return this._languageOptions != null && this._languageOptions.Count > 0;
}
///
/// Gets and sets the property Media.
///
/// Provides the Amazon S3 location of the media file you used in your request.
///
///
public Media Media
{
get { return this._media; }
set { this._media = value; }
}
// Check to see if Media property is set
internal bool IsSetMedia()
{
return this._media != null;
}
///
/// Gets and sets the property MediaFormat.
///
/// The format of the input media file.
///
///
public MediaFormat MediaFormat
{
get { return this._mediaFormat; }
set { this._mediaFormat = value; }
}
// Check to see if MediaFormat property is set
internal bool IsSetMediaFormat()
{
return this._mediaFormat != null;
}
///
/// Gets and sets the property MediaSampleRateHertz.
///
/// The sample rate, in hertz, of the audio track in your input media file.
///
///
[AWSProperty(Min=8000, Max=48000)]
public int MediaSampleRateHertz
{
get { return this._mediaSampleRateHertz.GetValueOrDefault(); }
set { this._mediaSampleRateHertz = value; }
}
// Check to see if MediaSampleRateHertz property is set
internal bool IsSetMediaSampleRateHertz()
{
return this._mediaSampleRateHertz.HasValue;
}
///
/// Gets and sets the property ModelSettings.
///
/// Provides information on the custom language model you included in your request.
///
///
public ModelSettings ModelSettings
{
get { return this._modelSettings; }
set { this._modelSettings = value; }
}
// Check to see if ModelSettings property is set
internal bool IsSetModelSettings()
{
return this._modelSettings != null;
}
///
/// Gets and sets the property Settings.
///
/// Provides information on any additional settings that were included in your request.
/// Additional settings include channel identification, alternative transcriptions, speaker
/// partitioning, custom vocabularies, and custom vocabulary filters.
///
///
public Settings Settings
{
get { return this._settings; }
set { this._settings = value; }
}
// Check to see if Settings property is set
internal bool IsSetSettings()
{
return this._settings != null;
}
///
/// Gets and sets the property StartTime.
///
/// The date and time the specified transcription job began processing.
///
///
///
/// Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
/// 2022-05-04T12:32:58.789000-07:00
represents a transcription job that
/// started processing at 12:32 PM UTC-7 on May 4, 2022.
///
///
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
///
/// Gets and sets the property Subtitles.
///
/// Indicates whether subtitles were generated with your transcription.
///
///
public SubtitlesOutput Subtitles
{
get { return this._subtitles; }
set { this._subtitles = value; }
}
// Check to see if Subtitles property is set
internal bool IsSetSubtitles()
{
return this._subtitles != null;
}
///
/// Gets and sets the property Tags.
///
/// The tags, each in the form of a key:value pair, assigned to the specified transcription
/// job.
///
///
[AWSProperty(Min=1, Max=200)]
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property ToxicityDetection.
///
/// Provides information about the toxicity detection settings applied to your transcription.
///
///
[AWSProperty(Min=1, Max=1)]
public List ToxicityDetection
{
get { return this._toxicityDetection; }
set { this._toxicityDetection = value; }
}
// Check to see if ToxicityDetection property is set
internal bool IsSetToxicityDetection()
{
return this._toxicityDetection != null && this._toxicityDetection.Count > 0;
}
///
/// Gets and sets the property Transcript.
///
/// Provides you with the Amazon S3 URI you can use to access your transcript.
///
///
public Transcript Transcript
{
get { return this._transcript; }
set { this._transcript = value; }
}
// Check to see if Transcript property is set
internal bool IsSetTranscript()
{
return this._transcript != null;
}
///
/// Gets and sets the property TranscriptionJobName.
///
/// The name of the transcription job. Job names are case sensitive and must be unique
/// within an Amazon Web Services account.
///
///
[AWSProperty(Min=1, Max=200)]
public string TranscriptionJobName
{
get { return this._transcriptionJobName; }
set { this._transcriptionJobName = value; }
}
// Check to see if TranscriptionJobName property is set
internal bool IsSetTranscriptionJobName()
{
return this._transcriptionJobName != null;
}
///
/// Gets and sets the property TranscriptionJobStatus.
///
/// Provides the status of the specified transcription job.
///
///
///
/// If the status is COMPLETED
, the job is finished and you can find the
/// results at the location specified in TranscriptFileUri
(or RedactedTranscriptFileUri
,
/// if you requested transcript redaction). If the status is FAILED
, FailureReason
/// provides details on why your transcription job failed.
///
///
public TranscriptionJobStatus TranscriptionJobStatus
{
get { return this._transcriptionJobStatus; }
set { this._transcriptionJobStatus = value; }
}
// Check to see if TranscriptionJobStatus property is set
internal bool IsSetTranscriptionJobStatus()
{
return this._transcriptionJobStatus != null;
}
}
}