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/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/model/ContentFeedbackData.h>
11#include <aws/qconnect/model/TargetType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace QConnect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QCONNECT_API PutFeedbackRequest();
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 inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; }
44 inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); }
45 inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); }
46 inline PutFeedbackRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;}
47 inline PutFeedbackRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;}
48 inline PutFeedbackRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;}
50
52
55 inline const ContentFeedbackData& GetContentFeedback() const{ return m_contentFeedback; }
56 inline bool ContentFeedbackHasBeenSet() const { return m_contentFeedbackHasBeenSet; }
57 inline void SetContentFeedback(const ContentFeedbackData& value) { m_contentFeedbackHasBeenSet = true; m_contentFeedback = value; }
58 inline void SetContentFeedback(ContentFeedbackData&& value) { m_contentFeedbackHasBeenSet = true; m_contentFeedback = std::move(value); }
60 inline PutFeedbackRequest& WithContentFeedback(ContentFeedbackData&& value) { SetContentFeedback(std::move(value)); return *this;}
62
64
67 inline const Aws::String& GetTargetId() const{ return m_targetId; }
68 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
69 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
70 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
71 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
72 inline PutFeedbackRequest& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
73 inline PutFeedbackRequest& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
74 inline PutFeedbackRequest& WithTargetId(const char* value) { SetTargetId(value); return *this;}
76
78
81 inline const TargetType& GetTargetType() const{ return m_targetType; }
82 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
83 inline void SetTargetType(const TargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
84 inline void SetTargetType(TargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
85 inline PutFeedbackRequest& WithTargetType(const TargetType& value) { SetTargetType(value); return *this;}
86 inline PutFeedbackRequest& WithTargetType(TargetType&& value) { SetTargetType(std::move(value)); return *this;}
88 private:
89
90 Aws::String m_assistantId;
91 bool m_assistantIdHasBeenSet = false;
92
93 ContentFeedbackData m_contentFeedback;
94 bool m_contentFeedbackHasBeenSet = false;
95
96 Aws::String m_targetId;
97 bool m_targetIdHasBeenSet = false;
98
99 TargetType m_targetType;
100 bool m_targetTypeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace QConnect
105} // namespace Aws
PutFeedbackRequest & WithContentFeedback(ContentFeedbackData &&value)
PutFeedbackRequest & WithTargetType(TargetType &&value)
PutFeedbackRequest & WithTargetId(Aws::String &&value)
void SetTargetId(const Aws::String &value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
void SetContentFeedback(ContentFeedbackData &&value)
void SetAssistantId(const Aws::String &value)
PutFeedbackRequest & WithAssistantId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetTargetType(const TargetType &value)
const Aws::String & GetAssistantId() const
PutFeedbackRequest & WithAssistantId(const char *value)
void SetContentFeedback(const ContentFeedbackData &value)
const ContentFeedbackData & GetContentFeedback() const
PutFeedbackRequest & WithTargetId(const Aws::String &value)
PutFeedbackRequest & WithTargetId(const char *value)
PutFeedbackRequest & WithAssistantId(const Aws::String &value)
PutFeedbackRequest & WithContentFeedback(const ContentFeedbackData &value)
PutFeedbackRequest & WithTargetType(const TargetType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String