AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchDetectTargetedSentimentItemResult.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/TargetedSentimentEntity.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
34 {
35 public:
39 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetIndex() const{ return m_index; }
47 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
48 inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
49 inline BatchDetectTargetedSentimentItemResult& WithIndex(int value) { SetIndex(value); return *this;}
51
53
56 inline const Aws::Vector<TargetedSentimentEntity>& GetEntities() const{ return m_entities; }
57 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
58 inline void SetEntities(const Aws::Vector<TargetedSentimentEntity>& value) { m_entitiesHasBeenSet = true; m_entities = value; }
59 inline void SetEntities(Aws::Vector<TargetedSentimentEntity>&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); }
62 inline BatchDetectTargetedSentimentItemResult& AddEntities(const TargetedSentimentEntity& value) { m_entitiesHasBeenSet = true; m_entities.push_back(value); return *this; }
63 inline BatchDetectTargetedSentimentItemResult& AddEntities(TargetedSentimentEntity&& value) { m_entitiesHasBeenSet = true; m_entities.push_back(std::move(value)); return *this; }
65 private:
66
67 int m_index;
68 bool m_indexHasBeenSet = false;
69
71 bool m_entitiesHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Comprehend
76} // namespace Aws
BatchDetectTargetedSentimentItemResult & AddEntities(TargetedSentimentEntity &&value)
AWS_COMPREHEND_API BatchDetectTargetedSentimentItemResult(Aws::Utils::Json::JsonView jsonValue)
BatchDetectTargetedSentimentItemResult & WithEntities(Aws::Vector< TargetedSentimentEntity > &&value)
AWS_COMPREHEND_API BatchDetectTargetedSentimentItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchDetectTargetedSentimentItemResult & AddEntities(const TargetedSentimentEntity &value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEntities(const Aws::Vector< TargetedSentimentEntity > &value)
BatchDetectTargetedSentimentItemResult & WithEntities(const Aws::Vector< TargetedSentimentEntity > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue