AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename SyntaxTokensT = Aws::Vector<SyntaxToken>>
59 void SetSyntaxTokens(SyntaxTokensT&& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens = std::forward<SyntaxTokensT>(value); }
60 template<typename SyntaxTokensT = Aws::Vector<SyntaxToken>>
61 BatchDetectSyntaxItemResult& WithSyntaxTokens(SyntaxTokensT&& value) { SetSyntaxTokens(std::forward<SyntaxTokensT>(value)); return *this;}
62 template<typename SyntaxTokensT = SyntaxToken>
63 BatchDetectSyntaxItemResult& AddSyntaxTokens(SyntaxTokensT&& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens.emplace_back(std::forward<SyntaxTokensT>(value)); return *this; }
65 private:
66
67 int m_index{0};
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)
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