/* * 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 translate-2017-07-01.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.Translate.Model { /// /// The properties of a parallel data resource. /// public partial class ParallelDataProperties { private string _arn; private DateTime? _createdAt; private string _description; private EncryptionKey _encryptionKey; private long? _failedRecordCount; private long? _importedDataSize; private long? _importedRecordCount; private DateTime? _lastUpdatedAt; private DateTime? _latestUpdateAttemptAt; private ParallelDataStatus _latestUpdateAttemptStatus; private string _message; private string _name; private ParallelDataConfig _parallelDataConfig; private long? _skippedRecordCount; private string _sourceLanguageCode; private ParallelDataStatus _status; private List _targetLanguageCodes = new List(); /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the parallel data resource. /// /// [AWSProperty(Min=1, Max=512)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property CreatedAt. /// /// The time at which the parallel data resource was created. /// /// public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// /// Gets and sets the property Description. /// /// The description assigned to the parallel data resource. /// /// [AWSProperty(Max=256)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property EncryptionKey. /// public EncryptionKey EncryptionKey { get { return this._encryptionKey; } set { this._encryptionKey = value; } } // Check to see if EncryptionKey property is set internal bool IsSetEncryptionKey() { return this._encryptionKey != null; } /// /// Gets and sets the property FailedRecordCount. /// /// The number of records unsuccessfully imported from the parallel data input file. /// /// public long FailedRecordCount { get { return this._failedRecordCount.GetValueOrDefault(); } set { this._failedRecordCount = value; } } // Check to see if FailedRecordCount property is set internal bool IsSetFailedRecordCount() { return this._failedRecordCount.HasValue; } /// /// Gets and sets the property ImportedDataSize. /// /// The number of UTF-8 characters that Amazon Translate imported from the parallel data /// input file. This number includes only the characters in your translation examples. /// It does not include characters that are used to format your file. For example, if /// you provided a Translation Memory Exchange (.tmx) file, this number does not include /// the tags. /// /// public long ImportedDataSize { get { return this._importedDataSize.GetValueOrDefault(); } set { this._importedDataSize = value; } } // Check to see if ImportedDataSize property is set internal bool IsSetImportedDataSize() { return this._importedDataSize.HasValue; } /// /// Gets and sets the property ImportedRecordCount. /// /// The number of records successfully imported from the parallel data input file. /// /// public long ImportedRecordCount { get { return this._importedRecordCount.GetValueOrDefault(); } set { this._importedRecordCount = value; } } // Check to see if ImportedRecordCount property is set internal bool IsSetImportedRecordCount() { return this._importedRecordCount.HasValue; } /// /// Gets and sets the property LastUpdatedAt. /// /// The time at which the parallel data resource was last updated. /// /// public DateTime LastUpdatedAt { get { return this._lastUpdatedAt.GetValueOrDefault(); } set { this._lastUpdatedAt = value; } } // Check to see if LastUpdatedAt property is set internal bool IsSetLastUpdatedAt() { return this._lastUpdatedAt.HasValue; } /// /// Gets and sets the property LatestUpdateAttemptAt. /// /// The time that the most recent update was attempted. /// /// public DateTime LatestUpdateAttemptAt { get { return this._latestUpdateAttemptAt.GetValueOrDefault(); } set { this._latestUpdateAttemptAt = value; } } // Check to see if LatestUpdateAttemptAt property is set internal bool IsSetLatestUpdateAttemptAt() { return this._latestUpdateAttemptAt.HasValue; } /// /// Gets and sets the property LatestUpdateAttemptStatus. /// /// The status of the most recent update attempt for the parallel data resource. /// /// public ParallelDataStatus LatestUpdateAttemptStatus { get { return this._latestUpdateAttemptStatus; } set { this._latestUpdateAttemptStatus = value; } } // Check to see if LatestUpdateAttemptStatus property is set internal bool IsSetLatestUpdateAttemptStatus() { return this._latestUpdateAttemptStatus != null; } /// /// Gets and sets the property Message. /// /// Additional information from Amazon Translate about the parallel data resource. /// /// public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } /// /// Gets and sets the property Name. /// /// The custom name assigned to the parallel data resource. /// /// [AWSProperty(Min=1, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property ParallelDataConfig. /// /// Specifies the format and S3 location of the parallel data input file. /// /// public ParallelDataConfig ParallelDataConfig { get { return this._parallelDataConfig; } set { this._parallelDataConfig = value; } } // Check to see if ParallelDataConfig property is set internal bool IsSetParallelDataConfig() { return this._parallelDataConfig != null; } /// /// Gets and sets the property SkippedRecordCount. /// /// The number of items in the input file that Amazon Translate skipped when you created /// or updated the parallel data resource. For example, Amazon Translate skips empty records, /// empty target texts, and empty lines. /// /// public long SkippedRecordCount { get { return this._skippedRecordCount.GetValueOrDefault(); } set { this._skippedRecordCount = value; } } // Check to see if SkippedRecordCount property is set internal bool IsSetSkippedRecordCount() { return this._skippedRecordCount.HasValue; } /// /// Gets and sets the property SourceLanguageCode. /// /// The source language of the translations in the parallel data file. /// /// [AWSProperty(Min=2, Max=5)] public string SourceLanguageCode { get { return this._sourceLanguageCode; } set { this._sourceLanguageCode = value; } } // Check to see if SourceLanguageCode property is set internal bool IsSetSourceLanguageCode() { return this._sourceLanguageCode != null; } /// /// Gets and sets the property Status. /// /// The status of the parallel data resource. When the parallel data is ready for you /// to use, the status is ACTIVE. /// /// public ParallelDataStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property TargetLanguageCodes. /// /// The language codes for the target languages available in the parallel data file. All /// possible target languages are returned as an array. /// /// public List TargetLanguageCodes { get { return this._targetLanguageCodes; } set { this._targetLanguageCodes = value; } } // Check to see if TargetLanguageCodes property is set internal bool IsSetTargetLanguageCodes() { return this._targetLanguageCodes != null && this._targetLanguageCodes.Count > 0; } } }