AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
SendFeedbackRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/security-ir/SecurityIRRequest.h>
9#include <aws/security-ir/SecurityIR_EXPORTS.h>
10#include <aws/security-ir/model/UsefulnessRating.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityIR {
16namespace Model {
17
21 public:
22 AWS_SECURITYIR_API SendFeedbackRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "SendFeedback"; }
29
30 AWS_SECURITYIR_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetCaseId() const { return m_caseId; }
37 inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
38 template <typename CaseIdT = Aws::String>
39 void SetCaseId(CaseIdT&& value) {
40 m_caseIdHasBeenSet = true;
41 m_caseId = std::forward<CaseIdT>(value);
42 }
43 template <typename CaseIdT = Aws::String>
44 SendFeedbackRequest& WithCaseId(CaseIdT&& value) {
45 SetCaseId(std::forward<CaseIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetResultId() const { return m_resultId; }
55 inline bool ResultIdHasBeenSet() const { return m_resultIdHasBeenSet; }
56 template <typename ResultIdT = Aws::String>
57 void SetResultId(ResultIdT&& value) {
58 m_resultIdHasBeenSet = true;
59 m_resultId = std::forward<ResultIdT>(value);
60 }
61 template <typename ResultIdT = Aws::String>
62 SendFeedbackRequest& WithResultId(ResultIdT&& value) {
63 SetResultId(std::forward<ResultIdT>(value));
64 return *this;
65 }
67
69
72 inline UsefulnessRating GetUsefulness() const { return m_usefulness; }
73 inline bool UsefulnessHasBeenSet() const { return m_usefulnessHasBeenSet; }
74 inline void SetUsefulness(UsefulnessRating value) {
75 m_usefulnessHasBeenSet = true;
76 m_usefulness = value;
77 }
79 SetUsefulness(value);
80 return *this;
81 }
83
85
88 inline const Aws::String& GetComment() const { return m_comment; }
89 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
90 template <typename CommentT = Aws::String>
91 void SetComment(CommentT&& value) {
92 m_commentHasBeenSet = true;
93 m_comment = std::forward<CommentT>(value);
94 }
95 template <typename CommentT = Aws::String>
96 SendFeedbackRequest& WithComment(CommentT&& value) {
97 SetComment(std::forward<CommentT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_caseId;
103
104 Aws::String m_resultId;
105
107
108 Aws::String m_comment;
109 bool m_caseIdHasBeenSet = false;
110 bool m_resultIdHasBeenSet = false;
111 bool m_usefulnessHasBeenSet = false;
112 bool m_commentHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace SecurityIR
117} // namespace Aws
SendFeedbackRequest & WithUsefulness(UsefulnessRating value)
AWS_SECURITYIR_API SendFeedbackRequest()=default
AWS_SECURITYIR_API Aws::String SerializePayload() const override
SendFeedbackRequest & WithCaseId(CaseIdT &&value)
virtual const char * GetServiceRequestName() const override
SendFeedbackRequest & WithComment(CommentT &&value)
SendFeedbackRequest & WithResultId(ResultIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String