/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { /** *

Configuration required for a custom classification model.

See * Also:

AWS * API Reference

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

Classification mode indicates whether the documents are * MULTI_CLASS or MULTI_LABEL.

*/ inline const DocumentClassifierMode& GetMode() const{ return m_mode; } /** *

Classification mode indicates whether the documents are * MULTI_CLASS or MULTI_LABEL.

*/ inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; } /** *

Classification mode indicates whether the documents are * MULTI_CLASS or MULTI_LABEL.

*/ inline void SetMode(const DocumentClassifierMode& value) { m_modeHasBeenSet = true; m_mode = value; } /** *

Classification mode indicates whether the documents are * MULTI_CLASS or MULTI_LABEL.

*/ inline void SetMode(DocumentClassifierMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); } /** *

Classification mode indicates whether the documents are * MULTI_CLASS or MULTI_LABEL.

*/ inline DocumentClassificationConfig& WithMode(const DocumentClassifierMode& value) { SetMode(value); return *this;} /** *

Classification mode indicates whether the documents are * MULTI_CLASS or MULTI_LABEL.

*/ inline DocumentClassificationConfig& WithMode(DocumentClassifierMode&& value) { SetMode(std::move(value)); return *this;} /** *

One or more labels to associate with the custom classifier.

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

One or more labels to associate with the custom classifier.

*/ inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; } /** *

One or more labels to associate with the custom classifier.

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

One or more labels to associate with the custom classifier.

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

One or more labels to associate with the custom classifier.

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

One or more labels to associate with the custom classifier.

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

One or more labels to associate with the custom classifier.

*/ inline DocumentClassificationConfig& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; } /** *

One or more labels to associate with the custom classifier.

*/ inline DocumentClassificationConfig& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; } /** *

One or more labels to associate with the custom classifier.

*/ inline DocumentClassificationConfig& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; } private: DocumentClassifierMode m_mode; bool m_modeHasBeenSet = false; Aws::Vector m_labels; bool m_labelsHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws