AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetFindingsRequest.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/SortCriteria.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GuardDuty
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GUARDDUTY_API GetFindingsRequest();
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_GUARDDUTY_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
43 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
44 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
45 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
46 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
47 inline GetFindingsRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
48 inline GetFindingsRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
49 inline GetFindingsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
51
53
56 inline const Aws::Vector<Aws::String>& GetFindingIds() const{ return m_findingIds; }
57 inline bool FindingIdsHasBeenSet() const { return m_findingIdsHasBeenSet; }
58 inline void SetFindingIds(const Aws::Vector<Aws::String>& value) { m_findingIdsHasBeenSet = true; m_findingIds = value; }
59 inline void SetFindingIds(Aws::Vector<Aws::String>&& value) { m_findingIdsHasBeenSet = true; m_findingIds = std::move(value); }
60 inline GetFindingsRequest& WithFindingIds(const Aws::Vector<Aws::String>& value) { SetFindingIds(value); return *this;}
61 inline GetFindingsRequest& WithFindingIds(Aws::Vector<Aws::String>&& value) { SetFindingIds(std::move(value)); return *this;}
62 inline GetFindingsRequest& AddFindingIds(const Aws::String& value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(value); return *this; }
63 inline GetFindingsRequest& AddFindingIds(Aws::String&& value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(std::move(value)); return *this; }
64 inline GetFindingsRequest& AddFindingIds(const char* value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(value); return *this; }
66
68
71 inline const SortCriteria& GetSortCriteria() const{ return m_sortCriteria; }
72 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
73 inline void SetSortCriteria(const SortCriteria& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
74 inline void SetSortCriteria(SortCriteria&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
75 inline GetFindingsRequest& WithSortCriteria(const SortCriteria& value) { SetSortCriteria(value); return *this;}
76 inline GetFindingsRequest& WithSortCriteria(SortCriteria&& value) { SetSortCriteria(std::move(value)); return *this;}
78 private:
79
80 Aws::String m_detectorId;
81 bool m_detectorIdHasBeenSet = false;
82
83 Aws::Vector<Aws::String> m_findingIds;
84 bool m_findingIdsHasBeenSet = false;
85
86 SortCriteria m_sortCriteria;
87 bool m_sortCriteriaHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace GuardDuty
92} // namespace Aws
GetFindingsRequest & WithFindingIds(const Aws::Vector< Aws::String > &value)
GetFindingsRequest & WithFindingIds(Aws::Vector< Aws::String > &&value)
GetFindingsRequest & WithDetectorId(const char *value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
GetFindingsRequest & WithSortCriteria(SortCriteria &&value)
void SetFindingIds(const Aws::Vector< Aws::String > &value)
void SetSortCriteria(const SortCriteria &value)
void SetFindingIds(Aws::Vector< Aws::String > &&value)
GetFindingsRequest & WithDetectorId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
GetFindingsRequest & AddFindingIds(Aws::String &&value)
GetFindingsRequest & AddFindingIds(const Aws::String &value)
GetFindingsRequest & WithDetectorId(const Aws::String &value)
GetFindingsRequest & AddFindingIds(const char *value)
const SortCriteria & GetSortCriteria() const
void SetDetectorId(const Aws::String &value)
GetFindingsRequest & WithSortCriteria(const SortCriteria &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