AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SyntaxToken.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/comprehend/model/PartOfSpeechTag.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Comprehend
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_COMPREHEND_API SyntaxToken();
38 AWS_COMPREHEND_API SyntaxToken(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPREHEND_API SyntaxToken& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetTokenId() const{ return m_tokenId; }
48 inline bool TokenIdHasBeenSet() const { return m_tokenIdHasBeenSet; }
49 inline void SetTokenId(int value) { m_tokenIdHasBeenSet = true; m_tokenId = value; }
50 inline SyntaxToken& WithTokenId(int value) { SetTokenId(value); return *this;}
52
54
57 inline const Aws::String& GetText() const{ return m_text; }
58 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
59 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
60 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
61 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
62 inline SyntaxToken& WithText(const Aws::String& value) { SetText(value); return *this;}
63 inline SyntaxToken& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
64 inline SyntaxToken& WithText(const char* value) { SetText(value); return *this;}
66
68
72 inline int GetBeginOffset() const{ return m_beginOffset; }
73 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
74 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
75 inline SyntaxToken& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
77
79
83 inline int GetEndOffset() const{ return m_endOffset; }
84 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
85 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
86 inline SyntaxToken& WithEndOffset(int value) { SetEndOffset(value); return *this;}
88
90
97 inline const PartOfSpeechTag& GetPartOfSpeech() const{ return m_partOfSpeech; }
98 inline bool PartOfSpeechHasBeenSet() const { return m_partOfSpeechHasBeenSet; }
99 inline void SetPartOfSpeech(const PartOfSpeechTag& value) { m_partOfSpeechHasBeenSet = true; m_partOfSpeech = value; }
100 inline void SetPartOfSpeech(PartOfSpeechTag&& value) { m_partOfSpeechHasBeenSet = true; m_partOfSpeech = std::move(value); }
101 inline SyntaxToken& WithPartOfSpeech(const PartOfSpeechTag& value) { SetPartOfSpeech(value); return *this;}
102 inline SyntaxToken& WithPartOfSpeech(PartOfSpeechTag&& value) { SetPartOfSpeech(std::move(value)); return *this;}
104 private:
105
106 int m_tokenId;
107 bool m_tokenIdHasBeenSet = false;
108
109 Aws::String m_text;
110 bool m_textHasBeenSet = false;
111
112 int m_beginOffset;
113 bool m_beginOffsetHasBeenSet = false;
114
115 int m_endOffset;
116 bool m_endOffsetHasBeenSet = false;
117
118 PartOfSpeechTag m_partOfSpeech;
119 bool m_partOfSpeechHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Comprehend
124} // namespace Aws
void SetPartOfSpeech(PartOfSpeechTag &&value)
void SetText(const Aws::String &value)
Definition SyntaxToken.h:59
AWS_COMPREHEND_API SyntaxToken & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPartOfSpeech(const PartOfSpeechTag &value)
Definition SyntaxToken.h:99
SyntaxToken & WithText(const char *value)
Definition SyntaxToken.h:64
void SetText(const char *value)
Definition SyntaxToken.h:61
AWS_COMPREHEND_API SyntaxToken()
SyntaxToken & WithText(Aws::String &&value)
Definition SyntaxToken.h:63
SyntaxToken & WithBeginOffset(int value)
Definition SyntaxToken.h:75
SyntaxToken & WithPartOfSpeech(PartOfSpeechTag &&value)
void SetText(Aws::String &&value)
Definition SyntaxToken.h:60
const PartOfSpeechTag & GetPartOfSpeech() const
Definition SyntaxToken.h:97
SyntaxToken & WithPartOfSpeech(const PartOfSpeechTag &value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
SyntaxToken & WithText(const Aws::String &value)
Definition SyntaxToken.h:62
const Aws::String & GetText() const
Definition SyntaxToken.h:57
AWS_COMPREHEND_API SyntaxToken(Aws::Utils::Json::JsonView jsonValue)
SyntaxToken & WithEndOffset(int value)
Definition SyntaxToken.h:86
SyntaxToken & WithTokenId(int value)
Definition SyntaxToken.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue