AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutFeedbackRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/ContentFeedbackData.h>
11#include <aws/qconnect/model/TargetType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QConnect {
17namespace Model {
18
22 public:
23 AWS_QCONNECT_API PutFeedbackRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutFeedback"; }
30
31 AWS_QCONNECT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
38 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
39 template <typename AssistantIdT = Aws::String>
41 m_assistantIdHasBeenSet = true;
42 m_assistantId = std::forward<AssistantIdT>(value);
43 }
44 template <typename AssistantIdT = Aws::String>
46 SetAssistantId(std::forward<AssistantIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetTargetId() const { return m_targetId; }
56 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
57 template <typename TargetIdT = Aws::String>
58 void SetTargetId(TargetIdT&& value) {
59 m_targetIdHasBeenSet = true;
60 m_targetId = std::forward<TargetIdT>(value);
61 }
62 template <typename TargetIdT = Aws::String>
64 SetTargetId(std::forward<TargetIdT>(value));
65 return *this;
66 }
68
70
73 inline TargetType GetTargetType() const { return m_targetType; }
74 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
75 inline void SetTargetType(TargetType value) {
76 m_targetTypeHasBeenSet = true;
77 m_targetType = value;
78 }
80 SetTargetType(value);
81 return *this;
82 }
84
86
89 inline const ContentFeedbackData& GetContentFeedback() const { return m_contentFeedback; }
90 inline bool ContentFeedbackHasBeenSet() const { return m_contentFeedbackHasBeenSet; }
91 template <typename ContentFeedbackT = ContentFeedbackData>
93 m_contentFeedbackHasBeenSet = true;
94 m_contentFeedback = std::forward<ContentFeedbackT>(value);
95 }
96 template <typename ContentFeedbackT = ContentFeedbackData>
98 SetContentFeedback(std::forward<ContentFeedbackT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_assistantId;
104
105 Aws::String m_targetId;
106
107 TargetType m_targetType{TargetType::NOT_SET};
108
109 ContentFeedbackData m_contentFeedback;
110 bool m_assistantIdHasBeenSet = false;
111 bool m_targetIdHasBeenSet = false;
112 bool m_targetTypeHasBeenSet = false;
113 bool m_contentFeedbackHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace QConnect
118} // namespace Aws
PutFeedbackRequest & WithContentFeedback(ContentFeedbackT &&value)
PutFeedbackRequest & WithTargetId(TargetIdT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
PutFeedbackRequest & WithAssistantId(AssistantIdT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAssistantId() const
PutFeedbackRequest & WithTargetType(TargetType value)
AWS_QCONNECT_API PutFeedbackRequest()=default
const ContentFeedbackData & GetContentFeedback() const
void SetContentFeedback(ContentFeedbackT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String