/* * 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 the custom terminology. /// public partial class TerminologyProperties { private string _arn; private DateTime? _createdAt; private string _description; private Directionality _directionality; private EncryptionKey _encryptionKey; private TerminologyDataFormat _format; private DateTime? _lastUpdatedAt; private string _message; private string _name; private int? _sizeBytes; private int? _skippedTermCount; private string _sourceLanguageCode; private List _targetLanguageCodes = new List(); private int? _termCount; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the custom terminology. /// /// [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 custom terminology was created, based on the timestamp. /// /// 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 of the custom terminology properties. /// /// [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 Directionality. /// /// The directionality of your terminology resource indicates whether it has one source /// language (uni-directional) or multiple (multi-directional). /// ///
UNI
/// /// The terminology resource has one source language (the first column in a CSV file), /// and all of its other languages are target languages. /// ///
MULTI
/// /// Any language in the terminology resource can be the source language. /// ///
///
public Directionality Directionality { get { return this._directionality; } set { this._directionality = value; } } // Check to see if Directionality property is set internal bool IsSetDirectionality() { return this._directionality != null; } /// /// Gets and sets the property EncryptionKey. /// /// The encryption key for the custom terminology. /// /// 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 Format. /// /// The format of the custom terminology input file. /// /// public TerminologyDataFormat Format { get { return this._format; } set { this._format = value; } } // Check to see if Format property is set internal bool IsSetFormat() { return this._format != null; } /// /// Gets and sets the property LastUpdatedAt. /// /// The time at which the custom terminology was last update, based on the timestamp. /// /// 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 Message. /// /// Additional information from Amazon Translate about the terminology 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 name of the custom terminology. /// /// [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 SizeBytes. /// /// The size of the file used when importing a custom terminology. /// /// public int SizeBytes { get { return this._sizeBytes.GetValueOrDefault(); } set { this._sizeBytes = value; } } // Check to see if SizeBytes property is set internal bool IsSetSizeBytes() { return this._sizeBytes.HasValue; } /// /// Gets and sets the property SkippedTermCount. /// /// The number of terms in the input file that Amazon Translate skipped when you created /// or updated the terminology resource. /// /// public int SkippedTermCount { get { return this._skippedTermCount.GetValueOrDefault(); } set { this._skippedTermCount = value; } } // Check to see if SkippedTermCount property is set internal bool IsSetSkippedTermCount() { return this._skippedTermCount.HasValue; } /// /// Gets and sets the property SourceLanguageCode. /// /// The language code for the source text of the translation request for which the custom /// terminology is being used. /// /// [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 TargetLanguageCodes. /// /// The language codes for the target languages available with the custom terminology /// resource. All possible target languages are returned in 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; } /// /// Gets and sets the property TermCount. /// /// The number of terms included in the custom terminology. /// /// public int TermCount { get { return this._termCount.GetValueOrDefault(); } set { this._termCount = value; } } // Check to see if TermCount property is set internal bool IsSetTermCount() { return this._termCount.HasValue; } } }