AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateFindingsFeedbackRequest.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/guardduty/model/Feedback.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GuardDuty
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GUARDDUTY_API UpdateFindingsFeedbackRequest() = 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 "UpdateFindingsFeedback"; }
33
34 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
46 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
47 template<typename DetectorIdT = Aws::String>
48 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
49 template<typename DetectorIdT = Aws::String>
50 UpdateFindingsFeedbackRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
52
54
57 inline const Aws::Vector<Aws::String>& GetFindingIds() const { return m_findingIds; }
58 inline bool FindingIdsHasBeenSet() const { return m_findingIdsHasBeenSet; }
59 template<typename FindingIdsT = Aws::Vector<Aws::String>>
60 void SetFindingIds(FindingIdsT&& value) { m_findingIdsHasBeenSet = true; m_findingIds = std::forward<FindingIdsT>(value); }
61 template<typename FindingIdsT = Aws::Vector<Aws::String>>
62 UpdateFindingsFeedbackRequest& WithFindingIds(FindingIdsT&& value) { SetFindingIds(std::forward<FindingIdsT>(value)); return *this;}
63 template<typename FindingIdsT = Aws::String>
64 UpdateFindingsFeedbackRequest& AddFindingIds(FindingIdsT&& value) { m_findingIdsHasBeenSet = true; m_findingIds.emplace_back(std::forward<FindingIdsT>(value)); return *this; }
66
68
71 inline Feedback GetFeedback() const { return m_feedback; }
72 inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
73 inline void SetFeedback(Feedback value) { m_feedbackHasBeenSet = true; m_feedback = value; }
74 inline UpdateFindingsFeedbackRequest& WithFeedback(Feedback value) { SetFeedback(value); return *this;}
76
78
81 inline const Aws::String& GetComments() const { return m_comments; }
82 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
83 template<typename CommentsT = Aws::String>
84 void SetComments(CommentsT&& value) { m_commentsHasBeenSet = true; m_comments = std::forward<CommentsT>(value); }
85 template<typename CommentsT = Aws::String>
86 UpdateFindingsFeedbackRequest& WithComments(CommentsT&& value) { SetComments(std::forward<CommentsT>(value)); return *this;}
88 private:
89
90 Aws::String m_detectorId;
91 bool m_detectorIdHasBeenSet = false;
92
93 Aws::Vector<Aws::String> m_findingIds;
94 bool m_findingIdsHasBeenSet = false;
95
96 Feedback m_feedback{Feedback::NOT_SET};
97 bool m_feedbackHasBeenSet = false;
98
99 Aws::String m_comments;
100 bool m_commentsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace GuardDuty
105} // 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