AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ArchiveFindingsRequest.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 <utility>
12
13namespace Aws
14{
15namespace GuardDuty
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_GUARDDUTY_API ArchiveFindingsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ArchiveFindings"; }
32
33 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
34
35
37
44 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
45 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
46 template<typename DetectorIdT = Aws::String>
47 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
48 template<typename DetectorIdT = Aws::String>
49 ArchiveFindingsRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(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 template<typename FindingIdsT = Aws::Vector<Aws::String>>
59 void SetFindingIds(FindingIdsT&& value) { m_findingIdsHasBeenSet = true; m_findingIds = std::forward<FindingIdsT>(value); }
60 template<typename FindingIdsT = Aws::Vector<Aws::String>>
61 ArchiveFindingsRequest& WithFindingIds(FindingIdsT&& value) { SetFindingIds(std::forward<FindingIdsT>(value)); return *this;}
62 template<typename FindingIdsT = Aws::String>
63 ArchiveFindingsRequest& AddFindingIds(FindingIdsT&& value) { m_findingIdsHasBeenSet = true; m_findingIds.emplace_back(std::forward<FindingIdsT>(value)); return *this; }
65 private:
66
67 Aws::String m_detectorId;
68 bool m_detectorIdHasBeenSet = false;
69
70 Aws::Vector<Aws::String> m_findingIds;
71 bool m_findingIdsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace GuardDuty
76} // 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