AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
42 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
43 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
44 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
45 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
46 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
47 inline UpdateDetectorRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
48 inline UpdateDetectorRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
49 inline UpdateDetectorRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
51
53
56 inline bool GetEnable() const{ return m_enable; }
57 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
58 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
59 inline UpdateDetectorRequest& WithEnable(bool value) { SetEnable(value); return *this;}
61
63
67 inline const FindingPublishingFrequency& GetFindingPublishingFrequency() const{ return m_findingPublishingFrequency; }
68 inline bool FindingPublishingFrequencyHasBeenSet() const { return m_findingPublishingFrequencyHasBeenSet; }
69 inline void SetFindingPublishingFrequency(const FindingPublishingFrequency& value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = value; }
70 inline void SetFindingPublishingFrequency(FindingPublishingFrequency&& value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = std::move(value); }
74
76
79 inline const Aws::Vector<DetectorFeatureConfiguration>& GetFeatures() const{ return m_features; }
80 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
81 inline void SetFeatures(const Aws::Vector<DetectorFeatureConfiguration>& value) { m_featuresHasBeenSet = true; m_features = value; }
82 inline void SetFeatures(Aws::Vector<DetectorFeatureConfiguration>&& value) { m_featuresHasBeenSet = true; m_features = std::move(value); }
85 inline UpdateDetectorRequest& AddFeatures(const DetectorFeatureConfiguration& value) { m_featuresHasBeenSet = true; m_features.push_back(value); return *this; }
86 inline UpdateDetectorRequest& AddFeatures(DetectorFeatureConfiguration&& value) { m_featuresHasBeenSet = true; m_features.push_back(std::move(value)); return *this; }
88 private:
89
90 Aws::String m_detectorId;
91 bool m_detectorIdHasBeenSet = false;
92
93 bool m_enable;
94 bool m_enableHasBeenSet = false;
95
96 FindingPublishingFrequency m_findingPublishingFrequency;
97 bool m_findingPublishingFrequencyHasBeenSet = false;
98
100 bool m_featuresHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace GuardDuty
105} // namespace Aws
UpdateDetectorRequest & WithEnable(bool value)
const Aws::Vector< DetectorFeatureConfiguration > & GetFeatures() const
UpdateDetectorRequest & WithFindingPublishingFrequency(const FindingPublishingFrequency &value)
virtual const char * GetServiceRequestName() const override
UpdateDetectorRequest & AddFeatures(const DetectorFeatureConfiguration &value)
void SetFindingPublishingFrequency(const FindingPublishingFrequency &value)
UpdateDetectorRequest & WithDetectorId(Aws::String &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
UpdateDetectorRequest & WithDetectorId(const Aws::String &value)
UpdateDetectorRequest & WithFeatures(const Aws::Vector< DetectorFeatureConfiguration > &value)
UpdateDetectorRequest & WithDetectorId(const char *value)
void SetFeatures(const Aws::Vector< DetectorFeatureConfiguration > &value)
void SetFeatures(Aws::Vector< DetectorFeatureConfiguration > &&value)
UpdateDetectorRequest & WithFindingPublishingFrequency(FindingPublishingFrequency &&value)
UpdateDetectorRequest & AddFeatures(DetectorFeatureConfiguration &&value)
UpdateDetectorRequest & WithFeatures(Aws::Vector< DetectorFeatureConfiguration > &&value)
void SetFindingPublishingFrequency(FindingPublishingFrequency &&value)
const FindingPublishingFrequency & GetFindingPublishingFrequency() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector