AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
ArchiveFindingsRequest.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
12#include <utility>
13
14namespace Aws {
15namespace GuardDuty {
16namespace Model {
17
21 public:
22 AWS_GUARDDUTY_API ArchiveFindingsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ArchiveFindings"; }
29
30 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
31
33
40 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
41 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
42 template <typename DetectorIdT = Aws::String>
43 void SetDetectorId(DetectorIdT&& value) {
44 m_detectorIdHasBeenSet = true;
45 m_detectorId = std::forward<DetectorIdT>(value);
46 }
47 template <typename DetectorIdT = Aws::String>
48 ArchiveFindingsRequest& WithDetectorId(DetectorIdT&& value) {
49 SetDetectorId(std::forward<DetectorIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetFindingIds() const { return m_findingIds; }
59 inline bool FindingIdsHasBeenSet() const { return m_findingIdsHasBeenSet; }
60 template <typename FindingIdsT = Aws::Vector<Aws::String>>
61 void SetFindingIds(FindingIdsT&& value) {
62 m_findingIdsHasBeenSet = true;
63 m_findingIds = std::forward<FindingIdsT>(value);
64 }
65 template <typename FindingIdsT = Aws::Vector<Aws::String>>
66 ArchiveFindingsRequest& WithFindingIds(FindingIdsT&& value) {
67 SetFindingIds(std::forward<FindingIdsT>(value));
68 return *this;
69 }
70 template <typename FindingIdsT = Aws::String>
71 ArchiveFindingsRequest& AddFindingIds(FindingIdsT&& value) {
72 m_findingIdsHasBeenSet = true;
73 m_findingIds.emplace_back(std::forward<FindingIdsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_detectorId;
79
80 Aws::Vector<Aws::String> m_findingIds;
81 bool m_detectorIdHasBeenSet = false;
82 bool m_findingIdsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace GuardDuty
87} // namespace Aws
AWS_GUARDDUTY_API ArchiveFindingsRequest()=default
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetFindingIds() const
ArchiveFindingsRequest & WithDetectorId(DetectorIdT &&value)
ArchiveFindingsRequest & WithFindingIds(FindingIdsT &&value)
ArchiveFindingsRequest & AddFindingIds(FindingIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector