AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TargetedSentimentEntity.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/TargetedSentimentMention.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Comprehend {
21namespace Model {
22
33 public:
34 AWS_COMPREHEND_API TargetedSentimentEntity() = default;
37 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Vector<int>& GetDescriptiveMentionIndex() const { return m_descriptiveMentionIndex; }
45 inline bool DescriptiveMentionIndexHasBeenSet() const { return m_descriptiveMentionIndexHasBeenSet; }
46 template <typename DescriptiveMentionIndexT = Aws::Vector<int>>
47 void SetDescriptiveMentionIndex(DescriptiveMentionIndexT&& value) {
48 m_descriptiveMentionIndexHasBeenSet = true;
49 m_descriptiveMentionIndex = std::forward<DescriptiveMentionIndexT>(value);
50 }
51 template <typename DescriptiveMentionIndexT = Aws::Vector<int>>
52 TargetedSentimentEntity& WithDescriptiveMentionIndex(DescriptiveMentionIndexT&& value) {
53 SetDescriptiveMentionIndex(std::forward<DescriptiveMentionIndexT>(value));
54 return *this;
55 }
57 m_descriptiveMentionIndexHasBeenSet = true;
58 m_descriptiveMentionIndex.push_back(value);
59 return *this;
60 }
62
64
70 inline const Aws::Vector<TargetedSentimentMention>& GetMentions() const { return m_mentions; }
71 inline bool MentionsHasBeenSet() const { return m_mentionsHasBeenSet; }
72 template <typename MentionsT = Aws::Vector<TargetedSentimentMention>>
73 void SetMentions(MentionsT&& value) {
74 m_mentionsHasBeenSet = true;
75 m_mentions = std::forward<MentionsT>(value);
76 }
77 template <typename MentionsT = Aws::Vector<TargetedSentimentMention>>
79 SetMentions(std::forward<MentionsT>(value));
80 return *this;
81 }
82 template <typename MentionsT = TargetedSentimentMention>
84 m_mentionsHasBeenSet = true;
85 m_mentions.emplace_back(std::forward<MentionsT>(value));
86 return *this;
87 }
89 private:
90 Aws::Vector<int> m_descriptiveMentionIndex;
91
93 bool m_descriptiveMentionIndexHasBeenSet = false;
94 bool m_mentionsHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Comprehend
99} // 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