AWS SDK for C++  1.8.184
AWS SDK for C++
GetFindingsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GuardDuty
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "GetFindings"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
41  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
42 
47  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
48 
53  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
54 
59  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
60 
65  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
66 
71  inline GetFindingsRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
72 
77  inline GetFindingsRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
78 
83  inline GetFindingsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
84 
85 
89  inline const Aws::Vector<Aws::String>& GetFindingIds() const{ return m_findingIds; }
90 
94  inline bool FindingIdsHasBeenSet() const { return m_findingIdsHasBeenSet; }
95 
99  inline void SetFindingIds(const Aws::Vector<Aws::String>& value) { m_findingIdsHasBeenSet = true; m_findingIds = value; }
100 
104  inline void SetFindingIds(Aws::Vector<Aws::String>&& value) { m_findingIdsHasBeenSet = true; m_findingIds = std::move(value); }
105 
109  inline GetFindingsRequest& WithFindingIds(const Aws::Vector<Aws::String>& value) { SetFindingIds(value); return *this;}
110 
114  inline GetFindingsRequest& WithFindingIds(Aws::Vector<Aws::String>&& value) { SetFindingIds(std::move(value)); return *this;}
115 
119  inline GetFindingsRequest& AddFindingIds(const Aws::String& value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(value); return *this; }
120 
124  inline GetFindingsRequest& AddFindingIds(Aws::String&& value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(std::move(value)); return *this; }
125 
129  inline GetFindingsRequest& AddFindingIds(const char* value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(value); return *this; }
130 
131 
135  inline const SortCriteria& GetSortCriteria() const{ return m_sortCriteria; }
136 
140  inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
141 
145  inline void SetSortCriteria(const SortCriteria& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
146 
150  inline void SetSortCriteria(SortCriteria&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
151 
155  inline GetFindingsRequest& WithSortCriteria(const SortCriteria& value) { SetSortCriteria(value); return *this;}
156 
160  inline GetFindingsRequest& WithSortCriteria(SortCriteria&& value) { SetSortCriteria(std::move(value)); return *this;}
161 
162  private:
163 
164  Aws::String m_detectorId;
165  bool m_detectorIdHasBeenSet;
166 
167  Aws::Vector<Aws::String> m_findingIds;
168  bool m_findingIdsHasBeenSet;
169 
170  SortCriteria m_sortCriteria;
171  bool m_sortCriteriaHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace GuardDuty
176 } // namespace Aws
Aws::GuardDuty::Model::GetFindingsRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: GetFindingsRequest.h:53
Aws::GuardDuty::Model::GetFindingsRequest::WithDetectorId
GetFindingsRequest & WithDetectorId(const Aws::String &value)
Definition: GetFindingsRequest.h:71
Aws::GuardDuty::Model::GetFindingsRequest
Definition: GetFindingsRequest.h:24
Aws::GuardDuty::Model::GetFindingsRequest::GetFindingIds
const Aws::Vector< Aws::String > & GetFindingIds() const
Definition: GetFindingsRequest.h:89
Aws::GuardDuty::Model::GetFindingsRequest::FindingIdsHasBeenSet
bool FindingIdsHasBeenSet() const
Definition: GetFindingsRequest.h:94
Aws::GuardDuty::Model::GetFindingsRequest::WithFindingIds
GetFindingsRequest & WithFindingIds(const Aws::Vector< Aws::String > &value)
Definition: GetFindingsRequest.h:109
Aws::GuardDuty::Model::GetFindingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetFindingsRequest.h:32
Aws::GuardDuty::Model::GetFindingsRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: GetFindingsRequest.h:65
Aws::GuardDuty::Model::GetFindingsRequest::SetFindingIds
void SetFindingIds(Aws::Vector< Aws::String > &&value)
Definition: GetFindingsRequest.h:104
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::GetFindingsRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::GuardDuty::Model::GetFindingsRequest::WithSortCriteria
GetFindingsRequest & WithSortCriteria(const SortCriteria &value)
Definition: GetFindingsRequest.h:155
Aws::GuardDuty::Model::GetFindingsRequest::AddFindingIds
GetFindingsRequest & AddFindingIds(Aws::String &&value)
Definition: GetFindingsRequest.h:124
Aws::GuardDuty::Model::GetFindingsRequest::WithDetectorId
GetFindingsRequest & WithDetectorId(const char *value)
Definition: GetFindingsRequest.h:83
Aws::GuardDuty::Model::GetFindingsRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: GetFindingsRequest.h:47
Aws::GuardDuty::Model::GetFindingsRequest::AddFindingIds
GetFindingsRequest & AddFindingIds(const char *value)
Definition: GetFindingsRequest.h:129
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::GetFindingsRequest::SetFindingIds
void SetFindingIds(const Aws::Vector< Aws::String > &value)
Definition: GetFindingsRequest.h:99
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::GetFindingsRequest::GetFindingsRequest
GetFindingsRequest()
Aws::GuardDuty::Model::GetFindingsRequest::SetSortCriteria
void SetSortCriteria(SortCriteria &&value)
Definition: GetFindingsRequest.h:150
Aws::GuardDuty::Model::GetFindingsRequest::AddFindingIds
GetFindingsRequest & AddFindingIds(const Aws::String &value)
Definition: GetFindingsRequest.h:119
AWSString.h
Aws::GuardDuty::Model::GetFindingsRequest::SortCriteriaHasBeenSet
bool SortCriteriaHasBeenSet() const
Definition: GetFindingsRequest.h:140
Aws::GuardDuty::Model::GetFindingsRequest::WithSortCriteria
GetFindingsRequest & WithSortCriteria(SortCriteria &&value)
Definition: GetFindingsRequest.h:160
Aws::GuardDuty::Model::GetFindingsRequest::WithFindingIds
GetFindingsRequest & WithFindingIds(Aws::Vector< Aws::String > &&value)
Definition: GetFindingsRequest.h:114
Aws::GuardDuty::Model::GetFindingsRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: GetFindingsRequest.h:59
Aws::GuardDuty::Model::GetFindingsRequest::WithDetectorId
GetFindingsRequest & WithDetectorId(Aws::String &&value)
Definition: GetFindingsRequest.h:77
Aws::GuardDuty::Model::GetFindingsRequest::GetSortCriteria
const SortCriteria & GetSortCriteria() const
Definition: GetFindingsRequest.h:135
Aws
Definition: AccessManagementClient.h:15
GuardDutyRequest.h
Aws::GuardDuty::Model::GetFindingsRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: GetFindingsRequest.h:41
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::GetFindingsRequest::SetSortCriteria
void SetSortCriteria(const SortCriteria &value)
Definition: GetFindingsRequest.h:145
SortCriteria.h
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::SortCriteria
Definition: SortCriteria.h:34