AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectSyntaxResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/comprehend/model/SyntaxToken.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Comprehend
26{
27namespace Model
28{
30 {
31 public:
32 AWS_COMPREHEND_API DetectSyntaxResult();
35
36
38
46 inline const Aws::Vector<SyntaxToken>& GetSyntaxTokens() const{ return m_syntaxTokens; }
47 inline void SetSyntaxTokens(const Aws::Vector<SyntaxToken>& value) { m_syntaxTokens = value; }
48 inline void SetSyntaxTokens(Aws::Vector<SyntaxToken>&& value) { m_syntaxTokens = std::move(value); }
49 inline DetectSyntaxResult& WithSyntaxTokens(const Aws::Vector<SyntaxToken>& value) { SetSyntaxTokens(value); return *this;}
50 inline DetectSyntaxResult& WithSyntaxTokens(Aws::Vector<SyntaxToken>&& value) { SetSyntaxTokens(std::move(value)); return *this;}
51 inline DetectSyntaxResult& AddSyntaxTokens(const SyntaxToken& value) { m_syntaxTokens.push_back(value); return *this; }
52 inline DetectSyntaxResult& AddSyntaxTokens(SyntaxToken&& value) { m_syntaxTokens.push_back(std::move(value)); return *this; }
54
56
57 inline const Aws::String& GetRequestId() const{ return m_requestId; }
58 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
59 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
60 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
61 inline DetectSyntaxResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
62 inline DetectSyntaxResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
63 inline DetectSyntaxResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
65 private:
66
67 Aws::Vector<SyntaxToken> m_syntaxTokens;
68
69 Aws::String m_requestId;
70 };
71
72} // namespace Model
73} // namespace Comprehend
74} // namespace Aws
DetectSyntaxResult & WithRequestId(Aws::String &&value)
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)
void SetSyntaxTokens(const Aws::Vector< SyntaxToken > &value)
void SetSyntaxTokens(Aws::Vector< SyntaxToken > &&value)
DetectSyntaxResult & WithRequestId(const char *value)
DetectSyntaxResult & WithRequestId(const Aws::String &value)
DetectSyntaxResult & WithSyntaxTokens(const Aws::Vector< SyntaxToken > &value)
DetectSyntaxResult & WithSyntaxTokens(Aws::Vector< SyntaxToken > &&value)
DetectSyntaxResult & AddSyntaxTokens(const SyntaxToken &value)
DetectSyntaxResult & AddSyntaxTokens(SyntaxToken &&value)
void SetRequestId(const Aws::String &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