/** * 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 about the custom classifier associated with the * flywheel.

See Also:

AWS * API Reference

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

Language code for the language that the model supports.

*/ inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; } /** *

Language code for the language that the model supports.

*/ inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** *

Language code for the language that the model supports.

*/ inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } /** *

Language code for the language that the model supports.

*/ inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } /** *

Language code for the language that the model supports.

*/ inline TaskConfig& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;} /** *

Language code for the language that the model supports.

*/ inline TaskConfig& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} /** *

Configuration required for a classification model.

*/ inline const DocumentClassificationConfig& GetDocumentClassificationConfig() const{ return m_documentClassificationConfig; } /** *

Configuration required for a classification model.

*/ inline bool DocumentClassificationConfigHasBeenSet() const { return m_documentClassificationConfigHasBeenSet; } /** *

Configuration required for a classification model.

*/ inline void SetDocumentClassificationConfig(const DocumentClassificationConfig& value) { m_documentClassificationConfigHasBeenSet = true; m_documentClassificationConfig = value; } /** *

Configuration required for a classification model.

*/ inline void SetDocumentClassificationConfig(DocumentClassificationConfig&& value) { m_documentClassificationConfigHasBeenSet = true; m_documentClassificationConfig = std::move(value); } /** *

Configuration required for a classification model.

*/ inline TaskConfig& WithDocumentClassificationConfig(const DocumentClassificationConfig& value) { SetDocumentClassificationConfig(value); return *this;} /** *

Configuration required for a classification model.

*/ inline TaskConfig& WithDocumentClassificationConfig(DocumentClassificationConfig&& value) { SetDocumentClassificationConfig(std::move(value)); return *this;} /** *

Configuration required for an entity recognition model.

*/ inline const EntityRecognitionConfig& GetEntityRecognitionConfig() const{ return m_entityRecognitionConfig; } /** *

Configuration required for an entity recognition model.

*/ inline bool EntityRecognitionConfigHasBeenSet() const { return m_entityRecognitionConfigHasBeenSet; } /** *

Configuration required for an entity recognition model.

*/ inline void SetEntityRecognitionConfig(const EntityRecognitionConfig& value) { m_entityRecognitionConfigHasBeenSet = true; m_entityRecognitionConfig = value; } /** *

Configuration required for an entity recognition model.

*/ inline void SetEntityRecognitionConfig(EntityRecognitionConfig&& value) { m_entityRecognitionConfigHasBeenSet = true; m_entityRecognitionConfig = std::move(value); } /** *

Configuration required for an entity recognition model.

*/ inline TaskConfig& WithEntityRecognitionConfig(const EntityRecognitionConfig& value) { SetEntityRecognitionConfig(value); return *this;} /** *

Configuration required for an entity recognition model.

*/ inline TaskConfig& WithEntityRecognitionConfig(EntityRecognitionConfig&& value) { SetEntityRecognitionConfig(std::move(value)); return *this;} private: LanguageCode m_languageCode; bool m_languageCodeHasBeenSet = false; DocumentClassificationConfig m_documentClassificationConfig; bool m_documentClassificationConfigHasBeenSet = false; EntityRecognitionConfig m_entityRecognitionConfig; bool m_entityRecognitionConfigHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws