/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The result of calling the operation. The operation returns one object for
* each document that is successfully processed by the operation.See
* Also:
AWS
* API Reference
The zero-based index of the document in the input list.
*/ inline int GetIndex() const{ return m_index; } /** *The zero-based index of the document in the input list.
*/ inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; } /** *The zero-based index of the document in the input list.
*/ inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; } /** *The zero-based index of the document in the input list.
*/ inline BatchDetectSentimentItemResult& WithIndex(int value) { SetIndex(value); return *this;} /** *The sentiment detected in the document.
*/ inline const SentimentType& GetSentiment() const{ return m_sentiment; } /** *The sentiment detected in the document.
*/ inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; } /** *The sentiment detected in the document.
*/ inline void SetSentiment(const SentimentType& value) { m_sentimentHasBeenSet = true; m_sentiment = value; } /** *The sentiment detected in the document.
*/ inline void SetSentiment(SentimentType&& value) { m_sentimentHasBeenSet = true; m_sentiment = std::move(value); } /** *The sentiment detected in the document.
*/ inline BatchDetectSentimentItemResult& WithSentiment(const SentimentType& value) { SetSentiment(value); return *this;} /** *The sentiment detected in the document.
*/ inline BatchDetectSentimentItemResult& WithSentiment(SentimentType&& value) { SetSentiment(std::move(value)); return *this;} /** *The level of confidence that Amazon Comprehend has in the accuracy of its * sentiment detection.
*/ inline const SentimentScore& GetSentimentScore() const{ return m_sentimentScore; } /** *The level of confidence that Amazon Comprehend has in the accuracy of its * sentiment detection.
*/ inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; } /** *The level of confidence that Amazon Comprehend has in the accuracy of its * sentiment detection.
*/ inline void SetSentimentScore(const SentimentScore& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = value; } /** *The level of confidence that Amazon Comprehend has in the accuracy of its * sentiment detection.
*/ inline void SetSentimentScore(SentimentScore&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::move(value); } /** *The level of confidence that Amazon Comprehend has in the accuracy of its * sentiment detection.
*/ inline BatchDetectSentimentItemResult& WithSentimentScore(const SentimentScore& value) { SetSentimentScore(value); return *this;} /** *The level of confidence that Amazon Comprehend has in the accuracy of its * sentiment detection.
*/ inline BatchDetectSentimentItemResult& WithSentimentScore(SentimentScore&& value) { SetSentimentScore(std::move(value)); return *this;} private: int m_index; bool m_indexHasBeenSet = false; SentimentType m_sentiment; bool m_sentimentHasBeenSet = false; SentimentScore m_sentimentScore; bool m_sentimentScoreHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws