/** * 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 content and content type of a document.

See Also:

AWS * API Reference

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

The Contentfield type is Binary large object (blob). This object * contains the document content converted into base64-encoded binary data. If you * use one of the AWS SDKs, the SDK performs the Base64-encoding on this field * before sending the request.

*/ inline const Aws::Utils::CryptoBuffer& GetContent() const{ return m_content; } /** *

The Contentfield type is Binary large object (blob). This object * contains the document content converted into base64-encoded binary data. If you * use one of the AWS SDKs, the SDK performs the Base64-encoding on this field * before sending the request.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The Contentfield type is Binary large object (blob). This object * contains the document content converted into base64-encoded binary data. If you * use one of the AWS SDKs, the SDK performs the Base64-encoding on this field * before sending the request.

*/ inline void SetContent(const Aws::Utils::CryptoBuffer& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The Contentfield type is Binary large object (blob). This object * contains the document content converted into base64-encoded binary data. If you * use one of the AWS SDKs, the SDK performs the Base64-encoding on this field * before sending the request.

*/ inline void SetContent(Aws::Utils::CryptoBuffer&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The Contentfield type is Binary large object (blob). This object * contains the document content converted into base64-encoded binary data. If you * use one of the AWS SDKs, the SDK performs the Base64-encoding on this field * before sending the request.

*/ inline Document& WithContent(const Aws::Utils::CryptoBuffer& value) { SetContent(value); return *this;} /** *

The Contentfield type is Binary large object (blob). This object * contains the document content converted into base64-encoded binary data. If you * use one of the AWS SDKs, the SDK performs the Base64-encoding on this field * before sending the request.

*/ inline Document& WithContent(Aws::Utils::CryptoBuffer&& value) { SetContent(std::move(value)); return *this;} /** *

Describes the format of the document. You can specify one of the * following:

  • text/html - The input data consists of * HTML content. Amazon Translate translates only the text in the HTML element.

    *
  • text/plain - The input data consists of unformatted * text. Amazon Translate translates every character in the content.

  • *
  • * application/vnd.openxmlformats-officedocument.wordprocessingml.document * - The input data consists of a Word document (.docx).

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

Describes the format of the document. You can specify one of the * following:

  • text/html - The input data consists of * HTML content. Amazon Translate translates only the text in the HTML element.

    *
  • text/plain - The input data consists of unformatted * text. Amazon Translate translates every character in the content.

  • *
  • * application/vnd.openxmlformats-officedocument.wordprocessingml.document * - The input data consists of a Word document (.docx).

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

Describes the format of the document. You can specify one of the * following:

  • text/html - The input data consists of * HTML content. Amazon Translate translates only the text in the HTML element.

    *
  • text/plain - The input data consists of unformatted * text. Amazon Translate translates every character in the content.

  • *
  • * application/vnd.openxmlformats-officedocument.wordprocessingml.document * - The input data consists of a Word document (.docx).

*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

Describes the format of the document. You can specify one of the * following:

  • text/html - The input data consists of * HTML content. Amazon Translate translates only the text in the HTML element.

    *
  • text/plain - The input data consists of unformatted * text. Amazon Translate translates every character in the content.

  • *
  • * application/vnd.openxmlformats-officedocument.wordprocessingml.document * - The input data consists of a Word document (.docx).

*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

Describes the format of the document. You can specify one of the * following:

  • text/html - The input data consists of * HTML content. Amazon Translate translates only the text in the HTML element.

    *
  • text/plain - The input data consists of unformatted * text. Amazon Translate translates every character in the content.

  • *
  • * application/vnd.openxmlformats-officedocument.wordprocessingml.document * - The input data consists of a Word document (.docx).

*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *

Describes the format of the document. You can specify one of the * following:

  • text/html - The input data consists of * HTML content. Amazon Translate translates only the text in the HTML element.

    *
  • text/plain - The input data consists of unformatted * text. Amazon Translate translates every character in the content.

  • *
  • * application/vnd.openxmlformats-officedocument.wordprocessingml.document * - The input data consists of a Word document (.docx).

*/ inline Document& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

Describes the format of the document. You can specify one of the * following:

  • text/html - The input data consists of * HTML content. Amazon Translate translates only the text in the HTML element.

    *
  • text/plain - The input data consists of unformatted * text. Amazon Translate translates every character in the content.

  • *
  • * application/vnd.openxmlformats-officedocument.wordprocessingml.document * - The input data consists of a Word document (.docx).

*/ inline Document& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

Describes the format of the document. You can specify one of the * following:

  • text/html - The input data consists of * HTML content. Amazon Translate translates only the text in the HTML element.

    *
  • text/plain - The input data consists of unformatted * text. Amazon Translate translates every character in the content.

  • *
  • * application/vnd.openxmlformats-officedocument.wordprocessingml.document * - The input data consists of a Word document (.docx).

*/ inline Document& WithContentType(const char* value) { SetContentType(value); return *this;} private: Aws::Utils::CryptoBuffer m_content; bool m_contentHasBeenSet = false; Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; }; } // namespace Model } // namespace Translate } // namespace Aws