AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchDetectKeyPhrasesItemResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/comprehend/model/KeyPhrase.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Comprehend
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_COMPREHEND_API BatchDetectKeyPhrasesItemResult() = default;
40 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetIndex() const { return m_index; }
48 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
49 inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
50 inline BatchDetectKeyPhrasesItemResult& WithIndex(int value) { SetIndex(value); return *this;}
52
54
58 inline const Aws::Vector<KeyPhrase>& GetKeyPhrases() const { return m_keyPhrases; }
59 inline bool KeyPhrasesHasBeenSet() const { return m_keyPhrasesHasBeenSet; }
60 template<typename KeyPhrasesT = Aws::Vector<KeyPhrase>>
61 void SetKeyPhrases(KeyPhrasesT&& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases = std::forward<KeyPhrasesT>(value); }
62 template<typename KeyPhrasesT = Aws::Vector<KeyPhrase>>
63 BatchDetectKeyPhrasesItemResult& WithKeyPhrases(KeyPhrasesT&& value) { SetKeyPhrases(std::forward<KeyPhrasesT>(value)); return *this;}
64 template<typename KeyPhrasesT = KeyPhrase>
65 BatchDetectKeyPhrasesItemResult& AddKeyPhrases(KeyPhrasesT&& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases.emplace_back(std::forward<KeyPhrasesT>(value)); return *this; }
67 private:
68
69 int m_index{0};
70 bool m_indexHasBeenSet = false;
71
72 Aws::Vector<KeyPhrase> m_keyPhrases;
73 bool m_keyPhrasesHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Comprehend
78} // namespace Aws
AWS_COMPREHEND_API BatchDetectKeyPhrasesItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API BatchDetectKeyPhrasesItemResult()=default
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHEND_API BatchDetectKeyPhrasesItemResult(Aws::Utils::Json::JsonView jsonValue)
BatchDetectKeyPhrasesItemResult & AddKeyPhrases(KeyPhrasesT &&value)
BatchDetectKeyPhrasesItemResult & WithKeyPhrases(KeyPhrasesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue