AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TargetedSentimentEntity.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/TargetedSentimentMention.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
37 {
38 public:
39 AWS_COMPREHEND_API TargetedSentimentEntity() = default;
42 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<int>& GetDescriptiveMentionIndex() const { return m_descriptiveMentionIndex; }
51 inline bool DescriptiveMentionIndexHasBeenSet() const { return m_descriptiveMentionIndexHasBeenSet; }
52 template<typename DescriptiveMentionIndexT = Aws::Vector<int>>
53 void SetDescriptiveMentionIndex(DescriptiveMentionIndexT&& value) { m_descriptiveMentionIndexHasBeenSet = true; m_descriptiveMentionIndex = std::forward<DescriptiveMentionIndexT>(value); }
54 template<typename DescriptiveMentionIndexT = Aws::Vector<int>>
55 TargetedSentimentEntity& WithDescriptiveMentionIndex(DescriptiveMentionIndexT&& value) { SetDescriptiveMentionIndex(std::forward<DescriptiveMentionIndexT>(value)); return *this;}
56 inline TargetedSentimentEntity& AddDescriptiveMentionIndex(int value) { m_descriptiveMentionIndexHasBeenSet = true; m_descriptiveMentionIndex.push_back(value); return *this; }
58
60
66 inline const Aws::Vector<TargetedSentimentMention>& GetMentions() const { return m_mentions; }
67 inline bool MentionsHasBeenSet() const { return m_mentionsHasBeenSet; }
68 template<typename MentionsT = Aws::Vector<TargetedSentimentMention>>
69 void SetMentions(MentionsT&& value) { m_mentionsHasBeenSet = true; m_mentions = std::forward<MentionsT>(value); }
70 template<typename MentionsT = Aws::Vector<TargetedSentimentMention>>
71 TargetedSentimentEntity& WithMentions(MentionsT&& value) { SetMentions(std::forward<MentionsT>(value)); return *this;}
72 template<typename MentionsT = TargetedSentimentMention>
73 TargetedSentimentEntity& AddMentions(MentionsT&& value) { m_mentionsHasBeenSet = true; m_mentions.emplace_back(std::forward<MentionsT>(value)); return *this; }
75 private:
76
77 Aws::Vector<int> m_descriptiveMentionIndex;
78 bool m_descriptiveMentionIndexHasBeenSet = false;
79
81 bool m_mentionsHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Comprehend
86} // namespace Aws
AWS_COMPREHEND_API TargetedSentimentEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< int > & GetDescriptiveMentionIndex() const
AWS_COMPREHEND_API TargetedSentimentEntity(Aws::Utils::Json::JsonView jsonValue)
TargetedSentimentEntity & WithDescriptiveMentionIndex(DescriptiveMentionIndexT &&value)
TargetedSentimentEntity & AddMentions(MentionsT &&value)
void SetDescriptiveMentionIndex(DescriptiveMentionIndexT &&value)
AWS_COMPREHEND_API TargetedSentimentEntity()=default
const Aws::Vector< TargetedSentimentMention > & GetMentions() const
TargetedSentimentEntity & AddDescriptiveMentionIndex(int value)
TargetedSentimentEntity & WithMentions(MentionsT &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue