/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Translate { namespace Model { class GetTerminologyResult { public: AWS_TRANSLATE_API GetTerminologyResult(); AWS_TRANSLATE_API GetTerminologyResult(const Aws::AmazonWebServiceResult& result); AWS_TRANSLATE_API GetTerminologyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The properties of the custom terminology being retrieved.

*/ inline const TerminologyProperties& GetTerminologyProperties() const{ return m_terminologyProperties; } /** *

The properties of the custom terminology being retrieved.

*/ inline void SetTerminologyProperties(const TerminologyProperties& value) { m_terminologyProperties = value; } /** *

The properties of the custom terminology being retrieved.

*/ inline void SetTerminologyProperties(TerminologyProperties&& value) { m_terminologyProperties = std::move(value); } /** *

The properties of the custom terminology being retrieved.

*/ inline GetTerminologyResult& WithTerminologyProperties(const TerminologyProperties& value) { SetTerminologyProperties(value); return *this;} /** *

The properties of the custom terminology being retrieved.

*/ inline GetTerminologyResult& WithTerminologyProperties(TerminologyProperties&& value) { SetTerminologyProperties(std::move(value)); return *this;} /** *

The Amazon S3 location of the most recent custom terminology input file that * was successfully imported into Amazon Translate. The location is returned as a * presigned URL that has a 30-minute expiration.

Amazon * Translate doesn't scan all input files for the risk of CSV injection attacks. *

CSV injection occurs when a .csv or .tsv file is altered so that a * record contains malicious code. The record begins with a special character, such * as =, +, -, or @. When the file is opened in a spreadsheet program, the program * might interpret the record as a formula and run the code within it.

*

Before you download an input file from Amazon S3, ensure that you recognize * the file and trust its creator.

*/ inline const TerminologyDataLocation& GetTerminologyDataLocation() const{ return m_terminologyDataLocation; } /** *

The Amazon S3 location of the most recent custom terminology input file that * was successfully imported into Amazon Translate. The location is returned as a * presigned URL that has a 30-minute expiration.

Amazon * Translate doesn't scan all input files for the risk of CSV injection attacks. *

CSV injection occurs when a .csv or .tsv file is altered so that a * record contains malicious code. The record begins with a special character, such * as =, +, -, or @. When the file is opened in a spreadsheet program, the program * might interpret the record as a formula and run the code within it.

*

Before you download an input file from Amazon S3, ensure that you recognize * the file and trust its creator.

*/ inline void SetTerminologyDataLocation(const TerminologyDataLocation& value) { m_terminologyDataLocation = value; } /** *

The Amazon S3 location of the most recent custom terminology input file that * was successfully imported into Amazon Translate. The location is returned as a * presigned URL that has a 30-minute expiration.

Amazon * Translate doesn't scan all input files for the risk of CSV injection attacks. *

CSV injection occurs when a .csv or .tsv file is altered so that a * record contains malicious code. The record begins with a special character, such * as =, +, -, or @. When the file is opened in a spreadsheet program, the program * might interpret the record as a formula and run the code within it.

*

Before you download an input file from Amazon S3, ensure that you recognize * the file and trust its creator.

*/ inline void SetTerminologyDataLocation(TerminologyDataLocation&& value) { m_terminologyDataLocation = std::move(value); } /** *

The Amazon S3 location of the most recent custom terminology input file that * was successfully imported into Amazon Translate. The location is returned as a * presigned URL that has a 30-minute expiration.

Amazon * Translate doesn't scan all input files for the risk of CSV injection attacks. *

CSV injection occurs when a .csv or .tsv file is altered so that a * record contains malicious code. The record begins with a special character, such * as =, +, -, or @. When the file is opened in a spreadsheet program, the program * might interpret the record as a formula and run the code within it.

*

Before you download an input file from Amazon S3, ensure that you recognize * the file and trust its creator.

*/ inline GetTerminologyResult& WithTerminologyDataLocation(const TerminologyDataLocation& value) { SetTerminologyDataLocation(value); return *this;} /** *

The Amazon S3 location of the most recent custom terminology input file that * was successfully imported into Amazon Translate. The location is returned as a * presigned URL that has a 30-minute expiration.

Amazon * Translate doesn't scan all input files for the risk of CSV injection attacks. *

CSV injection occurs when a .csv or .tsv file is altered so that a * record contains malicious code. The record begins with a special character, such * as =, +, -, or @. When the file is opened in a spreadsheet program, the program * might interpret the record as a formula and run the code within it.

*

Before you download an input file from Amazon S3, ensure that you recognize * the file and trust its creator.

*/ inline GetTerminologyResult& WithTerminologyDataLocation(TerminologyDataLocation&& value) { SetTerminologyDataLocation(std::move(value)); return *this;} /** *

The Amazon S3 location of a file that provides any errors or warnings that * were produced by your input file. This file was created when Amazon Translate * attempted to create a terminology resource. The location is returned as a * presigned URL to that has a 30-minute expiration.

*/ inline const TerminologyDataLocation& GetAuxiliaryDataLocation() const{ return m_auxiliaryDataLocation; } /** *

The Amazon S3 location of a file that provides any errors or warnings that * were produced by your input file. This file was created when Amazon Translate * attempted to create a terminology resource. The location is returned as a * presigned URL to that has a 30-minute expiration.

*/ inline void SetAuxiliaryDataLocation(const TerminologyDataLocation& value) { m_auxiliaryDataLocation = value; } /** *

The Amazon S3 location of a file that provides any errors or warnings that * were produced by your input file. This file was created when Amazon Translate * attempted to create a terminology resource. The location is returned as a * presigned URL to that has a 30-minute expiration.

*/ inline void SetAuxiliaryDataLocation(TerminologyDataLocation&& value) { m_auxiliaryDataLocation = std::move(value); } /** *

The Amazon S3 location of a file that provides any errors or warnings that * were produced by your input file. This file was created when Amazon Translate * attempted to create a terminology resource. The location is returned as a * presigned URL to that has a 30-minute expiration.

*/ inline GetTerminologyResult& WithAuxiliaryDataLocation(const TerminologyDataLocation& value) { SetAuxiliaryDataLocation(value); return *this;} /** *

The Amazon S3 location of a file that provides any errors or warnings that * were produced by your input file. This file was created when Amazon Translate * attempted to create a terminology resource. The location is returned as a * presigned URL to that has a 30-minute expiration.

*/ inline GetTerminologyResult& WithAuxiliaryDataLocation(TerminologyDataLocation&& value) { SetAuxiliaryDataLocation(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetTerminologyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetTerminologyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetTerminologyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: TerminologyProperties m_terminologyProperties; TerminologyDataLocation m_terminologyDataLocation; TerminologyDataLocation m_auxiliaryDataLocation; Aws::String m_requestId; }; } // namespace Model } // namespace Translate } // namespace Aws