/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Translate { namespace Model { /** *

The properties of the custom terminology.

See Also:

AWS * API Reference

*/ class TerminologyProperties { public: AWS_TRANSLATE_API TerminologyProperties(); AWS_TRANSLATE_API TerminologyProperties(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSLATE_API TerminologyProperties& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the custom terminology.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the custom terminology.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the custom terminology.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the custom terminology.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the custom terminology.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the custom terminology.

*/ inline TerminologyProperties& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the custom terminology.

*/ inline TerminologyProperties& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the custom terminology.

*/ inline TerminologyProperties& WithName(const char* value) { SetName(value); return *this;} /** *

The description of the custom terminology properties.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the custom terminology properties.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the custom terminology properties.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the custom terminology properties.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the custom terminology properties.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the custom terminology properties.

*/ inline TerminologyProperties& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the custom terminology properties.

*/ inline TerminologyProperties& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the custom terminology properties.

*/ inline TerminologyProperties& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The Amazon Resource Name (ARN) of the custom terminology.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the custom terminology.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the custom terminology.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the custom terminology.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the custom terminology.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the custom terminology.

*/ inline TerminologyProperties& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the custom terminology.

*/ inline TerminologyProperties& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the custom terminology.

*/ inline TerminologyProperties& WithArn(const char* value) { SetArn(value); return *this;} /** *

The language code for the source text of the translation request for which * the custom terminology is being used.

*/ inline const Aws::String& GetSourceLanguageCode() const{ return m_sourceLanguageCode; } /** *

The language code for the source text of the translation request for which * the custom terminology is being used.

*/ inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; } /** *

The language code for the source text of the translation request for which * the custom terminology is being used.

*/ inline void SetSourceLanguageCode(const Aws::String& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = value; } /** *

The language code for the source text of the translation request for which * the custom terminology is being used.

*/ inline void SetSourceLanguageCode(Aws::String&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::move(value); } /** *

The language code for the source text of the translation request for which * the custom terminology is being used.

*/ inline void SetSourceLanguageCode(const char* value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode.assign(value); } /** *

The language code for the source text of the translation request for which * the custom terminology is being used.

*/ inline TerminologyProperties& WithSourceLanguageCode(const Aws::String& value) { SetSourceLanguageCode(value); return *this;} /** *

The language code for the source text of the translation request for which * the custom terminology is being used.

*/ inline TerminologyProperties& WithSourceLanguageCode(Aws::String&& value) { SetSourceLanguageCode(std::move(value)); return *this;} /** *

The language code for the source text of the translation request for which * the custom terminology is being used.

*/ inline TerminologyProperties& WithSourceLanguageCode(const char* value) { SetSourceLanguageCode(value); return *this;} /** *

The language codes for the target languages available with the custom * terminology resource. All possible target languages are returned in array.

*/ inline const Aws::Vector& GetTargetLanguageCodes() const{ return m_targetLanguageCodes; } /** *

The language codes for the target languages available with the custom * terminology resource. All possible target languages are returned in array.

*/ inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; } /** *

The language codes for the target languages available with the custom * terminology resource. All possible target languages are returned in array.

*/ inline void SetTargetLanguageCodes(const Aws::Vector& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = value; } /** *

The language codes for the target languages available with the custom * terminology resource. All possible target languages are returned in array.

*/ inline void SetTargetLanguageCodes(Aws::Vector&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = std::move(value); } /** *

The language codes for the target languages available with the custom * terminology resource. All possible target languages are returned in array.

*/ inline TerminologyProperties& WithTargetLanguageCodes(const Aws::Vector& value) { SetTargetLanguageCodes(value); return *this;} /** *

The language codes for the target languages available with the custom * terminology resource. All possible target languages are returned in array.

*/ inline TerminologyProperties& WithTargetLanguageCodes(Aws::Vector&& value) { SetTargetLanguageCodes(std::move(value)); return *this;} /** *

The language codes for the target languages available with the custom * terminology resource. All possible target languages are returned in array.

*/ inline TerminologyProperties& AddTargetLanguageCodes(const Aws::String& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(value); return *this; } /** *

The language codes for the target languages available with the custom * terminology resource. All possible target languages are returned in array.

*/ inline TerminologyProperties& AddTargetLanguageCodes(Aws::String&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(std::move(value)); return *this; } /** *

The language codes for the target languages available with the custom * terminology resource. All possible target languages are returned in array.

*/ inline TerminologyProperties& AddTargetLanguageCodes(const char* value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(value); return *this; } /** *

The encryption key for the custom terminology.

*/ inline const EncryptionKey& GetEncryptionKey() const{ return m_encryptionKey; } /** *

The encryption key for the custom terminology.

*/ inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; } /** *

The encryption key for the custom terminology.

*/ inline void SetEncryptionKey(const EncryptionKey& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; } /** *

The encryption key for the custom terminology.

*/ inline void SetEncryptionKey(EncryptionKey&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); } /** *

The encryption key for the custom terminology.

*/ inline TerminologyProperties& WithEncryptionKey(const EncryptionKey& value) { SetEncryptionKey(value); return *this;} /** *

The encryption key for the custom terminology.

*/ inline TerminologyProperties& WithEncryptionKey(EncryptionKey&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *

The size of the file used when importing a custom terminology.

*/ inline int GetSizeBytes() const{ return m_sizeBytes; } /** *

The size of the file used when importing a custom terminology.

*/ inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; } /** *

The size of the file used when importing a custom terminology.

*/ inline void SetSizeBytes(int value) { m_sizeBytesHasBeenSet = true; m_sizeBytes = value; } /** *

The size of the file used when importing a custom terminology.

*/ inline TerminologyProperties& WithSizeBytes(int value) { SetSizeBytes(value); return *this;} /** *

The number of terms included in the custom terminology.

*/ inline int GetTermCount() const{ return m_termCount; } /** *

The number of terms included in the custom terminology.

*/ inline bool TermCountHasBeenSet() const { return m_termCountHasBeenSet; } /** *

The number of terms included in the custom terminology.

*/ inline void SetTermCount(int value) { m_termCountHasBeenSet = true; m_termCount = value; } /** *

The number of terms included in the custom terminology.

*/ inline TerminologyProperties& WithTermCount(int value) { SetTermCount(value); return *this;} /** *

The time at which the custom terminology was created, based on the * timestamp.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time at which the custom terminology was created, based on the * timestamp.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time at which the custom terminology was created, based on the * timestamp.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time at which the custom terminology was created, based on the * timestamp.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time at which the custom terminology was created, based on the * timestamp.

*/ inline TerminologyProperties& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time at which the custom terminology was created, based on the * timestamp.

