AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateDetectorRequest.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/guardduty/model/FindingPublishingFrequency.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/guardduty/model/DetectorFeatureConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace GuardDuty
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_GUARDDUTY_API UpdateDetectorRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateDetector"; }
34
35 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
36
37
39
46 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
47 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
48 template<typename DetectorIdT = Aws::String>
49 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
50 template<typename DetectorIdT = Aws::String>
51 UpdateDetectorRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
53
55
58 inline bool GetEnable() const { return m_enable; }
59 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
60 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
61 inline UpdateDetectorRequest& WithEnable(bool value) { SetEnable(value); return *this;}
63
65
69 inline FindingPublishingFrequency GetFindingPublishingFrequency() const { return m_findingPublishingFrequency; }
70 inline bool FindingPublishingFrequencyHasBeenSet() const { return m_findingPublishingFrequencyHasBeenSet; }
71 inline void SetFindingPublishingFrequency(FindingPublishingFrequency value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = value; }
74
76
79 inline const Aws::Vector<DetectorFeatureConfiguration>& GetFeatures() const { return m_features; }
80 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
81 template<typename FeaturesT = Aws::Vector<DetectorFeatureConfiguration>>
82 void SetFeatures(FeaturesT&& value) { m_featuresHasBeenSet = true; m_features = std::forward<FeaturesT>(value); }
83 template<typename FeaturesT = Aws::Vector<DetectorFeatureConfiguration>>
84 UpdateDetectorRequest& WithFeatures(FeaturesT&& value) { SetFeatures(std::forward<FeaturesT>(value)); return *this;}
85 template<typename FeaturesT = DetectorFeatureConfiguration>
86 UpdateDetectorRequest& AddFeatures(FeaturesT&& value) { m_featuresHasBeenSet = true; m_features.emplace_back(std::forward<FeaturesT>(value)); return *this; }
88 private:
89
90 Aws::String m_detectorId;
91 bool m_detectorIdHasBeenSet = false;
92
93 bool m_enable{false};
94 bool m_enableHasBeenSet = false;
95
97 bool m_findingPublishingFrequencyHasBeenSet = false;
98
100 bool m_featuresHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace GuardDuty
105} // 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