/** * 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 { /** *

Specifies the format and location of the input data. You must provide either * the Annotations parameter or the EntityList * parameter.

See Also:

AWS * API Reference

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

The S3 location of the annotation documents for your custom entity * recognizer.

*/ inline const DatasetEntityRecognizerAnnotations& GetAnnotations() const{ return m_annotations; } /** *

The S3 location of the annotation documents for your custom entity * recognizer.

*/ inline bool AnnotationsHasBeenSet() const { return m_annotationsHasBeenSet; } /** *

The S3 location of the annotation documents for your custom entity * recognizer.

*/ inline void SetAnnotations(const DatasetEntityRecognizerAnnotations& value) { m_annotationsHasBeenSet = true; m_annotations = value; } /** *

The S3 location of the annotation documents for your custom entity * recognizer.

*/ inline void SetAnnotations(DatasetEntityRecognizerAnnotations&& value) { m_annotationsHasBeenSet = true; m_annotations = std::move(value); } /** *

The S3 location of the annotation documents for your custom entity * recognizer.

*/ inline DatasetEntityRecognizerInputDataConfig& WithAnnotations(const DatasetEntityRecognizerAnnotations& value) { SetAnnotations(value); return *this;} /** *

The S3 location of the annotation documents for your custom entity * recognizer.

*/ inline DatasetEntityRecognizerInputDataConfig& WithAnnotations(DatasetEntityRecognizerAnnotations&& value) { SetAnnotations(std::move(value)); return *this;} /** *

The format and location of the training documents for your custom entity * recognizer.

*/ inline const DatasetEntityRecognizerDocuments& GetDocuments() const{ return m_documents; } /** *

The format and location of the training documents for your custom entity * recognizer.

*/ inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; } /** *

The format and location of the training documents for your custom entity * recognizer.

*/ inline void SetDocuments(const DatasetEntityRecognizerDocuments& value) { m_documentsHasBeenSet = true; m_documents = value; } /** *

The format and location of the training documents for your custom entity * recognizer.

*/ inline void SetDocuments(DatasetEntityRecognizerDocuments&& value) { m_documentsHasBeenSet = true; m_documents = std::move(value); } /** *

The format and location of the training documents for your custom entity * recognizer.

*/ inline DatasetEntityRecognizerInputDataConfig& WithDocuments(const DatasetEntityRecognizerDocuments& value) { SetDocuments(value); return *this;} /** *

The format and location of the training documents for your custom entity * recognizer.

*/ inline DatasetEntityRecognizerInputDataConfig& WithDocuments(DatasetEntityRecognizerDocuments&& value) { SetDocuments(std::move(value)); return *this;} /** *

The S3 location of the entity list for your custom entity recognizer.

*/ inline const DatasetEntityRecognizerEntityList& GetEntityList() const{ return m_entityList; } /** *

The S3 location of the entity list for your custom entity recognizer.

*/ inline bool EntityListHasBeenSet() const { return m_entityListHasBeenSet; } /** *

The S3 location of the entity list for your custom entity recognizer.

*/ inline void SetEntityList(const DatasetEntityRecognizerEntityList& value) { m_entityListHasBeenSet = true; m_entityList = value; } /** *

The S3 location of the entity list for your custom entity recognizer.

*/ inline void SetEntityList(DatasetEntityRecognizerEntityList&& value) { m_entityListHasBeenSet = true; m_entityList = std::move(value); } /** *

The S3 location of the entity list for your custom entity recognizer.

*/ inline DatasetEntityRecognizerInputDataConfig& WithEntityList(const DatasetEntityRecognizerEntityList& value) { SetEntityList(value); return *this;} /** *

The S3 location of the entity list for your custom entity recognizer.

*/ inline DatasetEntityRecognizerInputDataConfig& WithEntityList(DatasetEntityRecognizerEntityList&& value) { SetEntityList(std::move(value)); return *this;} private: DatasetEntityRecognizerAnnotations m_annotations; bool m_annotationsHasBeenSet = false; DatasetEntityRecognizerDocuments m_documents; bool m_documentsHasBeenSet = false; DatasetEntityRecognizerEntityList m_entityList; bool m_entityListHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws