/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Analysis results for one of the documents in the batch.See
* Also:
AWS
* API Reference
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::VectorAn array of targeted sentiment entities.
*/ inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; } /** *An array of targeted sentiment entities.
*/ inline void SetEntities(const Aws::VectorAn array of targeted sentiment entities.
*/ inline void SetEntities(Aws::VectorAn array of targeted sentiment entities.
*/ inline BatchDetectTargetedSentimentItemResult& WithEntities(const Aws::VectorAn array of targeted sentiment entities.
*/ inline BatchDetectTargetedSentimentItemResult& WithEntities(Aws::VectorAn 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