AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchDetectSyntaxItemResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/comprehend/model/SyntaxToken.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
34 {
35 public:
36 AWS_COMPREHEND_API BatchDetectSyntaxItemResult();
39 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetIndex() const{ return m_index; }
47 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
48 inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
49 inline BatchDetectSyntaxItemResult& WithIndex(int value) { SetIndex(value); return *this;}
51
53
56 inline const Aws::Vector<SyntaxToken>& GetSyntaxTokens() const{ return m_syntaxTokens; }
57 inline bool SyntaxTokensHasBeenSet() const { return m_syntaxTokensHasBeenSet; }
58 inline void SetSyntaxTokens(const Aws::Vector<SyntaxToken>& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens = value; }
59 inline void SetSyntaxTokens(Aws::Vector<SyntaxToken>&& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens = std::move(value); }
61 inline BatchDetectSyntaxItemResult& WithSyntaxTokens(Aws::Vector<SyntaxToken>&& value) { SetSyntaxTokens(std::move(value)); return *this;}
62 inline BatchDetectSyntaxItemResult& AddSyntaxTokens(const SyntaxToken& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens.push_back(value); return *this; }
63 inline BatchDetectSyntaxItemResult& AddSyntaxTokens(SyntaxToken&& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens.push_back(std::move(value)); return *this; }
65 private:
66
67 int m_index;
68 bool m_indexHasBeenSet = false;
69
70 Aws::Vector<SyntaxToken> m_syntaxTokens;
71 bool m_syntaxTokensHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Comprehend
76} // namespace Aws
AWS_COMPREHEND_API BatchDetectSyntaxItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchDetectSyntaxItemResult & AddSyntaxTokens(const SyntaxToken &value)
const Aws::Vector< SyntaxToken > & GetSyntaxTokens() const
BatchDetectSyntaxItemResult & WithSyntaxTokens(const Aws::Vector< SyntaxToken > &value)
AWS_COMPREHEND_API BatchDetectSyntaxItemResult(Aws::Utils::Json::JsonView jsonValue)
void SetSyntaxTokens(const Aws::Vector< SyntaxToken > &value)
void SetSyntaxTokens(Aws::Vector< SyntaxToken > &&value)
BatchDetectSyntaxItemResult & AddSyntaxTokens(SyntaxToken &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
BatchDetectSyntaxItemResult & WithSyntaxTokens(Aws::Vector< SyntaxToken > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue