1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/comprehend/Comprehend_EXPORTS.h>
8 #include <aws/comprehend/model/SentimentType.h>
9 #include <aws/comprehend/model/SentimentScore.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18   class JsonValue;
19   class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Comprehend
23 {
24 namespace Model
25 {
26 
27   /**
28    * <p>The result of calling the operation. The operation returns one object for
29    * each document that is successfully processed by the operation.</p><p><h3>See
30    * Also:</h3>   <a
31    * href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSentimentItemResult">AWS
32    * API Reference</a></p>
33    */
34   class AWS_COMPREHEND_API BatchDetectSentimentItemResult
35   {
36   public:
37     BatchDetectSentimentItemResult();
38     BatchDetectSentimentItemResult(Aws::Utils::Json::JsonView jsonValue);
39     BatchDetectSentimentItemResult& operator=(Aws::Utils::Json::JsonView jsonValue);
40     Aws::Utils::Json::JsonValue Jsonize() const;
41 
42 
43     /**
44      * <p>The zero-based index of the document in the input list.</p>
45      */
GetIndex()46     inline int GetIndex() const{ return m_index; }
47 
48     /**
49      * <p>The zero-based index of the document in the input list.</p>
50      */
IndexHasBeenSet()51     inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
52 
53     /**
54      * <p>The zero-based index of the document in the input list.</p>
55      */
SetIndex(int value)56     inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
57 
58     /**
59      * <p>The zero-based index of the document in the input list.</p>
60      */
WithIndex(int value)61     inline BatchDetectSentimentItemResult& WithIndex(int value) { SetIndex(value); return *this;}
62 
63 
64     /**
65      * <p>The sentiment detected in the document.</p>
66      */
GetSentiment()67     inline const SentimentType& GetSentiment() const{ return m_sentiment; }
68 
69     /**
70      * <p>The sentiment detected in the document.</p>
71      */
SentimentHasBeenSet()72     inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
73 
74     /**
75      * <p>The sentiment detected in the document.</p>
76      */
SetSentiment(const SentimentType & value)77     inline void SetSentiment(const SentimentType& value) { m_sentimentHasBeenSet = true; m_sentiment = value; }
78 
79     /**
80      * <p>The sentiment detected in the document.</p>
81      */
SetSentiment(SentimentType && value)82     inline void SetSentiment(SentimentType&& value) { m_sentimentHasBeenSet = true; m_sentiment = std::move(value); }
83 
84     /**
85      * <p>The sentiment detected in the document.</p>
86      */
WithSentiment(const SentimentType & value)87     inline BatchDetectSentimentItemResult& WithSentiment(const SentimentType& value) { SetSentiment(value); return *this;}
88 
89     /**
90      * <p>The sentiment detected in the document.</p>
91      */
WithSentiment(SentimentType && value)92     inline BatchDetectSentimentItemResult& WithSentiment(SentimentType&& value) { SetSentiment(std::move(value)); return *this;}
93 
94 
95     /**
96      * <p>The level of confidence that Amazon Comprehend has in the accuracy of its
97      * sentiment detection.</p>
98      */
GetSentimentScore()99     inline const SentimentScore& GetSentimentScore() const{ return m_sentimentScore; }
100 
101     /**
102      * <p>The level of confidence that Amazon Comprehend has in the accuracy of its
103      * sentiment detection.</p>
104      */
SentimentScoreHasBeenSet()105     inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; }
106 
107     /**
108      * <p>The level of confidence that Amazon Comprehend has in the accuracy of its
109      * sentiment detection.</p>
110      */
SetSentimentScore(const SentimentScore & value)111     inline void SetSentimentScore(const SentimentScore& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = value; }
112 
113     /**
114      * <p>The level of confidence that Amazon Comprehend has in the accuracy of its
115      * sentiment detection.</p>
116      */
SetSentimentScore(SentimentScore && value)117     inline void SetSentimentScore(SentimentScore&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::move(value); }
118 
119     /**
120      * <p>The level of confidence that Amazon Comprehend has in the accuracy of its
121      * sentiment detection.</p>
122      */
WithSentimentScore(const SentimentScore & value)123     inline BatchDetectSentimentItemResult& WithSentimentScore(const SentimentScore& value) { SetSentimentScore(value); return *this;}
124 
125     /**
126      * <p>The level of confidence that Amazon Comprehend has in the accuracy of its
127      * sentiment detection.</p>
128      */
WithSentimentScore(SentimentScore && value)129     inline BatchDetectSentimentItemResult& WithSentimentScore(SentimentScore&& value) { SetSentimentScore(std::move(value)); return *this;}
130 
131   private:
132 
133     int m_index;
134     bool m_indexHasBeenSet;
135 
136     SentimentType m_sentiment;
137     bool m_sentimentHasBeenSet;
138 
139     SentimentScore m_sentimentScore;
140     bool m_sentimentScoreHasBeenSet;
141   };
142 
143 } // namespace Model
144 } // namespace Comprehend
145 } // namespace Aws
146