AWS SDK for C++  1.9.106
AWS SDK for C++
CreateDetectorRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace GuardDuty
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateDetector"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline bool GetEnable() const{ return m_enable; }
43 
47  inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
48 
52  inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
53 
57  inline CreateDetectorRequest& WithEnable(bool value) { SetEnable(value); return *this;}
58 
59 
63  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
64 
68  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
69 
73  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
74 
78  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
79 
83  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
84 
88  inline CreateDetectorRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
89 
93  inline CreateDetectorRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
94 
98  inline CreateDetectorRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
99 
100 
104  inline const FindingPublishingFrequency& GetFindingPublishingFrequency() const{ return m_findingPublishingFrequency; }
105 
109  inline bool FindingPublishingFrequencyHasBeenSet() const { return m_findingPublishingFrequencyHasBeenSet; }
110 
114  inline void SetFindingPublishingFrequency(const FindingPublishingFrequency& value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = value; }
115 
119  inline void SetFindingPublishingFrequency(FindingPublishingFrequency&& value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = std::move(value); }
120 
124  inline CreateDetectorRequest& WithFindingPublishingFrequency(const FindingPublishingFrequency& value) { SetFindingPublishingFrequency(value); return *this;}
125 
129  inline CreateDetectorRequest& WithFindingPublishingFrequency(FindingPublishingFrequency&& value) { SetFindingPublishingFrequency(std::move(value)); return *this;}
130 
131 
135  inline const DataSourceConfigurations& GetDataSources() const{ return m_dataSources; }
136 
140  inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
141 
145  inline void SetDataSources(const DataSourceConfigurations& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
146 
150  inline void SetDataSources(DataSourceConfigurations&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); }
151 
155  inline CreateDetectorRequest& WithDataSources(const DataSourceConfigurations& value) { SetDataSources(value); return *this;}
156 
160  inline CreateDetectorRequest& WithDataSources(DataSourceConfigurations&& value) { SetDataSources(std::move(value)); return *this;}
161 
162 
166  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
167 
171  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
172 
176  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
177 
181  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
182 
186  inline CreateDetectorRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
187 
191  inline CreateDetectorRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
192 
196  inline CreateDetectorRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
197 
201  inline CreateDetectorRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
202 
206  inline CreateDetectorRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
207 
211  inline CreateDetectorRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
212 
216  inline CreateDetectorRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
217 
221  inline CreateDetectorRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
222 
226  inline CreateDetectorRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
227 
228  private:
229 
230  bool m_enable;
231  bool m_enableHasBeenSet;
232 
233  Aws::String m_clientToken;
234  bool m_clientTokenHasBeenSet;
235 
236  FindingPublishingFrequency m_findingPublishingFrequency;
237  bool m_findingPublishingFrequencyHasBeenSet;
238 
239  DataSourceConfigurations m_dataSources;
240  bool m_dataSourcesHasBeenSet;
241 
243  bool m_tagsHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace GuardDuty
248 } // namespace Aws
Aws::GuardDuty::Model::CreateDetectorRequest::CreateDetectorRequest
CreateDetectorRequest()
Aws::GuardDuty::Model::CreateDetectorRequest::WithClientToken
CreateDetectorRequest & WithClientToken(Aws::String &&value)
Definition: CreateDetectorRequest.h:93
Aws::GuardDuty::Model::CreateDetectorRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateDetectorRequest.h:63
Aws::GuardDuty::Model::CreateDetectorRequest::SetFindingPublishingFrequency
void SetFindingPublishingFrequency(const FindingPublishingFrequency &value)
Definition: CreateDetectorRequest.h:114
Aws::GuardDuty::Model::CreateDetectorRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateDetectorRequest.h:181
Aws::GuardDuty::Model::CreateDetectorRequest::AddTags
CreateDetectorRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateDetectorRequest.h:211
Aws::GuardDuty::Model::CreateDetectorRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateDetectorRequest.h:166
Aws::GuardDuty::Model::CreateDetectorRequest::WithDataSources
CreateDetectorRequest & WithDataSources(const DataSourceConfigurations &value)
Definition: CreateDetectorRequest.h:155
Aws::GuardDuty::Model::CreateDetectorRequest::WithFindingPublishingFrequency
CreateDetectorRequest & WithFindingPublishingFrequency(const FindingPublishingFrequency &value)
Definition: CreateDetectorRequest.h:124
Aws::GuardDuty::Model::CreateDetectorRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateDetectorRequest.h:68
Aws::GuardDuty::Model::CreateDetectorRequest::EnableHasBeenSet
bool EnableHasBeenSet() const
Definition: CreateDetectorRequest.h:47
Aws::GuardDuty::Model::CreateDetectorRequest::SetDataSources
void SetDataSources(const DataSourceConfigurations &value)
Definition: CreateDetectorRequest.h:145
Aws::GuardDuty::Model::CreateDetectorRequest::WithTags
CreateDetectorRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateDetectorRequest.h:186
Aws::GuardDuty::Model::CreateDetectorRequest::AddTags
CreateDetectorRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateDetectorRequest.h:201
Aws::GuardDuty::Model::CreateDetectorRequest::AddTags
CreateDetectorRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateDetectorRequest.h:216
Aws::GuardDuty::Model::CreateDetectorRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateDetectorRequest.h:78
Aws::GuardDuty::Model::CreateDetectorRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateDetectorRequest.h:83
Aws::GuardDuty::Model::CreateDetectorRequest::WithFindingPublishingFrequency
CreateDetectorRequest & WithFindingPublishingFrequency(FindingPublishingFrequency &&value)
Definition: CreateDetectorRequest.h:129
Aws::GuardDuty::Model::CreateDetectorRequest::SerializePayload
Aws::String SerializePayload() const override
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::CreateDetectorRequest::SetDataSources
void SetDataSources(DataSourceConfigurations &&value)
Definition: CreateDetectorRequest.h:150
Aws::GuardDuty::Model::CreateDetectorRequest::GetDataSources
const DataSourceConfigurations & GetDataSources() const
Definition: CreateDetectorRequest.h:135
Aws::GuardDuty::Model::CreateDetectorRequest::WithDataSources
CreateDetectorRequest & WithDataSources(DataSourceConfigurations &&value)
Definition: CreateDetectorRequest.h:160
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
FindingPublishingFrequency.h
Aws::GuardDuty::Model::CreateDetectorRequest::SetEnable
void SetEnable(bool value)
Definition: CreateDetectorRequest.h:52
Aws::GuardDuty::Model::CreateDetectorRequest
Definition: CreateDetectorRequest.h:26
Aws::GuardDuty::Model::CreateDetectorRequest::WithClientToken
CreateDetectorRequest & WithClientToken(const Aws::String &value)
Definition: CreateDetectorRequest.h:88
Aws::GuardDuty::Model::CreateDetectorRequest::DataSourcesHasBeenSet
bool DataSourcesHasBeenSet() const
Definition: CreateDetectorRequest.h:140
Aws::GuardDuty::Model::CreateDetectorRequest::WithTags
CreateDetectorRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateDetectorRequest.h:191
AWSString.h
DataSourceConfigurations.h
Aws::GuardDuty::Model::CreateDetectorRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateDetectorRequest.h:73
Aws::GuardDuty::Model::CreateDetectorRequest::GetFindingPublishingFrequency
const FindingPublishingFrequency & GetFindingPublishingFrequency() const
Definition: CreateDetectorRequest.h:104
Aws::GuardDuty::Model::CreateDetectorRequest::AddTags
CreateDetectorRequest & AddTags(const char *key, const char *value)
Definition: CreateDetectorRequest.h:226
Aws::GuardDuty::Model::CreateDetectorRequest::AddTags
CreateDetectorRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateDetectorRequest.h:221
Aws::GuardDuty::Model::CreateDetectorRequest::AddTags
CreateDetectorRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateDetectorRequest.h:196
Aws::GuardDuty::Model::CreateDetectorRequest::WithEnable
CreateDetectorRequest & WithEnable(bool value)
Definition: CreateDetectorRequest.h:57
Aws::GuardDuty::Model::CreateDetectorRequest::FindingPublishingFrequencyHasBeenSet
bool FindingPublishingFrequencyHasBeenSet() const
Definition: CreateDetectorRequest.h:109
Aws::GuardDuty::Model::CreateDetectorRequest::GetEnable
bool GetEnable() const
Definition: CreateDetectorRequest.h:42
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::CreateDetectorRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDetectorRequest.h:171
GuardDutyRequest.h
Aws::GuardDuty::Model::FindingPublishingFrequency
FindingPublishingFrequency
Definition: FindingPublishingFrequency.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::CreateDetectorRequest::WithClientToken
CreateDetectorRequest & WithClientToken(const char *value)
Definition: CreateDetectorRequest.h:98
Aws::GuardDuty::Model::CreateDetectorRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDetectorRequest.h:34
Aws::GuardDuty::Model::CreateDetectorRequest::AddTags
CreateDetectorRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateDetectorRequest.h:206
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
UUID.h
Aws::GuardDuty::Model::DataSourceConfigurations
Definition: DataSourceConfigurations.h:33
AWSMap.h
Aws::GuardDuty::Model::CreateDetectorRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateDetectorRequest.h:176
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::GuardDuty::Model::CreateDetectorRequest::SetFindingPublishingFrequency
void SetFindingPublishingFrequency(FindingPublishingFrequency &&value)
Definition: CreateDetectorRequest.h:119