AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutFeedbackRequest.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/model/TargetType.h>
11#include <aws/qconnect/model/ContentFeedbackData.h>
12#include <utility>
13
14namespace Aws
15{
16namespace QConnect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QCONNECT_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_QCONNECT_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
42 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
43 template<typename AssistantIdT = Aws::String>
44 void SetAssistantId(AssistantIdT&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::forward<AssistantIdT>(value); }
45 template<typename AssistantIdT = Aws::String>
46 PutFeedbackRequest& WithAssistantId(AssistantIdT&& value) { SetAssistantId(std::forward<AssistantIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetTargetId() const { return m_targetId; }
54 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
55 template<typename TargetIdT = Aws::String>
56 void SetTargetId(TargetIdT&& value) { m_targetIdHasBeenSet = true; m_targetId = std::forward<TargetIdT>(value); }
57 template<typename TargetIdT = Aws::String>
58 PutFeedbackRequest& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
60
62
65 inline TargetType GetTargetType() const { return m_targetType; }
66 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
67 inline void SetTargetType(TargetType value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
68 inline PutFeedbackRequest& WithTargetType(TargetType value) { SetTargetType(value); return *this;}
70
72
75 inline const ContentFeedbackData& GetContentFeedback() const { return m_contentFeedback; }
76 inline bool ContentFeedbackHasBeenSet() const { return m_contentFeedbackHasBeenSet; }
77 template<typename ContentFeedbackT = ContentFeedbackData>
78 void SetContentFeedback(ContentFeedbackT&& value) { m_contentFeedbackHasBeenSet = true; m_contentFeedback = std::forward<ContentFeedbackT>(value); }
79 template<typename ContentFeedbackT = ContentFeedbackData>
80 PutFeedbackRequest& WithContentFeedback(ContentFeedbackT&& value) { SetContentFeedback(std::forward<ContentFeedbackT>(value)); return *this;}
82 private:
83
84 Aws::String m_assistantId;
85 bool m_assistantIdHasBeenSet = false;
86
87 Aws::String m_targetId;
88 bool m_targetIdHasBeenSet = false;
89
90 TargetType m_targetType{TargetType::NOT_SET};
91 bool m_targetTypeHasBeenSet = false;
92
93 ContentFeedbackData m_contentFeedback;
94 bool m_contentFeedbackHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace QConnect
99} // 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