AWS SDK for C++  1.9.125
AWS SDK for C++
BatchDetectSyntaxItemResult.h
Go to the documentation of this file.
1 
6 #pragma once
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 
34  {
35  public:
40 
41 
45  inline int GetIndex() const{ return m_index; }
46 
50  inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
51 
55  inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
56 
60  inline BatchDetectSyntaxItemResult& WithIndex(int value) { SetIndex(value); return *this;}
61 
62 
66  inline const Aws::Vector<SyntaxToken>& GetSyntaxTokens() const{ return m_syntaxTokens; }
67 
71  inline bool SyntaxTokensHasBeenSet() const { return m_syntaxTokensHasBeenSet; }
72 
76  inline void SetSyntaxTokens(const Aws::Vector<SyntaxToken>& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens = value; }
77 
81  inline void SetSyntaxTokens(Aws::Vector<SyntaxToken>&& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens = std::move(value); }
82 
86  inline BatchDetectSyntaxItemResult& WithSyntaxTokens(const Aws::Vector<SyntaxToken>& value) { SetSyntaxTokens(value); return *this;}
87 
91  inline BatchDetectSyntaxItemResult& WithSyntaxTokens(Aws::Vector<SyntaxToken>&& value) { SetSyntaxTokens(std::move(value)); return *this;}
92 
96  inline BatchDetectSyntaxItemResult& AddSyntaxTokens(const SyntaxToken& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens.push_back(value); return *this; }
97 
101  inline BatchDetectSyntaxItemResult& AddSyntaxTokens(SyntaxToken&& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens.push_back(std::move(value)); return *this; }
102 
103  private:
104 
105  int m_index;
106  bool m_indexHasBeenSet;
107 
108  Aws::Vector<SyntaxToken> m_syntaxTokens;
109  bool m_syntaxTokensHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace Comprehend
114 } // namespace Aws
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::GetSyntaxTokens
const Aws::Vector< SyntaxToken > & GetSyntaxTokens() const
Definition: BatchDetectSyntaxItemResult.h:66
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::IndexHasBeenSet
bool IndexHasBeenSet() const
Definition: BatchDetectSyntaxItemResult.h:50
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::WithIndex
BatchDetectSyntaxItemResult & WithIndex(int value)
Definition: BatchDetectSyntaxItemResult.h:60
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::SetSyntaxTokens
void SetSyntaxTokens(const Aws::Vector< SyntaxToken > &value)
Definition: BatchDetectSyntaxItemResult.h:76
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::WithSyntaxTokens
BatchDetectSyntaxItemResult & WithSyntaxTokens(const Aws::Vector< SyntaxToken > &value)
Definition: BatchDetectSyntaxItemResult.h:86
Aws::Comprehend::Model::BatchDetectSyntaxItemResult
Definition: BatchDetectSyntaxItemResult.h:34
SyntaxToken.h
AWSVector.h
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::SyntaxTokensHasBeenSet
bool SyntaxTokensHasBeenSet() const
Definition: BatchDetectSyntaxItemResult.h:71
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::SetSyntaxTokens
void SetSyntaxTokens(Aws::Vector< SyntaxToken > &&value)
Definition: BatchDetectSyntaxItemResult.h:81
Aws::Comprehend::Model::SyntaxToken
Definition: SyntaxToken.h:35
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::BatchDetectSyntaxItemResult
BatchDetectSyntaxItemResult(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::operator=
BatchDetectSyntaxItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::SetIndex
void SetIndex(int value)
Definition: BatchDetectSyntaxItemResult.h:55
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::WithSyntaxTokens
BatchDetectSyntaxItemResult & WithSyntaxTokens(Aws::Vector< SyntaxToken > &&value)
Definition: BatchDetectSyntaxItemResult.h:91
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::AddSyntaxTokens
BatchDetectSyntaxItemResult & AddSyntaxTokens(SyntaxToken &&value)
Definition: BatchDetectSyntaxItemResult.h:101
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::BatchDetectSyntaxItemResult
BatchDetectSyntaxItemResult()
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::GetIndex
int GetIndex() const
Definition: BatchDetectSyntaxItemResult.h:45
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::BatchDetectSyntaxItemResult::AddSyntaxTokens
BatchDetectSyntaxItemResult & AddSyntaxTokens(const SyntaxToken &value)
Definition: BatchDetectSyntaxItemResult.h:96