/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #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.

See Also:

* AWS * API Reference

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

The entity types in the input data for an entity recognizer. A maximum of 25 * entity types can be used at one time to train an entity recognizer.

*/ inline const Aws::Vector& GetEntityTypes() const{ return m_entityTypes; } /** *

The entity types in the input data for an entity recognizer. A maximum of 25 * entity types can be used at one time to train an entity recognizer.

*/ inline bool EntityTypesHasBeenSet() const { return m_entityTypesHasBeenSet; } /** *

The entity types in the input data for an entity recognizer. A maximum of 25 * entity types can be used at one time to train an entity recognizer.

*/ inline void SetEntityTypes(const Aws::Vector& value) { m_entityTypesHasBeenSet = true; m_entityTypes = value; } /** *

The entity types in the input data for an entity recognizer. A maximum of 25 * entity types can be used at one time to train an entity recognizer.

*/ inline void SetEntityTypes(Aws::Vector&& value) { m_entityTypesHasBeenSet = true; m_entityTypes = std::move(value); } /** *

The entity types in the input data for an entity recognizer. A maximum of 25 * entity types can be used at one time to train an entity recognizer.

*/ inline EntityRecognizerInputDataConfig& WithEntityTypes(const Aws::Vector& value) { SetEntityTypes(value); return *this;} /** *

The entity types in the input data for an entity recognizer. A maximum of 25 * entity types can be used at one time to train an entity recognizer.

*/ inline EntityRecognizerInputDataConfig& WithEntityTypes(Aws::Vector&& value) { SetEntityTypes(std::move(value)); return *this;} /** *

The entity types in the input data for an entity recognizer. A maximum of 25 * entity types can be used at one time to train an entity recognizer.

*/ inline EntityRecognizerInputDataConfig& AddEntityTypes(const EntityTypesListItem& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(value); return *this; } /** *

The entity types in the input data for an entity recognizer. A maximum of 25 * entity types can be used at one time to train an entity recognizer.

*/ inline EntityRecognizerInputDataConfig& AddEntityTypes(EntityTypesListItem&& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(std::move(value)); return *this; } /** *

S3 location of the documents folder for an entity recognizer

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

S3 location of the documents folder for an entity recognizer

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

S3 location of the documents folder for an entity recognizer

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

S3 location of the documents folder for an entity recognizer

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

S3 location of the documents folder for an entity recognizer

*/ inline EntityRecognizerInputDataConfig& WithDocuments(const EntityRecognizerDocuments& value) { SetDocuments(value); return *this;} /** *

S3 location of the documents folder for an entity recognizer

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

S3 location of the annotations file for an entity recognizer.

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

S3 location of the annotations file for an entity recognizer.

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

S3 location of the annotations file for an entity recognizer.

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

S3 location of the annotations file for an entity recognizer.

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

S3 location of the annotations file for an entity recognizer.

*/ inline EntityRecognizerInputDataConfig& WithAnnotations(const EntityRecognizerAnnotations& value) { SetAnnotations(value); return *this;} /** *

S3 location of the annotations file for an entity recognizer.

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

S3 location of the entity list for an entity recognizer.

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

S3 location of the entity list for an entity recognizer.

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

S3 location of the entity list for an entity recognizer.

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

S3 location of the entity list for an entity recognizer.

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

S3 location of the entity list for an entity recognizer.

*/ inline EntityRecognizerInputDataConfig& WithEntityList(const EntityRecognizerEntityList& value) { SetEntityList(value); return *this;} /** *

S3 location of the entity list for an entity recognizer.

*/ inline EntityRecognizerInputDataConfig& WithEntityList(EntityRecognizerEntityList&& value) { SetEntityList(std::move(value)); return *this;} private: Aws::Vector m_entityTypes; bool m_entityTypesHasBeenSet; EntityRecognizerDocuments m_documents; bool m_documentsHasBeenSet; EntityRecognizerAnnotations m_annotations; bool m_annotationsHasBeenSet; EntityRecognizerEntityList m_entityList; bool m_entityListHasBeenSet; }; } // namespace Model } // namespace Comprehend } // namespace Aws