AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchDetectEntitiesItemResult.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/Entity.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 BatchDetectEntitiesItemResult();
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 BatchDetectEntitiesItemResult& WithIndex(int value) { SetIndex(value); return *this;}
52
54
58 inline const Aws::Vector<Entity>& GetEntities() const{ return m_entities; }
59 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
60 inline void SetEntities(const Aws::Vector<Entity>& value) { m_entitiesHasBeenSet = true; m_entities = value; }
61 inline void SetEntities(Aws::Vector<Entity>&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); }
62 inline BatchDetectEntitiesItemResult& WithEntities(const Aws::Vector<Entity>& value) { SetEntities(value); return *this;}
63 inline BatchDetectEntitiesItemResult& WithEntities(Aws::Vector<Entity>&& value) { SetEntities(std::move(value)); return *this;}
64 inline BatchDetectEntitiesItemResult& AddEntities(const Entity& value) { m_entitiesHasBeenSet = true; m_entities.push_back(value); return *this; }
65 inline BatchDetectEntitiesItemResult& AddEntities(Entity&& value) { m_entitiesHasBeenSet = true; m_entities.push_back(std::move(value)); return *this; }
67 private:
68
69 int m_index;
70 bool m_indexHasBeenSet = false;
71
72 Aws::Vector<Entity> m_entities;
73 bool m_entitiesHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Comprehend
78} // namespace Aws
AWS_COMPREHEND_API BatchDetectEntitiesItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchDetectEntitiesItemResult & AddEntities(const Entity &value)
BatchDetectEntitiesItemResult & WithEntities(Aws::Vector< Entity > &&value)
BatchDetectEntitiesItemResult & WithEntities(const Aws::Vector< Entity > &value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHEND_API BatchDetectEntitiesItemResult(Aws::Utils::Json::JsonView jsonValue)
BatchDetectEntitiesItemResult & AddEntities(Entity &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue