AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
GetFindingsRequest.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/SortCriteria.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GuardDuty {
17namespace Model {
18
22 public:
23 AWS_GUARDDUTY_API GetFindingsRequest() = 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 "GetFindings"; }
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>
49 GetFindingsRequest& WithDetectorId(DetectorIdT&& value) {
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>>
67 GetFindingsRequest& WithFindingIds(FindingIdsT&& value) {
68 SetFindingIds(std::forward<FindingIdsT>(value));
69 return *this;
70 }
71 template <typename FindingIdsT = Aws::String>
72 GetFindingsRequest& AddFindingIds(FindingIdsT&& value) {
73 m_findingIdsHasBeenSet = true;
74 m_findingIds.emplace_back(std::forward<FindingIdsT>(value));
75 return *this;
76 }
78
80
83 inline const SortCriteria& GetSortCriteria() const { return m_sortCriteria; }
84 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
85 template <typename SortCriteriaT = SortCriteria>
86 void SetSortCriteria(SortCriteriaT&& value) {
87 m_sortCriteriaHasBeenSet = true;
88 m_sortCriteria = std::forward<SortCriteriaT>(value);
89 }
90 template <typename SortCriteriaT = SortCriteria>
91 GetFindingsRequest& WithSortCriteria(SortCriteriaT&& value) {
92 SetSortCriteria(std::forward<SortCriteriaT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_detectorId;
98
99 Aws::Vector<Aws::String> m_findingIds;
100
101 SortCriteria m_sortCriteria;
102 bool m_detectorIdHasBeenSet = false;
103 bool m_findingIdsHasBeenSet = false;
104 bool m_sortCriteriaHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace GuardDuty
109} // namespace Aws
void SetSortCriteria(SortCriteriaT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
AWS_GUARDDUTY_API GetFindingsRequest()=default
virtual const char * GetServiceRequestName() const override
GetFindingsRequest & WithSortCriteria(SortCriteriaT &&value)
const SortCriteria & GetSortCriteria() const
GetFindingsRequest & WithFindingIds(FindingIdsT &&value)
GetFindingsRequest & AddFindingIds(FindingIdsT &&value)
GetFindingsRequest & WithDetectorId(DetectorIdT &&value)
const Aws::Vector< Aws::String > & GetFindingIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector