AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
UpdateFindingsFeedbackRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDutyRequest.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/Feedback.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GuardDuty {
17namespace Model {
18
22 public:
23 AWS_GUARDDUTY_API UpdateFindingsFeedbackRequest() = 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 "UpdateFindingsFeedback"; }
30
31 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
32
34
41 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
42 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
43 template <typename DetectorIdT = Aws::String>
44 void SetDetectorId(DetectorIdT&& value) {
45 m_detectorIdHasBeenSet = true;
46 m_detectorId = std::forward<DetectorIdT>(value);
47 }
48 template <typename DetectorIdT = Aws::String>
50 SetDetectorId(std::forward<DetectorIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetFindingIds() const { return m_findingIds; }
60 inline bool FindingIdsHasBeenSet() const { return m_findingIdsHasBeenSet; }
61 template <typename FindingIdsT = Aws::Vector<Aws::String>>
62 void SetFindingIds(FindingIdsT&& value) {
63 m_findingIdsHasBeenSet = true;
64 m_findingIds = std::forward<FindingIdsT>(value);
65 }
66 template <typename FindingIdsT = Aws::Vector<Aws::String>>
68 SetFindingIds(std::forward<FindingIdsT>(value));
69 return *this;
70 }
71 template <typename FindingIdsT = Aws::String>
73 m_findingIdsHasBeenSet = true;
74 m_findingIds.emplace_back(std::forward<FindingIdsT>(value));
75 return *this;
76 }
78
80
83 inline Feedback GetFeedback() const { return m_feedback; }
84 inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
85 inline void SetFeedback(Feedback value) {
86 m_feedbackHasBeenSet = true;
87 m_feedback = value;
88 }
90 SetFeedback(value);
91 return *this;
92 }
94
96
99 inline const Aws::String& GetComments() const { return m_comments; }
100 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
101 template <typename CommentsT = Aws::String>
102 void SetComments(CommentsT&& value) {
103 m_commentsHasBeenSet = true;
104 m_comments = std::forward<CommentsT>(value);
105 }
106 template <typename CommentsT = Aws::String>
108 SetComments(std::forward<CommentsT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_detectorId;
114
115 Aws::Vector<Aws::String> m_findingIds;
116
117 Feedback m_feedback{Feedback::NOT_SET};
118
119 Aws::String m_comments;
120 bool m_detectorIdHasBeenSet = false;
121 bool m_findingIdsHasBeenSet = false;
122 bool m_feedbackHasBeenSet = false;
123 bool m_commentsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace GuardDuty
128} // namespace Aws
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
UpdateFindingsFeedbackRequest & AddFindingIds(FindingIdsT &&value)
UpdateFindingsFeedbackRequest & WithComments(CommentsT &&value)
UpdateFindingsFeedbackRequest & WithDetectorId(DetectorIdT &&value)
AWS_GUARDDUTY_API UpdateFindingsFeedbackRequest()=default
UpdateFindingsFeedbackRequest & WithFeedback(Feedback value)
UpdateFindingsFeedbackRequest & WithFindingIds(FindingIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector