/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { /** *

Analysis results for one of the documents in the batch.

See * Also:

AWS * API Reference

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

The zero-based index of this result in the input list.

*/ inline int GetIndex() const{ return m_index; } /** *

The zero-based index of this result in the input list.

*/ inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; } /** *

The zero-based index of this result in the input list.

*/ inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; } /** *

The zero-based index of this result in the input list.

*/ inline BatchDetectTargetedSentimentItemResult& WithIndex(int value) { SetIndex(value); return *this;} /** *

An array of targeted sentiment entities.

*/ inline const Aws::Vector& GetEntities() const{ return m_entities; } /** *

An array of targeted sentiment entities.

*/ inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; } /** *

An array of targeted sentiment entities.

*/ inline void SetEntities(const Aws::Vector& value) { m_entitiesHasBeenSet = true; m_entities = value; } /** *

An array of targeted sentiment entities.

*/ inline void SetEntities(Aws::Vector&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); } /** *

An array of targeted sentiment entities.

*/ inline BatchDetectTargetedSentimentItemResult& WithEntities(const Aws::Vector& value) { SetEntities(value); return *this;} /** *

An array of targeted sentiment entities.

*/ inline BatchDetectTargetedSentimentItemResult& WithEntities(Aws::Vector&& value) { SetEntities(std::move(value)); return *this;} /** *

An array of targeted sentiment entities.

*/ inline BatchDetectTargetedSentimentItemResult& AddEntities(const TargetedSentimentEntity& value) { m_entitiesHasBeenSet = true; m_entities.push_back(value); return *this; } /** *

An array of targeted sentiment entities.

*/ inline BatchDetectTargetedSentimentItemResult& AddEntities(TargetedSentimentEntity&& value) { m_entitiesHasBeenSet = true; m_entities.push_back(std::move(value)); return *this; } private: int m_index; bool m_indexHasBeenSet = false; Aws::Vector m_entities; bool m_entitiesHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws