AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DetectSyntaxResult.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Comprehend {
24namespace Model {
26 public:
27 AWS_COMPREHEND_API DetectSyntaxResult() = default;
30
32
40 inline const Aws::Vector<SyntaxToken>& GetSyntaxTokens() const { return m_syntaxTokens; }
41 template <typename SyntaxTokensT = Aws::Vector<SyntaxToken>>
42 void SetSyntaxTokens(SyntaxTokensT&& value) {
43 m_syntaxTokensHasBeenSet = true;
44 m_syntaxTokens = std::forward<SyntaxTokensT>(value);
45 }
46 template <typename SyntaxTokensT = Aws::Vector<SyntaxToken>>
47 DetectSyntaxResult& WithSyntaxTokens(SyntaxTokensT&& value) {
48 SetSyntaxTokens(std::forward<SyntaxTokensT>(value));
49 return *this;
50 }
51 template <typename SyntaxTokensT = SyntaxToken>
52 DetectSyntaxResult& AddSyntaxTokens(SyntaxTokensT&& value) {
53 m_syntaxTokensHasBeenSet = true;
54 m_syntaxTokens.emplace_back(std::forward<SyntaxTokensT>(value));
55 return *this;
56 }
58
60
61 inline const Aws::String& GetRequestId() const { return m_requestId; }
62 template <typename RequestIdT = Aws::String>
63 void SetRequestId(RequestIdT&& value) {
64 m_requestIdHasBeenSet = true;
65 m_requestId = std::forward<RequestIdT>(value);
66 }
67 template <typename RequestIdT = Aws::String>
68 DetectSyntaxResult& WithRequestId(RequestIdT&& value) {
69 SetRequestId(std::forward<RequestIdT>(value));
70 return *this;
71 }
73 private:
74 Aws::Vector<SyntaxToken> m_syntaxTokens;
75
76 Aws::String m_requestId;
77 bool m_syntaxTokensHasBeenSet = false;
78 bool m_requestIdHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Comprehend
83} // namespace Aws
AWS_COMPREHEND_API DetectSyntaxResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< SyntaxToken > & GetSyntaxTokens() const
AWS_COMPREHEND_API DetectSyntaxResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectSyntaxResult & WithRequestId(RequestIdT &&value)
DetectSyntaxResult & WithSyntaxTokens(SyntaxTokensT &&value)
AWS_COMPREHEND_API DetectSyntaxResult()=default
DetectSyntaxResult & AddSyntaxTokens(SyntaxTokensT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue