AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectKeyPhrasesResult.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/KeyPhrase.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 DetectKeyPhrasesResult();
35
36
38
44 inline const Aws::Vector<KeyPhrase>& GetKeyPhrases() const{ return m_keyPhrases; }
45 inline void SetKeyPhrases(const Aws::Vector<KeyPhrase>& value) { m_keyPhrases = value; }
46 inline void SetKeyPhrases(Aws::Vector<KeyPhrase>&& value) { m_keyPhrases = std::move(value); }
47 inline DetectKeyPhrasesResult& WithKeyPhrases(const Aws::Vector<KeyPhrase>& value) { SetKeyPhrases(value); return *this;}
48 inline DetectKeyPhrasesResult& WithKeyPhrases(Aws::Vector<KeyPhrase>&& value) { SetKeyPhrases(std::move(value)); return *this;}
49 inline DetectKeyPhrasesResult& AddKeyPhrases(const KeyPhrase& value) { m_keyPhrases.push_back(value); return *this; }
50 inline DetectKeyPhrasesResult& AddKeyPhrases(KeyPhrase&& value) { m_keyPhrases.push_back(std::move(value)); return *this; }
52
54
55 inline const Aws::String& GetRequestId() const{ return m_requestId; }
56 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
57 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
58 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
59 inline DetectKeyPhrasesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
60 inline DetectKeyPhrasesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
61 inline DetectKeyPhrasesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
63 private:
64
65 Aws::Vector<KeyPhrase> m_keyPhrases;
66
67 Aws::String m_requestId;
68 };
69
70} // namespace Model
71} // namespace Comprehend
72} // namespace Aws
DetectKeyPhrasesResult & WithKeyPhrases(Aws::Vector< KeyPhrase > &&value)
DetectKeyPhrasesResult & WithRequestId(const char *value)
void SetKeyPhrases(const Aws::Vector< KeyPhrase > &value)
void SetKeyPhrases(Aws::Vector< KeyPhrase > &&value)
DetectKeyPhrasesResult & WithRequestId(const Aws::String &value)
DetectKeyPhrasesResult & AddKeyPhrases(KeyPhrase &&value)
DetectKeyPhrasesResult & AddKeyPhrases(const KeyPhrase &value)
AWS_COMPREHEND_API DetectKeyPhrasesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectKeyPhrasesResult & WithRequestId(Aws::String &&value)
AWS_COMPREHEND_API DetectKeyPhrasesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< KeyPhrase > & GetKeyPhrases() const
DetectKeyPhrasesResult & WithKeyPhrases(const Aws::Vector< KeyPhrase > &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