*/ inline TerminologyProperties& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The time at which the custom terminology was last update, based on the * timestamp.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The time at which the custom terminology was last update, based on the * timestamp.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

The time at which the custom terminology was last update, based on the * timestamp.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

The time at which the custom terminology was last update, based on the * timestamp.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

The time at which the custom terminology was last update, based on the * timestamp.

*/ inline TerminologyProperties& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The time at which the custom terminology was last update, based on the * timestamp.

*/ inline TerminologyProperties& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

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.

*/ inline const Directionality& GetDirectionality() const{ return m_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.

*/ inline bool DirectionalityHasBeenSet() const { return m_directionalityHasBeenSet; } /** *

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.

*/ inline void SetDirectionality(const Directionality& value) { m_directionalityHasBeenSet = true; m_directionality = value; } /** *

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.

*/ inline void SetDirectionality(Directionality&& value) { m_directionalityHasBeenSet = true; m_directionality = std::move(value); } /** *

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.

*/ inline TerminologyProperties& WithDirectionality(const Directionality& value) { SetDirectionality(value); return *this;} /** *

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.

*/ inline TerminologyProperties& WithDirectionality(Directionality&& value) { SetDirectionality(std::move(value)); return *this;} /** *

Additional information from Amazon Translate about the terminology * resource.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

Additional information from Amazon Translate about the terminology * resource.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

Additional information from Amazon Translate about the terminology * resource.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

Additional information from Amazon Translate about the terminology * resource.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

Additional information from Amazon Translate about the terminology * resource.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

Additional information from Amazon Translate about the terminology * resource.

*/ inline TerminologyProperties& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

Additional information from Amazon Translate about the terminology * resource.

*/ inline TerminologyProperties& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

Additional information from Amazon Translate about the terminology * resource.

*/ inline TerminologyProperties& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The number of terms in the input file that Amazon Translate skipped when you * created or updated the terminology resource.

*/ inline int GetSkippedTermCount() const{ return m_skippedTermCount; } /** *

The number of terms in the input file that Amazon Translate skipped when you * created or updated the terminology resource.

*/ inline bool SkippedTermCountHasBeenSet() const { return m_skippedTermCountHasBeenSet; } /** *

The number of terms in the input file that Amazon Translate skipped when you * created or updated the terminology resource.

*/ inline void SetSkippedTermCount(int value) { m_skippedTermCountHasBeenSet = true; m_skippedTermCount = value; } /** *

The number of terms in the input file that Amazon Translate skipped when you * created or updated the terminology resource.

*/ inline TerminologyProperties& WithSkippedTermCount(int value) { SetSkippedTermCount(value); return *this;} /** *

The format of the custom terminology input file.

*/ inline const TerminologyDataFormat& GetFormat() const{ return m_format; } /** *

The format of the custom terminology input file.

*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *

The format of the custom terminology input file.

*/ inline void SetFormat(const TerminologyDataFormat& value) { m_formatHasBeenSet = true; m_format = value; } /** *

The format of the custom terminology input file.

*/ inline void SetFormat(TerminologyDataFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *

The format of the custom terminology input file.

*/ inline TerminologyProperties& WithFormat(const TerminologyDataFormat& value) { SetFormat(value); return *this;} /** *

The format of the custom terminology input file.

*/ inline TerminologyProperties& WithFormat(TerminologyDataFormat&& value) { SetFormat(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_sourceLanguageCode; bool m_sourceLanguageCodeHasBeenSet = false; Aws::Vector m_targetLanguageCodes; bool m_targetLanguageCodesHasBeenSet = false; EncryptionKey m_encryptionKey; bool m_encryptionKeyHasBeenSet = false; int m_sizeBytes; bool m_sizeBytesHasBeenSet = false; int m_termCount; bool m_termCountHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; Directionality m_directionality; bool m_directionalityHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; int m_skippedTermCount; bool m_skippedTermCountHasBeenSet = false; TerminologyDataFormat m_format; bool m_formatHasBeenSet = false; }; } // namespace Model } // namespace Translate } // namespace Aws