AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchDetectSyntaxItemResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/SyntaxToken.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Comprehend {
21namespace Model {
22
30 public:
31 AWS_COMPREHEND_API BatchDetectSyntaxItemResult() = default;
34 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetIndex() const { return m_index; }
41 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
42 inline void SetIndex(int value) {
43 m_indexHasBeenSet = true;
44 m_index = value;
45 }
47 SetIndex(value);
48 return *this;
49 }
51
53
56 inline const Aws::Vector<SyntaxToken>& GetSyntaxTokens() const { return m_syntaxTokens; }
57 inline bool SyntaxTokensHasBeenSet() const { return m_syntaxTokensHasBeenSet; }
58 template <typename SyntaxTokensT = Aws::Vector<SyntaxToken>>
59 void SetSyntaxTokens(SyntaxTokensT&& value) {
60 m_syntaxTokensHasBeenSet = true;
61 m_syntaxTokens = std::forward<SyntaxTokensT>(value);
62 }
63 template <typename SyntaxTokensT = Aws::Vector<SyntaxToken>>
65 SetSyntaxTokens(std::forward<SyntaxTokensT>(value));
66 return *this;
67 }
68 template <typename SyntaxTokensT = SyntaxToken>
70 m_syntaxTokensHasBeenSet = true;
71 m_syntaxTokens.emplace_back(std::forward<SyntaxTokensT>(value));
72 return *this;
73 }
75 private:
76 int m_index{0};
77
78 Aws::Vector<SyntaxToken> m_syntaxTokens;
79 bool m_indexHasBeenSet = false;
80 bool m_syntaxTokensHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Comprehend
85} // namespace Aws
AWS_COMPREHEND_API BatchDetectSyntaxItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SyntaxToken > & GetSyntaxTokens() const
BatchDetectSyntaxItemResult & WithSyntaxTokens(SyntaxTokensT &&value)
AWS_COMPREHEND_API BatchDetectSyntaxItemResult()=default
BatchDetectSyntaxItemResult & AddSyntaxTokens(SyntaxTokensT &&value)
AWS_COMPREHEND_API BatchDetectSyntaxItemResult(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue