/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 AWS_TRANSLATE_API TerminologyProperties { public: TerminologyProperties(); TerminologyProperties(Aws::Utils::Json::JsonView jsonValue); TerminologyProperties& operator=(Aws::Utils::Json::JsonView jsonValue); 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 file. 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 file. 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 file. 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 file. 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 file. 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 file. 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 file. 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 file. 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 file. 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;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; Aws::String m_arn; bool m_arnHasBeenSet; Aws::String m_sourceLanguageCode; bool m_sourceLanguageCodeHasBeenSet; Aws::Vector m_targetLanguageCodes; bool m_targetLanguageCodesHasBeenSet; EncryptionKey m_encryptionKey; bool m_encryptionKeyHasBeenSet; int m_sizeBytes; bool m_sizeBytesHasBeenSet; int m_termCount; bool m_termCountHasBeenSet; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet; }; } // namespace Model } // namespace Translate } // namespace Aws