AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
InsightFeedbackRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/InsightFeedbackEntity.h>
11#include <aws/opensearch/model/InsightFeedbackThumbs.h>
12
13#include <utility>
14
15namespace Aws {
16namespace OpenSearchService {
17namespace Model {
18
26 public:
27 AWS_OPENSEARCHSERVICE_API InsightFeedbackRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "InsightFeedback"; }
34
35 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
36
38
42 inline const InsightFeedbackEntity& GetEntity() const { return m_entity; }
43 inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; }
44 template <typename EntityT = InsightFeedbackEntity>
45 void SetEntity(EntityT&& value) {
46 m_entityHasBeenSet = true;
47 m_entity = std::forward<EntityT>(value);
48 }
49 template <typename EntityT = InsightFeedbackEntity>
51 SetEntity(std::forward<EntityT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetInsightId() const { return m_insightId; }
61 inline bool InsightIdHasBeenSet() const { return m_insightIdHasBeenSet; }
62 template <typename InsightIdT = Aws::String>
63 void SetInsightId(InsightIdT&& value) {
64 m_insightIdHasBeenSet = true;
65 m_insightId = std::forward<InsightIdT>(value);
66 }
67 template <typename InsightIdT = Aws::String>
69 SetInsightId(std::forward<InsightIdT>(value));
70 return *this;
71 }
73
75
79 inline InsightFeedbackThumbs GetThumbs() const { return m_thumbs; }
80 inline bool ThumbsHasBeenSet() const { return m_thumbsHasBeenSet; }
81 inline void SetThumbs(InsightFeedbackThumbs value) {
82 m_thumbsHasBeenSet = true;
83 m_thumbs = value;
84 }
86 SetThumbs(value);
87 return *this;
88 }
90
92
96 inline const Aws::String& GetFeedbackText() const { return m_feedbackText; }
97 inline bool FeedbackTextHasBeenSet() const { return m_feedbackTextHasBeenSet; }
98 template <typename FeedbackTextT = Aws::String>
99 void SetFeedbackText(FeedbackTextT&& value) {
100 m_feedbackTextHasBeenSet = true;
101 m_feedbackText = std::forward<FeedbackTextT>(value);
102 }
103 template <typename FeedbackTextT = Aws::String>
104 InsightFeedbackRequest& WithFeedbackText(FeedbackTextT&& value) {
105 SetFeedbackText(std::forward<FeedbackTextT>(value));
106 return *this;
107 }
109 private:
110 InsightFeedbackEntity m_entity;
111
112 Aws::String m_insightId;
113
115
116 Aws::String m_feedbackText;
117 bool m_entityHasBeenSet = false;
118 bool m_insightIdHasBeenSet = false;
119 bool m_thumbsHasBeenSet = false;
120 bool m_feedbackTextHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace OpenSearchService
125} // namespace Aws
InsightFeedbackRequest & WithEntity(EntityT &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
InsightFeedbackRequest & WithFeedbackText(FeedbackTextT &&value)
AWS_OPENSEARCHSERVICE_API InsightFeedbackRequest()=default
InsightFeedbackRequest & WithInsightId(InsightIdT &&value)
InsightFeedbackRequest & WithThumbs(InsightFeedbackThumbs value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String