AWS SDK for C++  1.9.103
AWS SDK for C++
UpdateDetectorRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GuardDuty
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateDetector"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
41 
45  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
46 
50  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
51 
55  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
56 
60  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
61 
65  inline UpdateDetectorRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
66 
70  inline UpdateDetectorRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
71 
75  inline UpdateDetectorRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
76 
77 
81  inline bool GetEnable() const{ return m_enable; }
82 
86  inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
87 
91  inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
92 
96  inline UpdateDetectorRequest& WithEnable(bool value) { SetEnable(value); return *this;}
97 
98 
103  inline const FindingPublishingFrequency& GetFindingPublishingFrequency() const{ return m_findingPublishingFrequency; }
104 
109  inline bool FindingPublishingFrequencyHasBeenSet() const { return m_findingPublishingFrequencyHasBeenSet; }
110 
115  inline void SetFindingPublishingFrequency(const FindingPublishingFrequency& value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = value; }
116 
121  inline void SetFindingPublishingFrequency(FindingPublishingFrequency&& value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = std::move(value); }
122 
127  inline UpdateDetectorRequest& WithFindingPublishingFrequency(const FindingPublishingFrequency& value) { SetFindingPublishingFrequency(value); return *this;}
128 
133  inline UpdateDetectorRequest& WithFindingPublishingFrequency(FindingPublishingFrequency&& value) { SetFindingPublishingFrequency(std::move(value)); return *this;}
134 
135 
139  inline const DataSourceConfigurations& GetDataSources() const{ return m_dataSources; }
140 
144  inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
145 
149  inline void SetDataSources(const DataSourceConfigurations& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
150 
154  inline void SetDataSources(DataSourceConfigurations&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); }
155 
159  inline UpdateDetectorRequest& WithDataSources(const DataSourceConfigurations& value) { SetDataSources(value); return *this;}
160 
164  inline UpdateDetectorRequest& WithDataSources(DataSourceConfigurations&& value) { SetDataSources(std::move(value)); return *this;}
165 
166  private:
167 
168  Aws::String m_detectorId;
169  bool m_detectorIdHasBeenSet;
170 
171  bool m_enable;
172  bool m_enableHasBeenSet;
173 
174  FindingPublishingFrequency m_findingPublishingFrequency;
175  bool m_findingPublishingFrequencyHasBeenSet;
176 
177  DataSourceConfigurations m_dataSources;
178  bool m_dataSourcesHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace GuardDuty
183 } // namespace Aws
Aws::GuardDuty::Model::UpdateDetectorRequest
Definition: UpdateDetectorRequest.h:24
Aws::GuardDuty::Model::UpdateDetectorRequest::WithEnable
UpdateDetectorRequest & WithEnable(bool value)
Definition: UpdateDetectorRequest.h:96
Aws::GuardDuty::Model::UpdateDetectorRequest::SetFindingPublishingFrequency
void SetFindingPublishingFrequency(FindingPublishingFrequency &&value)
Definition: UpdateDetectorRequest.h:121
Aws::GuardDuty::Model::UpdateDetectorRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: UpdateDetectorRequest.h:45
Aws::GuardDuty::Model::UpdateDetectorRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: UpdateDetectorRequest.h:50
Aws::GuardDuty::Model::UpdateDetectorRequest::DataSourcesHasBeenSet
bool DataSourcesHasBeenSet() const
Definition: UpdateDetectorRequest.h:144
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::UpdateDetectorRequest::UpdateDetectorRequest
UpdateDetectorRequest()
Aws::GuardDuty::Model::UpdateDetectorRequest::GetEnable
bool GetEnable() const
Definition: UpdateDetectorRequest.h:81
Aws::GuardDuty::Model::UpdateDetectorRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: UpdateDetectorRequest.h:60
Aws::GuardDuty::Model::UpdateDetectorRequest::WithDetectorId
UpdateDetectorRequest & WithDetectorId(const char *value)
Definition: UpdateDetectorRequest.h:75
Aws::GuardDuty::Model::UpdateDetectorRequest::SetDataSources
void SetDataSources(DataSourceConfigurations &&value)
Definition: UpdateDetectorRequest.h:154
Aws::GuardDuty::Model::UpdateDetectorRequest::WithDetectorId
UpdateDetectorRequest & WithDetectorId(Aws::String &&value)
Definition: UpdateDetectorRequest.h:70
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
FindingPublishingFrequency.h
Aws::GuardDuty::Model::UpdateDetectorRequest::SetEnable
void SetEnable(bool value)
Definition: UpdateDetectorRequest.h:91
AWSString.h
Aws::GuardDuty::Model::UpdateDetectorRequest::WithDataSources
UpdateDetectorRequest & WithDataSources(const DataSourceConfigurations &value)
Definition: UpdateDetectorRequest.h:159
Aws::GuardDuty::Model::UpdateDetectorRequest::GetFindingPublishingFrequency
const FindingPublishingFrequency & GetFindingPublishingFrequency() const
Definition: UpdateDetectorRequest.h:103
DataSourceConfigurations.h
Aws::GuardDuty::Model::UpdateDetectorRequest::WithFindingPublishingFrequency
UpdateDetectorRequest & WithFindingPublishingFrequency(const FindingPublishingFrequency &value)
Definition: UpdateDetectorRequest.h:127
Aws::GuardDuty::Model::UpdateDetectorRequest::WithDataSources
UpdateDetectorRequest & WithDataSources(DataSourceConfigurations &&value)
Definition: UpdateDetectorRequest.h:164
Aws::GuardDuty::Model::UpdateDetectorRequest::EnableHasBeenSet
bool EnableHasBeenSet() const
Definition: UpdateDetectorRequest.h:86
Aws::GuardDuty::Model::UpdateDetectorRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: UpdateDetectorRequest.h:55
Aws::GuardDuty::Model::UpdateDetectorRequest::SetDataSources
void SetDataSources(const DataSourceConfigurations &value)
Definition: UpdateDetectorRequest.h:149
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::UpdateDetectorRequest::SetFindingPublishingFrequency
void SetFindingPublishingFrequency(const FindingPublishingFrequency &value)
Definition: UpdateDetectorRequest.h:115
GuardDutyRequest.h
Aws::GuardDuty::Model::FindingPublishingFrequency
FindingPublishingFrequency
Definition: FindingPublishingFrequency.h:17
Aws::GuardDuty::Model::UpdateDetectorRequest::WithFindingPublishingFrequency
UpdateDetectorRequest & WithFindingPublishingFrequency(FindingPublishingFrequency &&value)
Definition: UpdateDetectorRequest.h:133
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::UpdateDetectorRequest::GetDataSources
const DataSourceConfigurations & GetDataSources() const
Definition: UpdateDetectorRequest.h:139
Aws::GuardDuty::Model::UpdateDetectorRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: UpdateDetectorRequest.h:40
Aws::GuardDuty::Model::UpdateDetectorRequest::WithDetectorId
UpdateDetectorRequest & WithDetectorId(const Aws::String &value)
Definition: UpdateDetectorRequest.h:65
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::UpdateDetectorRequest::FindingPublishingFrequencyHasBeenSet
bool FindingPublishingFrequencyHasBeenSet() const
Definition: UpdateDetectorRequest.h:109
Aws::GuardDuty::Model::DataSourceConfigurations
Definition: DataSourceConfigurations.h:33
Aws::GuardDuty::Model::UpdateDetectorRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDetectorRequest.h:32
Aws::GuardDuty::Model::UpdateDetectorRequest::SerializePayload
Aws::String SerializePayload() const override