AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Comprehend {
25namespace Model {
27 public:
28 AWS_COMPREHEND_API DetectSyntaxResult() = default;
31
33
41 inline const Aws::Vector<SyntaxToken>& GetSyntaxTokens() const { return m_syntaxTokens; }
42 template <typename SyntaxTokensT = Aws::Vector<SyntaxToken>>
43 void SetSyntaxTokens(SyntaxTokensT&& value) {
44 m_syntaxTokensHasBeenSet = true;
45 m_syntaxTokens = std::forward<SyntaxTokensT>(value);
46 }
47 template <typename SyntaxTokensT = Aws::Vector<SyntaxToken>>
48 DetectSyntaxResult& WithSyntaxTokens(SyntaxTokensT&& value) {
49 SetSyntaxTokens(std::forward<SyntaxTokensT>(value));
50 return *this;
51 }
52 template <typename SyntaxTokensT = SyntaxToken>
53 DetectSyntaxResult& AddSyntaxTokens(SyntaxTokensT&& value) {
54 m_syntaxTokensHasBeenSet = true;
55 m_syntaxTokens.emplace_back(std::forward<SyntaxTokensT>(value));
56 return *this;
57 }
59
61
62 inline const Aws::String& GetRequestId() const { return m_requestId; }
63 template <typename RequestIdT = Aws::String>
64 void SetRequestId(RequestIdT&& value) {
65 m_requestIdHasBeenSet = true;
66 m_requestId = std::forward<RequestIdT>(value);
67 }
68 template <typename RequestIdT = Aws::String>
69 DetectSyntaxResult& WithRequestId(RequestIdT&& value) {
70 SetRequestId(std::forward<RequestIdT>(value));
71 return *this;
72 }
74 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
75
76 private:
77 Aws::Vector<SyntaxToken> m_syntaxTokens;
78
79 Aws::String m_requestId;
80 Aws::Http::HttpResponseCode m_HttpResponseCode;
81 bool m_syntaxTokensHasBeenSet = false;
82 bool m_requestIdHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Comprehend
87} // 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::Http::HttpResponseCode GetHttpResponseCode() const
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