AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyPhrases(const Aws::Vector<KeyPhrase>& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases = value; }
61 inline void SetKeyPhrases(Aws::Vector<KeyPhrase>&& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases = std::move(value); }
63 inline BatchDetectKeyPhrasesItemResult& WithKeyPhrases(Aws::Vector<KeyPhrase>&& value) { SetKeyPhrases(std::move(value)); return *this;}
64 inline BatchDetectKeyPhrasesItemResult& AddKeyPhrases(const KeyPhrase& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases.push_back(value); return *this; }
65 inline BatchDetectKeyPhrasesItemResult& AddKeyPhrases(KeyPhrase&& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases.push_back(std::move(value)); return *this; }
67 private:
68
69 int m_index;
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)
BatchDetectKeyPhrasesItemResult & WithKeyPhrases(Aws::Vector< KeyPhrase > &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHEND_API BatchDetectKeyPhrasesItemResult(Aws::Utils::Json::JsonView jsonValue)
BatchDetectKeyPhrasesItemResult & WithKeyPhrases(const Aws::Vector< KeyPhrase > &value)
BatchDetectKeyPhrasesItemResult & AddKeyPhrases(KeyPhrase &&value)
BatchDetectKeyPhrasesItemResult & AddKeyPhrases(const KeyPhrase &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue