AWS SDK for C++  1.8.126
AWS SDK for C++
BatchDetectKeyPhrasesItemResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Comprehend
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
46  inline int GetIndex() const{ return m_index; }
47 
51  inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
52 
56  inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
57 
61  inline BatchDetectKeyPhrasesItemResult& WithIndex(int value) { SetIndex(value); return *this;}
62 
63 
68  inline const Aws::Vector<KeyPhrase>& GetKeyPhrases() const{ return m_keyPhrases; }
69 
74  inline bool KeyPhrasesHasBeenSet() const { return m_keyPhrasesHasBeenSet; }
75 
80  inline void SetKeyPhrases(const Aws::Vector<KeyPhrase>& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases = value; }
81 
86  inline void SetKeyPhrases(Aws::Vector<KeyPhrase>&& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases = std::move(value); }
87 
92  inline BatchDetectKeyPhrasesItemResult& WithKeyPhrases(const Aws::Vector<KeyPhrase>& value) { SetKeyPhrases(value); return *this;}
93 
98  inline BatchDetectKeyPhrasesItemResult& WithKeyPhrases(Aws::Vector<KeyPhrase>&& value) { SetKeyPhrases(std::move(value)); return *this;}
99 
104  inline BatchDetectKeyPhrasesItemResult& AddKeyPhrases(const KeyPhrase& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases.push_back(value); return *this; }
105 
110  inline BatchDetectKeyPhrasesItemResult& AddKeyPhrases(KeyPhrase&& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases.push_back(std::move(value)); return *this; }
111 
112  private:
113 
114  int m_index;
115  bool m_indexHasBeenSet;
116 
117  Aws::Vector<KeyPhrase> m_keyPhrases;
118  bool m_keyPhrasesHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace Comprehend
123 } // namespace Aws
KeyPhrase.h
Aws::Comprehend::Model::KeyPhrase
Definition: KeyPhrase.h:32
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::SetKeyPhrases
void SetKeyPhrases(const Aws::Vector< KeyPhrase > &value)
Definition: BatchDetectKeyPhrasesItemResult.h:80
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::WithKeyPhrases
BatchDetectKeyPhrasesItemResult & WithKeyPhrases(Aws::Vector< KeyPhrase > &&value)
Definition: BatchDetectKeyPhrasesItemResult.h:98
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult
Definition: BatchDetectKeyPhrasesItemResult.h:35
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::WithIndex
BatchDetectKeyPhrasesItemResult & WithIndex(int value)
Definition: BatchDetectKeyPhrasesItemResult.h:61
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::operator=
BatchDetectKeyPhrasesItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::WithKeyPhrases
BatchDetectKeyPhrasesItemResult & WithKeyPhrases(const Aws::Vector< KeyPhrase > &value)
Definition: BatchDetectKeyPhrasesItemResult.h:92
AWSVector.h
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::SetIndex
void SetIndex(int value)
Definition: BatchDetectKeyPhrasesItemResult.h:56
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::GetKeyPhrases
const Aws::Vector< KeyPhrase > & GetKeyPhrases() const
Definition: BatchDetectKeyPhrasesItemResult.h:68
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::BatchDetectKeyPhrasesItemResult
BatchDetectKeyPhrasesItemResult(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::KeyPhrasesHasBeenSet
bool KeyPhrasesHasBeenSet() const
Definition: BatchDetectKeyPhrasesItemResult.h:74
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::SetKeyPhrases
void SetKeyPhrases(Aws::Vector< KeyPhrase > &&value)
Definition: BatchDetectKeyPhrasesItemResult.h:86
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::IndexHasBeenSet
bool IndexHasBeenSet() const
Definition: BatchDetectKeyPhrasesItemResult.h:51
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::AddKeyPhrases
BatchDetectKeyPhrasesItemResult & AddKeyPhrases(KeyPhrase &&value)
Definition: BatchDetectKeyPhrasesItemResult.h:110
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::AddKeyPhrases
BatchDetectKeyPhrasesItemResult & AddKeyPhrases(const KeyPhrase &value)
Definition: BatchDetectKeyPhrasesItemResult.h:104
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::GetIndex
int GetIndex() const
Definition: BatchDetectKeyPhrasesItemResult.h:46
Aws::Comprehend::Model::BatchDetectKeyPhrasesItemResult::BatchDetectKeyPhrasesItemResult
BatchDetectKeyPhrasesItemResult()