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/PartOfSpeechTagType.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Comprehend
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Identifies the part of speech represented by the token and gives the
28    * confidence that Amazon Comprehend has that the part of speech was correctly
29    * identified. For more information about the parts of speech that Amazon
30    * Comprehend can identify, see <a>how-syntax</a>.</p><p><h3>See Also:</h3>   <a
31    * href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/PartOfSpeechTag">AWS
32    * API Reference</a></p>
33    */
34   class AWS_COMPREHEND_API PartOfSpeechTag
35   {
36   public:
37     PartOfSpeechTag();
38     PartOfSpeechTag(Aws::Utils::Json::JsonView jsonValue);
39     PartOfSpeechTag& operator=(Aws::Utils::Json::JsonView jsonValue);
40     Aws::Utils::Json::JsonValue Jsonize() const;
41 
42 
43     /**
44      * <p>Identifies the part of speech that the token represents.</p>
45      */
GetTag()46     inline const PartOfSpeechTagType& GetTag() const{ return m_tag; }
47 
48     /**
49      * <p>Identifies the part of speech that the token represents.</p>
50      */
TagHasBeenSet()51     inline bool TagHasBeenSet() const { return m_tagHasBeenSet; }
52 
53     /**
54      * <p>Identifies the part of speech that the token represents.</p>
55      */
SetTag(const PartOfSpeechTagType & value)56     inline void SetTag(const PartOfSpeechTagType& value) { m_tagHasBeenSet = true; m_tag = value; }
57 
58     /**
59      * <p>Identifies the part of speech that the token represents.</p>
60      */
SetTag(PartOfSpeechTagType && value)61     inline void SetTag(PartOfSpeechTagType&& value) { m_tagHasBeenSet = true; m_tag = std::move(value); }
62 
63     /**
64      * <p>Identifies the part of speech that the token represents.</p>
65      */
WithTag(const PartOfSpeechTagType & value)66     inline PartOfSpeechTag& WithTag(const PartOfSpeechTagType& value) { SetTag(value); return *this;}
67 
68     /**
69      * <p>Identifies the part of speech that the token represents.</p>
70      */
WithTag(PartOfSpeechTagType && value)71     inline PartOfSpeechTag& WithTag(PartOfSpeechTagType&& value) { SetTag(std::move(value)); return *this;}
72 
73 
74     /**
75      * <p>The confidence that Amazon Comprehend has that the part of speech was
76      * correctly identified.</p>
77      */
GetScore()78     inline double GetScore() const{ return m_score; }
79 
80     /**
81      * <p>The confidence that Amazon Comprehend has that the part of speech was
82      * correctly identified.</p>
83      */
ScoreHasBeenSet()84     inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
85 
86     /**
87      * <p>The confidence that Amazon Comprehend has that the part of speech was
88      * correctly identified.</p>
89      */
SetScore(double value)90     inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
91 
92     /**
93      * <p>The confidence that Amazon Comprehend has that the part of speech was
94      * correctly identified.</p>
95      */
WithScore(double value)96     inline PartOfSpeechTag& WithScore(double value) { SetScore(value); return *this;}
97 
98   private:
99 
100     PartOfSpeechTagType m_tag;
101     bool m_tagHasBeenSet;
102 
103     double m_score;
104     bool m_scoreHasBeenSet;
105   };
106 
107 } // namespace Model
108 } // namespace Comprehend
109 } // namespace Aws
110