/** * 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 Comprehend { namespace Model { class AWS_COMPREHEND_API ClassifyDocumentResult { public: ClassifyDocumentResult(); ClassifyDocumentResult(const Aws::AmazonWebServiceResult& result); ClassifyDocumentResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The classes used by the document being analyzed. These are used for * multi-class trained models. Individual classes are mutually exclusive and each * document is expected to have only a single class assigned to it. For example, an * animal can be a dog or a cat, but not both at the same time.

*/ inline const Aws::Vector& GetClasses() const{ return m_classes; } /** *

The classes used by the document being analyzed. These are used for * multi-class trained models. Individual classes are mutually exclusive and each * document is expected to have only a single class assigned to it. For example, an * animal can be a dog or a cat, but not both at the same time.

*/ inline void SetClasses(const Aws::Vector& value) { m_classes = value; } /** *

The classes used by the document being analyzed. These are used for * multi-class trained models. Individual classes are mutually exclusive and each * document is expected to have only a single class assigned to it. For example, an * animal can be a dog or a cat, but not both at the same time.

*/ inline void SetClasses(Aws::Vector&& value) { m_classes = std::move(value); } /** *

The classes used by the document being analyzed. These are used for * multi-class trained models. Individual classes are mutually exclusive and each * document is expected to have only a single class assigned to it. For example, an * animal can be a dog or a cat, but not both at the same time.

*/ inline ClassifyDocumentResult& WithClasses(const Aws::Vector& value) { SetClasses(value); return *this;} /** *

The classes used by the document being analyzed. These are used for * multi-class trained models. Individual classes are mutually exclusive and each * document is expected to have only a single class assigned to it. For example, an * animal can be a dog or a cat, but not both at the same time.

*/ inline ClassifyDocumentResult& WithClasses(Aws::Vector&& value) { SetClasses(std::move(value)); return *this;} /** *

The classes used by the document being analyzed. These are used for * multi-class trained models. Individual classes are mutually exclusive and each * document is expected to have only a single class assigned to it. For example, an * animal can be a dog or a cat, but not both at the same time.

*/ inline ClassifyDocumentResult& AddClasses(const DocumentClass& value) { m_classes.push_back(value); return *this; } /** *

The classes used by the document being analyzed. These are used for * multi-class trained models. Individual classes are mutually exclusive and each * document is expected to have only a single class assigned to it. For example, an * animal can be a dog or a cat, but not both at the same time.

*/ inline ClassifyDocumentResult& AddClasses(DocumentClass&& value) { m_classes.push_back(std::move(value)); return *this; } /** *

The labels used the document being analyzed. These are used for multi-label * trained models. Individual labels represent different categories that are * related in some manner and are not multually exclusive. For example, a movie can * be just an action movie, or it can be an action movie, a science fiction movie, * and a comedy, all at the same time.

*/ inline const Aws::Vector& GetLabels() const{ return m_labels; } /** *

The labels used the document being analyzed. These are used for multi-label * trained models. Individual labels represent different categories that are * related in some manner and are not multually exclusive. For example, a movie can * be just an action movie, or it can be an action movie, a science fiction movie, * and a comedy, all at the same time.

*/ inline void SetLabels(const Aws::Vector& value) { m_labels = value; } /** *

The labels used the document being analyzed. These are used for multi-label * trained models. Individual labels represent different categories that are * related in some manner and are not multually exclusive. For example, a movie can * be just an action movie, or it can be an action movie, a science fiction movie, * and a comedy, all at the same time.

*/ inline void SetLabels(Aws::Vector&& value) { m_labels = std::move(value); } /** *

The labels used the document being analyzed. These are used for multi-label * trained models. Individual labels represent different categories that are * related in some manner and are not multually exclusive. For example, a movie can * be just an action movie, or it can be an action movie, a science fiction movie, * and a comedy, all at the same time.

*/ inline ClassifyDocumentResult& WithLabels(const Aws::Vector& value) { SetLabels(value); return *this;} /** *

The labels used the document being analyzed. These are used for multi-label * trained models. Individual labels represent different categories that are * related in some manner and are not multually exclusive. For example, a movie can * be just an action movie, or it can be an action movie, a science fiction movie, * and a comedy, all at the same time.

*/ inline ClassifyDocumentResult& WithLabels(Aws::Vector&& value) { SetLabels(std::move(value)); return *this;} /** *

The labels used the document being analyzed. These are used for multi-label * trained models. Individual labels represent different categories that are * related in some manner and are not multually exclusive. For example, a movie can * be just an action movie, or it can be an action movie, a science fiction movie, * and a comedy, all at the same time.

*/ inline ClassifyDocumentResult& AddLabels(const DocumentLabel& value) { m_labels.push_back(value); return *this; } /** *

The labels used the document being analyzed. These are used for multi-label * trained models. Individual labels represent different categories that are * related in some manner and are not multually exclusive. For example, a movie can * be just an action movie, or it can be an action movie, a science fiction movie, * and a comedy, all at the same time.

*/ inline ClassifyDocumentResult& AddLabels(DocumentLabel&& value) { m_labels.push_back(std::move(value)); return *this; } private: Aws::Vector m_classes; Aws::Vector m_labels; }; } // namespace Model } // namespace Comprehend } // namespace Aws