AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
PutFeedbackRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/QBusinessRequest.h>
10#include <aws/qbusiness/QBusiness_EXPORTS.h>
11#include <aws/qbusiness/model/MessageUsefulnessFeedback.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace QBusiness {
20namespace Model {
21
25 public:
26 AWS_QBUSINESS_API PutFeedbackRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutFeedback"; }
33
34 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
35
36 AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
43 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
44 template <typename ApplicationIdT = Aws::String>
46 m_applicationIdHasBeenSet = true;
47 m_applicationId = std::forward<ApplicationIdT>(value);
48 }
49 template <typename ApplicationIdT = Aws::String>
51 SetApplicationId(std::forward<ApplicationIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetUserId() const { return m_userId; }
61 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
62 template <typename UserIdT = Aws::String>
63 void SetUserId(UserIdT&& value) {
64 m_userIdHasBeenSet = true;
65 m_userId = std::forward<UserIdT>(value);
66 }
67 template <typename UserIdT = Aws::String>
69 SetUserId(std::forward<UserIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetConversationId() const { return m_conversationId; }
79 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
80 template <typename ConversationIdT = Aws::String>
82 m_conversationIdHasBeenSet = true;
83 m_conversationId = std::forward<ConversationIdT>(value);
84 }
85 template <typename ConversationIdT = Aws::String>
87 SetConversationId(std::forward<ConversationIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetMessageId() const { return m_messageId; }
97 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
98 template <typename MessageIdT = Aws::String>
99 void SetMessageId(MessageIdT&& value) {
100 m_messageIdHasBeenSet = true;
101 m_messageId = std::forward<MessageIdT>(value);
102 }
103 template <typename MessageIdT = Aws::String>
105 SetMessageId(std::forward<MessageIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetMessageCopiedAt() const { return m_messageCopiedAt; }
115 inline bool MessageCopiedAtHasBeenSet() const { return m_messageCopiedAtHasBeenSet; }
116 template <typename MessageCopiedAtT = Aws::Utils::DateTime>
118 m_messageCopiedAtHasBeenSet = true;
119 m_messageCopiedAt = std::forward<MessageCopiedAtT>(value);
120 }
121 template <typename MessageCopiedAtT = Aws::Utils::DateTime>
123 SetMessageCopiedAt(std::forward<MessageCopiedAtT>(value));
124 return *this;
125 }
127
129
132 inline const MessageUsefulnessFeedback& GetMessageUsefulness() const { return m_messageUsefulness; }
133 inline bool MessageUsefulnessHasBeenSet() const { return m_messageUsefulnessHasBeenSet; }
134 template <typename MessageUsefulnessT = MessageUsefulnessFeedback>
136 m_messageUsefulnessHasBeenSet = true;
137 m_messageUsefulness = std::forward<MessageUsefulnessT>(value);
138 }
139 template <typename MessageUsefulnessT = MessageUsefulnessFeedback>
141 SetMessageUsefulness(std::forward<MessageUsefulnessT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_applicationId;
147 bool m_applicationIdHasBeenSet = false;
148
149 Aws::String m_userId;
150 bool m_userIdHasBeenSet = false;
151
152 Aws::String m_conversationId;
153 bool m_conversationIdHasBeenSet = false;
154
155 Aws::String m_messageId;
156 bool m_messageIdHasBeenSet = false;
157
158 Aws::Utils::DateTime m_messageCopiedAt{};
159 bool m_messageCopiedAtHasBeenSet = false;
160
161 MessageUsefulnessFeedback m_messageUsefulness;
162 bool m_messageUsefulnessHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace QBusiness
167} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetApplicationId(ApplicationIdT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
PutFeedbackRequest & WithApplicationId(ApplicationIdT &&value)
void SetMessageCopiedAt(MessageCopiedAtT &&value)
AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutFeedbackRequest & WithConversationId(ConversationIdT &&value)
PutFeedbackRequest & WithUserId(UserIdT &&value)
const Aws::String & GetApplicationId() const
PutFeedbackRequest & WithMessageId(MessageIdT &&value)
void SetConversationId(ConversationIdT &&value)
PutFeedbackRequest & WithMessageCopiedAt(MessageCopiedAtT &&value)
AWS_QBUSINESS_API PutFeedbackRequest()=default
const MessageUsefulnessFeedback & GetMessageUsefulness() const
void SetMessageUsefulness(MessageUsefulnessT &&value)
const Aws::Utils::DateTime & GetMessageCopiedAt() const
PutFeedbackRequest & WithMessageUsefulness(MessageUsefulnessT &&value)
const Aws::String & GetConversationId() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String