/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The data associated with the custom terminology. For information about the
* custom terminology file, see
* Creating a Custom Terminology.See Also:
AWS
* API Reference
The file containing the custom terminology data. Your version of the AWS SDK * performs a Base64-encoding on this field before sending a request to the AWS * service. Users of the SDK should not perform Base64-encoding themselves.
*/ inline const Aws::Utils::CryptoBuffer& GetFile() const{ return m_file; } /** *The file containing the custom terminology data. Your version of the AWS SDK * performs a Base64-encoding on this field before sending a request to the AWS * service. Users of the SDK should not perform Base64-encoding themselves.
*/ inline bool FileHasBeenSet() const { return m_fileHasBeenSet; } /** *The file containing the custom terminology data. Your version of the AWS SDK * performs a Base64-encoding on this field before sending a request to the AWS * service. Users of the SDK should not perform Base64-encoding themselves.
*/ inline void SetFile(const Aws::Utils::CryptoBuffer& value) { m_fileHasBeenSet = true; m_file = value; } /** *The file containing the custom terminology data. Your version of the AWS SDK * performs a Base64-encoding on this field before sending a request to the AWS * service. Users of the SDK should not perform Base64-encoding themselves.
*/ inline void SetFile(Aws::Utils::CryptoBuffer&& value) { m_fileHasBeenSet = true; m_file = std::move(value); } /** *The file containing the custom terminology data. Your version of the AWS SDK * performs a Base64-encoding on this field before sending a request to the AWS * service. Users of the SDK should not perform Base64-encoding themselves.
*/ inline TerminologyData& WithFile(const Aws::Utils::CryptoBuffer& value) { SetFile(value); return *this;} /** *The file containing the custom terminology data. Your version of the AWS SDK * performs a Base64-encoding on this field before sending a request to the AWS * service. Users of the SDK should not perform Base64-encoding themselves.
*/ inline TerminologyData& WithFile(Aws::Utils::CryptoBuffer&& value) { SetFile(std::move(value)); return *this;} /** *The data format of the custom terminology.
*/ inline const TerminologyDataFormat& GetFormat() const{ return m_format; } /** *The data format of the custom terminology.
*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *The data format of the custom terminology.
*/ inline void SetFormat(const TerminologyDataFormat& value) { m_formatHasBeenSet = true; m_format = value; } /** *The data format of the custom terminology.
*/ inline void SetFormat(TerminologyDataFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *The data format of the custom terminology.
*/ inline TerminologyData& WithFormat(const TerminologyDataFormat& value) { SetFormat(value); return *this;} /** *The data format of the custom terminology.
*/ inline TerminologyData& WithFormat(TerminologyDataFormat&& value) { SetFormat(std::move(value)); return *this;} /** *The directionality of your terminology resource indicates whether it has one * source language (uni-directional) or multiple (multi-directional).
The terminology resource has one source language (for * example, the first column in a CSV file), and all of its other languages are * target languages.
Any language in the * terminology resource can be the source language or a target language. A single * multi-directional terminology resource can be used for jobs that translate * different language pairs. For example, if the terminology contains English and * Spanish terms, it can be used for jobs that translate English to Spanish and * Spanish to English.
When you create a custom terminology * resource without specifying the directionality, it behaves as uni-directional * terminology, although this parameter will have a null value.
*/ 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).
The terminology resource has one source language (for * example, the first column in a CSV file), and all of its other languages are * target languages.
Any language in the * terminology resource can be the source language or a target language. A single * multi-directional terminology resource can be used for jobs that translate * different language pairs. For example, if the terminology contains English and * Spanish terms, it can be used for jobs that translate English to Spanish and * Spanish to English.
When you create a custom terminology * resource without specifying the directionality, it behaves as uni-directional * terminology, although this parameter will have a null value.
*/ 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).
The terminology resource has one source language (for * example, the first column in a CSV file), and all of its other languages are * target languages.
Any language in the * terminology resource can be the source language or a target language. A single * multi-directional terminology resource can be used for jobs that translate * different language pairs. For example, if the terminology contains English and * Spanish terms, it can be used for jobs that translate English to Spanish and * Spanish to English.
When you create a custom terminology * resource without specifying the directionality, it behaves as uni-directional * terminology, although this parameter will have a null value.
*/ 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).
The terminology resource has one source language (for * example, the first column in a CSV file), and all of its other languages are * target languages.
Any language in the * terminology resource can be the source language or a target language. A single * multi-directional terminology resource can be used for jobs that translate * different language pairs. For example, if the terminology contains English and * Spanish terms, it can be used for jobs that translate English to Spanish and * Spanish to English.
When you create a custom terminology * resource without specifying the directionality, it behaves as uni-directional * terminology, although this parameter will have a null value.
*/ 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).
The terminology resource has one source language (for * example, the first column in a CSV file), and all of its other languages are * target languages.
Any language in the * terminology resource can be the source language or a target language. A single * multi-directional terminology resource can be used for jobs that translate * different language pairs. For example, if the terminology contains English and * Spanish terms, it can be used for jobs that translate English to Spanish and * Spanish to English.
When you create a custom terminology * resource without specifying the directionality, it behaves as uni-directional * terminology, although this parameter will have a null value.
*/ inline TerminologyData& 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).
The terminology resource has one source language (for * example, the first column in a CSV file), and all of its other languages are * target languages.
Any language in the * terminology resource can be the source language or a target language. A single * multi-directional terminology resource can be used for jobs that translate * different language pairs. For example, if the terminology contains English and * Spanish terms, it can be used for jobs that translate English to Spanish and * Spanish to English.
When you create a custom terminology * resource without specifying the directionality, it behaves as uni-directional * terminology, although this parameter will have a null value.
*/ inline TerminologyData& WithDirectionality(Directionality&& value) { SetDirectionality(std::move(value)); return *this;} private: Aws::Utils::CryptoBuffer m_file; bool m_fileHasBeenSet = false; TerminologyDataFormat m_format; bool m_formatHasBeenSet = false; Directionality m_directionality; bool m_directionalityHasBeenSet = false; }; } // namespace Model } // namespace Translate } // namespace Aws