AWS SDK for C++  1.8.126
AWS SDK for C++
BatchDetectEntitiesItemResult.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 BatchDetectEntitiesItemResult& WithIndex(int value) { SetIndex(value); return *this;}
62 
63 
68  inline const Aws::Vector<Entity>& GetEntities() const{ return m_entities; }
69 
74  inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
75 
80  inline void SetEntities(const Aws::Vector<Entity>& value) { m_entitiesHasBeenSet = true; m_entities = value; }
81 
86  inline void SetEntities(Aws::Vector<Entity>&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); }
87 
92  inline BatchDetectEntitiesItemResult& WithEntities(const Aws::Vector<Entity>& value) { SetEntities(value); return *this;}
93 
98  inline BatchDetectEntitiesItemResult& WithEntities(Aws::Vector<Entity>&& value) { SetEntities(std::move(value)); return *this;}
99 
104  inline BatchDetectEntitiesItemResult& AddEntities(const Entity& value) { m_entitiesHasBeenSet = true; m_entities.push_back(value); return *this; }
105 
110  inline BatchDetectEntitiesItemResult& AddEntities(Entity&& value) { m_entitiesHasBeenSet = true; m_entities.push_back(std::move(value)); return *this; }
111 
112  private:
113 
114  int m_index;
115  bool m_indexHasBeenSet;
116 
117  Aws::Vector<Entity> m_entities;
118  bool m_entitiesHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace Comprehend
123 } // namespace Aws
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::BatchDetectEntitiesItemResult
Definition: BatchDetectEntitiesItemResult.h:35
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::operator=
BatchDetectEntitiesItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::WithIndex
BatchDetectEntitiesItemResult & WithIndex(int value)
Definition: BatchDetectEntitiesItemResult.h:61
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::SetEntities
void SetEntities(const Aws::Vector< Entity > &value)
Definition: BatchDetectEntitiesItemResult.h:80
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::WithEntities
BatchDetectEntitiesItemResult & WithEntities(const Aws::Vector< Entity > &value)
Definition: BatchDetectEntitiesItemResult.h:92
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::WithEntities
BatchDetectEntitiesItemResult & WithEntities(Aws::Vector< Entity > &&value)
Definition: BatchDetectEntitiesItemResult.h:98
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Entity.h
AWSVector.h
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::IndexHasBeenSet
bool IndexHasBeenSet() const
Definition: BatchDetectEntitiesItemResult.h:51
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::GetIndex
int GetIndex() const
Definition: BatchDetectEntitiesItemResult.h:46
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::BatchDetectEntitiesItemResult
BatchDetectEntitiesItemResult()
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::AddEntities
BatchDetectEntitiesItemResult & AddEntities(Entity &&value)
Definition: BatchDetectEntitiesItemResult.h:110
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::AddEntities
BatchDetectEntitiesItemResult & AddEntities(const Entity &value)
Definition: BatchDetectEntitiesItemResult.h:104
Aws::Comprehend::Model::Entity
Definition: Entity.h:33
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::SetIndex
void SetIndex(int value)
Definition: BatchDetectEntitiesItemResult.h:56
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::EntitiesHasBeenSet
bool EntitiesHasBeenSet() const
Definition: BatchDetectEntitiesItemResult.h:74
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::BatchDetectEntitiesItemResult
BatchDetectEntitiesItemResult(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::SetEntities
void SetEntities(Aws::Vector< Entity > &&value)
Definition: BatchDetectEntitiesItemResult.h:86
Aws::Comprehend::Model::BatchDetectEntitiesItemResult::GetEntities
const Aws::Vector< Entity > & GetEntities() const
Definition: BatchDetectEntitiesItemResult.h:68