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

The data associated with the custom terminology.

See Also:

* AWS * API Reference

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

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. Either CSV or TMX.

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

The data format of the custom terminology. Either CSV or TMX.

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

The data format of the custom terminology. Either CSV or TMX.

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

The data format of the custom terminology. Either CSV or TMX.

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

The data format of the custom terminology. Either CSV or TMX.

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

The data format of the custom terminology. Either CSV or TMX.

*/ inline TerminologyData& WithFormat(TerminologyDataFormat&& value) { SetFormat(std::move(value)); return *this;} private: Aws::Utils::CryptoBuffer m_file; bool m_fileHasBeenSet; TerminologyDataFormat m_format; bool m_formatHasBeenSet; }; } // namespace Model } // namespace Translate } // namespace Aws