AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DetectKeyPhrasesResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/KeyPhrase.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 DetectKeyPhrasesResult() = default;
30
32
38 inline const Aws::Vector<KeyPhrase>& GetKeyPhrases() const { return m_keyPhrases; }
39 template <typename KeyPhrasesT = Aws::Vector<KeyPhrase>>
40 void SetKeyPhrases(KeyPhrasesT&& value) {
41 m_keyPhrasesHasBeenSet = true;
42 m_keyPhrases = std::forward<KeyPhrasesT>(value);
43 }
44 template <typename KeyPhrasesT = Aws::Vector<KeyPhrase>>
45 DetectKeyPhrasesResult& WithKeyPhrases(KeyPhrasesT&& value) {
46 SetKeyPhrases(std::forward<KeyPhrasesT>(value));
47 return *this;
48 }
49 template <typename KeyPhrasesT = KeyPhrase>
50 DetectKeyPhrasesResult& AddKeyPhrases(KeyPhrasesT&& value) {
51 m_keyPhrasesHasBeenSet = true;
52 m_keyPhrases.emplace_back(std::forward<KeyPhrasesT>(value));
53 return *this;
54 }
56
58
59 inline const Aws::String& GetRequestId() const { return m_requestId; }
60 template <typename RequestIdT = Aws::String>
61 void SetRequestId(RequestIdT&& value) {
62 m_requestIdHasBeenSet = true;
63 m_requestId = std::forward<RequestIdT>(value);
64 }
65 template <typename RequestIdT = Aws::String>
67 SetRequestId(std::forward<RequestIdT>(value));
68 return *this;
69 }
71 private:
72 Aws::Vector<KeyPhrase> m_keyPhrases;
73
74 Aws::String m_requestId;
75 bool m_keyPhrasesHasBeenSet = false;
76 bool m_requestIdHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Comprehend
81} // namespace Aws
AWS_COMPREHEND_API DetectKeyPhrasesResult()=default
DetectKeyPhrasesResult & WithKeyPhrases(KeyPhrasesT &&value)
DetectKeyPhrasesResult & WithRequestId(RequestIdT &&value)
AWS_COMPREHEND_API DetectKeyPhrasesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COMPREHEND_API DetectKeyPhrasesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< KeyPhrase > & GetKeyPhrases() const
DetectKeyPhrasesResult & AddKeyPhrases(KeyPhrasesT &&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