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

The system identified one of the following warnings while processing the * input document:

  • The document to classify is plain text, but the * classifier is a native model.

  • The document to classify is * semi-structured, but the classifier is a plain-text model.

  • *

See Also:

AWS * API Reference

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

Page number in the input document.

*/ inline int GetPage() const{ return m_page; } /** *

Page number in the input document.

*/ inline bool PageHasBeenSet() const { return m_pageHasBeenSet; } /** *

Page number in the input document.

*/ inline void SetPage(int value) { m_pageHasBeenSet = true; m_page = value; } /** *

Page number in the input document.

*/ inline WarningsListItem& WithPage(int value) { SetPage(value); return *this;} /** *

The type of warning.

*/ inline const PageBasedWarningCode& GetWarnCode() const{ return m_warnCode; } /** *

The type of warning.

*/ inline bool WarnCodeHasBeenSet() const { return m_warnCodeHasBeenSet; } /** *

The type of warning.

*/ inline void SetWarnCode(const PageBasedWarningCode& value) { m_warnCodeHasBeenSet = true; m_warnCode = value; } /** *

The type of warning.

*/ inline void SetWarnCode(PageBasedWarningCode&& value) { m_warnCodeHasBeenSet = true; m_warnCode = std::move(value); } /** *

The type of warning.

*/ inline WarningsListItem& WithWarnCode(const PageBasedWarningCode& value) { SetWarnCode(value); return *this;} /** *

The type of warning.

*/ inline WarningsListItem& WithWarnCode(PageBasedWarningCode&& value) { SetWarnCode(std::move(value)); return *this;} /** *

Text message associated with the warning.

*/ inline const Aws::String& GetWarnMessage() const{ return m_warnMessage; } /** *

Text message associated with the warning.

*/ inline bool WarnMessageHasBeenSet() const { return m_warnMessageHasBeenSet; } /** *

Text message associated with the warning.

*/ inline void SetWarnMessage(const Aws::String& value) { m_warnMessageHasBeenSet = true; m_warnMessage = value; } /** *

Text message associated with the warning.

*/ inline void SetWarnMessage(Aws::String&& value) { m_warnMessageHasBeenSet = true; m_warnMessage = std::move(value); } /** *

Text message associated with the warning.

*/ inline void SetWarnMessage(const char* value) { m_warnMessageHasBeenSet = true; m_warnMessage.assign(value); } /** *

Text message associated with the warning.

*/ inline WarningsListItem& WithWarnMessage(const Aws::String& value) { SetWarnMessage(value); return *this;} /** *

Text message associated with the warning.

*/ inline WarningsListItem& WithWarnMessage(Aws::String&& value) { SetWarnMessage(std::move(value)); return *this;} /** *

Text message associated with the warning.

*/ inline WarningsListItem& WithWarnMessage(const char* value) { SetWarnMessage(value); return *this;} private: int m_page; bool m_pageHasBeenSet = false; PageBasedWarningCode m_warnCode; bool m_warnCodeHasBeenSet = false; Aws::String m_warnMessage; bool m_warnMessageHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws