AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
UpdateDetectorRequest.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#include <aws/guardduty/model/DetectorFeatureConfiguration.h>
12#include <aws/guardduty/model/FindingPublishingFrequency.h>
13
14#include <utility>
15
16namespace Aws {
17namespace GuardDuty {
18namespace Model {
19
23 public:
24 AWS_GUARDDUTY_API UpdateDetectorRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateDetector"; }
31
32 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
33
35
42 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
43 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
44 template <typename DetectorIdT = Aws::String>
45 void SetDetectorId(DetectorIdT&& value) {
46 m_detectorIdHasBeenSet = true;
47 m_detectorId = std::forward<DetectorIdT>(value);
48 }
49 template <typename DetectorIdT = Aws::String>
50 UpdateDetectorRequest& WithDetectorId(DetectorIdT&& value) {
51 SetDetectorId(std::forward<DetectorIdT>(value));
52 return *this;
53 }
55
57
60 inline bool GetEnable() const { return m_enable; }
61 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
62 inline void SetEnable(bool value) {
63 m_enableHasBeenSet = true;
64 m_enable = value;
65 }
66 inline UpdateDetectorRequest& WithEnable(bool value) {
67 SetEnable(value);
68 return *this;
69 }
71
73
77 inline FindingPublishingFrequency GetFindingPublishingFrequency() const { return m_findingPublishingFrequency; }
78 inline bool FindingPublishingFrequencyHasBeenSet() const { return m_findingPublishingFrequencyHasBeenSet; }
80 m_findingPublishingFrequencyHasBeenSet = true;
81 m_findingPublishingFrequency = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::Vector<DetectorFeatureConfiguration>& GetFeatures() const { return m_features; }
94 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
95 template <typename FeaturesT = Aws::Vector<DetectorFeatureConfiguration>>
96 void SetFeatures(FeaturesT&& value) {
97 m_featuresHasBeenSet = true;
98 m_features = std::forward<FeaturesT>(value);
99 }
100 template <typename FeaturesT = Aws::Vector<DetectorFeatureConfiguration>>
102 SetFeatures(std::forward<FeaturesT>(value));
103 return *this;
104 }
105 template <typename FeaturesT = DetectorFeatureConfiguration>
106 UpdateDetectorRequest& AddFeatures(FeaturesT&& value) {
107 m_featuresHasBeenSet = true;
108 m_features.emplace_back(std::forward<FeaturesT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_detectorId;
114
115 bool m_enable{false};
116
118
120 bool m_detectorIdHasBeenSet = false;
121 bool m_enableHasBeenSet = false;
122 bool m_findingPublishingFrequencyHasBeenSet = false;
123 bool m_featuresHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace GuardDuty
128} // namespace Aws
void SetFindingPublishingFrequency(FindingPublishingFrequency value)
UpdateDetectorRequest & WithEnable(bool value)
const Aws::Vector< DetectorFeatureConfiguration > & GetFeatures() const
virtual const char * GetServiceRequestName() const override
UpdateDetectorRequest & AddFeatures(FeaturesT &&value)
UpdateDetectorRequest & WithDetectorId(DetectorIdT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
FindingPublishingFrequency GetFindingPublishingFrequency() const
AWS_GUARDDUTY_API UpdateDetectorRequest()=default
UpdateDetectorRequest & WithFindingPublishingFrequency(FindingPublishingFrequency value)
UpdateDetectorRequest & WithFeatures(FeaturesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector