AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
36 AWS_COMPREHEND_API BatchDetectTargetedSentimentItemResult() = default;
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 template<typename EntitiesT = Aws::Vector<TargetedSentimentEntity>>
59 void SetEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities = std::forward<EntitiesT>(value); }
60 template<typename EntitiesT = Aws::Vector<TargetedSentimentEntity>>
61 BatchDetectTargetedSentimentItemResult& WithEntities(EntitiesT&& value) { SetEntities(std::forward<EntitiesT>(value)); return *this;}
62 template<typename EntitiesT = TargetedSentimentEntity>
63 BatchDetectTargetedSentimentItemResult& AddEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities.emplace_back(std::forward<EntitiesT>(value)); return *this; }
65 private:
66
67 int m_index{0};
68 bool m_indexHasBeenSet = false;
69
71 bool m_entitiesHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Comprehend
76} // namespace Aws
BatchDetectTargetedSentimentItemResult & WithEntities(EntitiesT &&value)
AWS_COMPREHEND_API BatchDetectTargetedSentimentItemResult(Aws::Utils::Json::JsonView jsonValue)
BatchDetectTargetedSentimentItemResult & AddEntities(EntitiesT &&value)
AWS_COMPREHEND_API BatchDetectTargetedSentimentItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue