/** * 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 Textract { namespace Model { /** *

A warning about an issue that occurred during asynchronous text analysis * (StartDocumentAnalysis) or asynchronous document text detection * (StartDocumentTextDetection).

See Also:

AWS * API Reference

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

The error code for the warning.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

The error code for the warning.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The error code for the warning.

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The error code for the warning.

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The error code for the warning.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

The error code for the warning.

*/ inline Warning& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

The error code for the warning.

*/ inline Warning& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The error code for the warning.

*/ inline Warning& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

A list of the pages that the warning applies to.

*/ inline const Aws::Vector& GetPages() const{ return m_pages; } /** *

A list of the pages that the warning applies to.

*/ inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; } /** *

A list of the pages that the warning applies to.

*/ inline void SetPages(const Aws::Vector& value) { m_pagesHasBeenSet = true; m_pages = value; } /** *

A list of the pages that the warning applies to.

*/ inline void SetPages(Aws::Vector&& value) { m_pagesHasBeenSet = true; m_pages = std::move(value); } /** *

A list of the pages that the warning applies to.

*/ inline Warning& WithPages(const Aws::Vector& value) { SetPages(value); return *this;} /** *

A list of the pages that the warning applies to.

*/ inline Warning& WithPages(Aws::Vector&& value) { SetPages(std::move(value)); return *this;} /** *

A list of the pages that the warning applies to.

*/ inline Warning& AddPages(int value) { m_pagesHasBeenSet = true; m_pages.push_back(value); return *this; } private: Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::Vector m_pages; bool m_pagesHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws