AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutFeedbackRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/qbusiness/model/MessageUsefulnessFeedback.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace QBusiness
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_QBUSINESS_API PutFeedbackRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PutFeedback"; }
37
38 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
39
40 AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
48 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
49 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
50 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
51 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
52 inline PutFeedbackRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
53 inline PutFeedbackRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
54 inline PutFeedbackRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
56
58
61 inline const Aws::String& GetUserId() const{ return m_userId; }
62 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
63 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
64 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
65 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
66 inline PutFeedbackRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
67 inline PutFeedbackRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
68 inline PutFeedbackRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
70
72
75 inline const Aws::String& GetConversationId() const{ return m_conversationId; }
76 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
77 inline void SetConversationId(const Aws::String& value) { m_conversationIdHasBeenSet = true; m_conversationId = value; }
78 inline void SetConversationId(Aws::String&& value) { m_conversationIdHasBeenSet = true; m_conversationId = std::move(value); }
79 inline void SetConversationId(const char* value) { m_conversationIdHasBeenSet = true; m_conversationId.assign(value); }
80 inline PutFeedbackRequest& WithConversationId(const Aws::String& value) { SetConversationId(value); return *this;}
81 inline PutFeedbackRequest& WithConversationId(Aws::String&& value) { SetConversationId(std::move(value)); return *this;}
82 inline PutFeedbackRequest& WithConversationId(const char* value) { SetConversationId(value); return *this;}
84
86
89 inline const Aws::String& GetMessageId() const{ return m_messageId; }
90 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
91 inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
92 inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
93 inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
94 inline PutFeedbackRequest& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
95 inline PutFeedbackRequest& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
96 inline PutFeedbackRequest& WithMessageId(const char* value) { SetMessageId(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetMessageCopiedAt() const{ return m_messageCopiedAt; }
104 inline bool MessageCopiedAtHasBeenSet() const { return m_messageCopiedAtHasBeenSet; }
105 inline void SetMessageCopiedAt(const Aws::Utils::DateTime& value) { m_messageCopiedAtHasBeenSet = true; m_messageCopiedAt = value; }
106 inline void SetMessageCopiedAt(Aws::Utils::DateTime&& value) { m_messageCopiedAtHasBeenSet = true; m_messageCopiedAt = std::move(value); }
108 inline PutFeedbackRequest& WithMessageCopiedAt(Aws::Utils::DateTime&& value) { SetMessageCopiedAt(std::move(value)); return *this;}
110
112
115 inline const MessageUsefulnessFeedback& GetMessageUsefulness() const{ return m_messageUsefulness; }
116 inline bool MessageUsefulnessHasBeenSet() const { return m_messageUsefulnessHasBeenSet; }
117 inline void SetMessageUsefulness(const MessageUsefulnessFeedback& value) { m_messageUsefulnessHasBeenSet = true; m_messageUsefulness = value; }
118 inline void SetMessageUsefulness(MessageUsefulnessFeedback&& value) { m_messageUsefulnessHasBeenSet = true; m_messageUsefulness = std::move(value); }
122 private:
123
124 Aws::String m_applicationId;
125 bool m_applicationIdHasBeenSet = false;
126
127 Aws::String m_userId;
128 bool m_userIdHasBeenSet = false;
129
130 Aws::String m_conversationId;
131 bool m_conversationIdHasBeenSet = false;
132
133 Aws::String m_messageId;
134 bool m_messageIdHasBeenSet = false;
135
136 Aws::Utils::DateTime m_messageCopiedAt;
137 bool m_messageCopiedAtHasBeenSet = false;
138
139 MessageUsefulnessFeedback m_messageUsefulness;
140 bool m_messageUsefulnessHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace QBusiness
145} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_QBUSINESS_API Aws::String SerializePayload() const override
PutFeedbackRequest & WithConversationId(const Aws::String &value)
void SetMessageCopiedAt(Aws::Utils::DateTime &&value)
void SetMessageCopiedAt(const Aws::Utils::DateTime &value)
void SetUserId(const Aws::String &value)
PutFeedbackRequest & WithMessageCopiedAt(const Aws::Utils::DateTime &value)
PutFeedbackRequest & WithApplicationId(const char *value)
PutFeedbackRequest & WithUserId(const char *value)
PutFeedbackRequest & WithUserId(Aws::String &&value)
AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetMessageId(const Aws::String &value)
PutFeedbackRequest & WithConversationId(const char *value)
PutFeedbackRequest & WithConversationId(Aws::String &&value)
const Aws::String & GetApplicationId() const
PutFeedbackRequest & WithApplicationId(Aws::String &&value)
void SetApplicationId(const Aws::String &value)
PutFeedbackRequest & WithMessageCopiedAt(Aws::Utils::DateTime &&value)
void SetMessageUsefulness(const MessageUsefulnessFeedback &value)
void SetConversationId(const Aws::String &value)
PutFeedbackRequest & WithUserId(const Aws::String &value)
PutFeedbackRequest & WithMessageId(Aws::String &&value)
PutFeedbackRequest & WithApplicationId(const Aws::String &value)
PutFeedbackRequest & WithMessageUsefulness(MessageUsefulnessFeedback &&value)
PutFeedbackRequest & WithMessageId(const char *value)
const MessageUsefulnessFeedback & GetMessageUsefulness() const
void SetMessageUsefulness(MessageUsefulnessFeedback &&value)
const Aws::Utils::DateTime & GetMessageCopiedAt() const
PutFeedbackRequest & WithMessageId(const Aws::String &value)
const Aws::String & GetConversationId() const
PutFeedbackRequest & WithMessageUsefulness(const MessageUsefulnessFeedback &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String