AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateMalwareScanSettingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/EbsSnapshotPreservation.h>
11#include <aws/guardduty/model/ScanResourceCriteria.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GuardDuty {
17namespace Model {
18
22 public:
23 AWS_GUARDDUTY_API UpdateMalwareScanSettingsRequest() = 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 "UpdateMalwareScanSettings"; }
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>
50 SetDetectorId(std::forward<DetectorIdT>(value));
51 return *this;
52 }
54
56
60 inline const ScanResourceCriteria& GetScanResourceCriteria() const { return m_scanResourceCriteria; }
61 inline bool ScanResourceCriteriaHasBeenSet() const { return m_scanResourceCriteriaHasBeenSet; }
62 template <typename ScanResourceCriteriaT = ScanResourceCriteria>
63 void SetScanResourceCriteria(ScanResourceCriteriaT&& value) {
64 m_scanResourceCriteriaHasBeenSet = true;
65 m_scanResourceCriteria = std::forward<ScanResourceCriteriaT>(value);
66 }
67 template <typename ScanResourceCriteriaT = ScanResourceCriteria>
69 SetScanResourceCriteria(std::forward<ScanResourceCriteriaT>(value));
70 return *this;
71 }
73
75
78 inline EbsSnapshotPreservation GetEbsSnapshotPreservation() const { return m_ebsSnapshotPreservation; }
79 inline bool EbsSnapshotPreservationHasBeenSet() const { return m_ebsSnapshotPreservationHasBeenSet; }
81 m_ebsSnapshotPreservationHasBeenSet = true;
82 m_ebsSnapshotPreservation = value;
83 }
86 return *this;
87 }
89 private:
90 Aws::String m_detectorId;
91
92 ScanResourceCriteria m_scanResourceCriteria;
93
95 bool m_detectorIdHasBeenSet = false;
96 bool m_scanResourceCriteriaHasBeenSet = false;
97 bool m_ebsSnapshotPreservationHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace GuardDuty
102} // namespace Aws
AWS_GUARDDUTY_API UpdateMalwareScanSettingsRequest()=default
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
UpdateMalwareScanSettingsRequest & WithScanResourceCriteria(ScanResourceCriteriaT &&value)
UpdateMalwareScanSettingsRequest & WithDetectorId(DetectorIdT &&value)
UpdateMalwareScanSettingsRequest & WithEbsSnapshotPreservation(EbsSnapshotPreservation value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String