AWS SDK for C++  1.8.153
AWS SDK for C++
GetDetectorResult.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25 } // namespace Json
26 } // namespace Utils
27 namespace GuardDuty
28 {
29 namespace Model
30 {
32  {
33  public:
37 
38 
42  inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
43 
47  inline void SetCreatedAt(const Aws::String& value) { m_createdAt = value; }
48 
52  inline void SetCreatedAt(Aws::String&& value) { m_createdAt = std::move(value); }
53 
57  inline void SetCreatedAt(const char* value) { m_createdAt.assign(value); }
58 
62  inline GetDetectorResult& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
63 
67  inline GetDetectorResult& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
68 
72  inline GetDetectorResult& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
73 
74 
78  inline const FindingPublishingFrequency& GetFindingPublishingFrequency() const{ return m_findingPublishingFrequency; }
79 
83  inline void SetFindingPublishingFrequency(const FindingPublishingFrequency& value) { m_findingPublishingFrequency = value; }
84 
88  inline void SetFindingPublishingFrequency(FindingPublishingFrequency&& value) { m_findingPublishingFrequency = std::move(value); }
89 
93  inline GetDetectorResult& WithFindingPublishingFrequency(const FindingPublishingFrequency& value) { SetFindingPublishingFrequency(value); return *this;}
94 
98  inline GetDetectorResult& WithFindingPublishingFrequency(FindingPublishingFrequency&& value) { SetFindingPublishingFrequency(std::move(value)); return *this;}
99 
100 
104  inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
105 
109  inline void SetServiceRole(const Aws::String& value) { m_serviceRole = value; }
110 
114  inline void SetServiceRole(Aws::String&& value) { m_serviceRole = std::move(value); }
115 
119  inline void SetServiceRole(const char* value) { m_serviceRole.assign(value); }
120 
124  inline GetDetectorResult& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
125 
129  inline GetDetectorResult& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
130 
134  inline GetDetectorResult& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
135 
136 
140  inline const DetectorStatus& GetStatus() const{ return m_status; }
141 
145  inline void SetStatus(const DetectorStatus& value) { m_status = value; }
146 
150  inline void SetStatus(DetectorStatus&& value) { m_status = std::move(value); }
151 
155  inline GetDetectorResult& WithStatus(const DetectorStatus& value) { SetStatus(value); return *this;}
156 
160  inline GetDetectorResult& WithStatus(DetectorStatus&& value) { SetStatus(std::move(value)); return *this;}
161 
162 
166  inline const Aws::String& GetUpdatedAt() const{ return m_updatedAt; }
167 
171  inline void SetUpdatedAt(const Aws::String& value) { m_updatedAt = value; }
172 
176  inline void SetUpdatedAt(Aws::String&& value) { m_updatedAt = std::move(value); }
177 
181  inline void SetUpdatedAt(const char* value) { m_updatedAt.assign(value); }
182 
186  inline GetDetectorResult& WithUpdatedAt(const Aws::String& value) { SetUpdatedAt(value); return *this;}
187 
191  inline GetDetectorResult& WithUpdatedAt(Aws::String&& value) { SetUpdatedAt(std::move(value)); return *this;}
192 
196  inline GetDetectorResult& WithUpdatedAt(const char* value) { SetUpdatedAt(value); return *this;}
197 
198 
202  inline const DataSourceConfigurationsResult& GetDataSources() const{ return m_dataSources; }
203 
207  inline void SetDataSources(const DataSourceConfigurationsResult& value) { m_dataSources = value; }
208 
212  inline void SetDataSources(DataSourceConfigurationsResult&& value) { m_dataSources = std::move(value); }
213 
217  inline GetDetectorResult& WithDataSources(const DataSourceConfigurationsResult& value) { SetDataSources(value); return *this;}
218 
222  inline GetDetectorResult& WithDataSources(DataSourceConfigurationsResult&& value) { SetDataSources(std::move(value)); return *this;}
223 
224 
228  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
229 
233  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
234 
238  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
239 
243  inline GetDetectorResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
244 
248  inline GetDetectorResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
249 
253  inline GetDetectorResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
254 
258  inline GetDetectorResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
259 
263  inline GetDetectorResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
264 
268  inline GetDetectorResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
269 
273  inline GetDetectorResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
274 
278  inline GetDetectorResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
279 
283  inline GetDetectorResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
284 
285  private:
286 
287  Aws::String m_createdAt;
288 
289  FindingPublishingFrequency m_findingPublishingFrequency;
290 
291  Aws::String m_serviceRole;
292 
293  DetectorStatus m_status;
294 
295  Aws::String m_updatedAt;
296 
297  DataSourceConfigurationsResult m_dataSources;
298 
300  };
301 
302 } // namespace Model
303 } // namespace GuardDuty
304 } // namespace Aws
Aws::GuardDuty::Model::GetDetectorResult::WithDataSources
GetDetectorResult & WithDataSources(const DataSourceConfigurationsResult &value)
Definition: GetDetectorResult.h:217
Aws::GuardDuty::Model::GetDetectorResult::WithStatus
GetDetectorResult & WithStatus(const DetectorStatus &value)
Definition: GetDetectorResult.h:155
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GuardDuty::Model::GetDetectorResult::AddTags
GetDetectorResult & AddTags(const Aws::String &key, Aws::String &&value)
Definition: GetDetectorResult.h:263
Aws::GuardDuty::Model::GetDetectorResult::WithUpdatedAt
GetDetectorResult & WithUpdatedAt(Aws::String &&value)
Definition: GetDetectorResult.h:191
Aws::GuardDuty::Model::GetDetectorResult::SetStatus
void SetStatus(DetectorStatus &&value)
Definition: GetDetectorResult.h:150
Aws::GuardDuty::Model::GetDetectorResult::GetDetectorResult
GetDetectorResult()
Aws::GuardDuty::Model::GetDetectorResult::SetCreatedAt
void SetCreatedAt(const Aws::String &value)
Definition: GetDetectorResult.h:47
Aws::GuardDuty::Model::GetDetectorResult::WithCreatedAt
GetDetectorResult & WithCreatedAt(const Aws::String &value)
Definition: GetDetectorResult.h:62
Aws::GuardDuty::Model::GetDetectorResult::WithUpdatedAt
GetDetectorResult & WithUpdatedAt(const char *value)
Definition: GetDetectorResult.h:196
Aws::GuardDuty::Model::GetDetectorResult::AddTags
GetDetectorResult & AddTags(const char *key, const char *value)
Definition: GetDetectorResult.h:283
Aws::GuardDuty::Model::GetDetectorResult::GetUpdatedAt
const Aws::String & GetUpdatedAt() const
Definition: GetDetectorResult.h:166
Aws::GuardDuty::Model::GetDetectorResult::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetDetectorResult.h:233
Aws::GuardDuty::Model::GetDetectorResult::GetCreatedAt
const Aws::String & GetCreatedAt() const
Definition: GetDetectorResult.h:42
Aws::GuardDuty::Model::GetDetectorResult::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: GetDetectorResult.h:228
Aws::GuardDuty::Model::GetDetectorResult::WithTags
GetDetectorResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetDetectorResult.h:248
Aws::GuardDuty::Model::GetDetectorResult::WithDataSources
GetDetectorResult & WithDataSources(DataSourceConfigurationsResult &&value)
Definition: GetDetectorResult.h:222
Aws::GuardDuty::Model::GetDetectorResult::GetFindingPublishingFrequency
const FindingPublishingFrequency & GetFindingPublishingFrequency() const
Definition: GetDetectorResult.h:78
Aws::GuardDuty::Model::GetDetectorResult::WithFindingPublishingFrequency
GetDetectorResult & WithFindingPublishingFrequency(const FindingPublishingFrequency &value)
Definition: GetDetectorResult.h:93
Aws::GuardDuty::Model::GetDetectorResult::WithCreatedAt
GetDetectorResult & WithCreatedAt(const char *value)
Definition: GetDetectorResult.h:72
Aws::GuardDuty::Model::GetDetectorResult::WithServiceRole
GetDetectorResult & WithServiceRole(const Aws::String &value)
Definition: GetDetectorResult.h:124
Aws::GuardDuty::Model::GetDetectorResult::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetDetectorResult.h:238
Aws::GuardDuty::Model::GetDetectorResult::SetFindingPublishingFrequency
void SetFindingPublishingFrequency(FindingPublishingFrequency &&value)
Definition: GetDetectorResult.h:88
Aws::GuardDuty::Model::GetDetectorResult::WithFindingPublishingFrequency
GetDetectorResult & WithFindingPublishingFrequency(FindingPublishingFrequency &&value)
Definition: GetDetectorResult.h:98
Aws::GuardDuty::Model::GetDetectorResult::SetUpdatedAt
void SetUpdatedAt(Aws::String &&value)
Definition: GetDetectorResult.h:176
Aws::GuardDuty::Model::GetDetectorResult::AddTags
GetDetectorResult & AddTags(Aws::String &&key, const Aws::String &value)
Definition: GetDetectorResult.h:258
Aws::GuardDuty::Model::GetDetectorResult::SetServiceRole
void SetServiceRole(const char *value)
Definition: GetDetectorResult.h:119
Aws::GuardDuty::Model::GetDetectorResult::WithServiceRole
GetDetectorResult & WithServiceRole(Aws::String &&value)
Definition: GetDetectorResult.h:129
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::GetDetectorResult::GetDetectorResult
GetDetectorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GuardDuty::Model::GetDetectorResult::GetServiceRole
const Aws::String & GetServiceRole() const
Definition: GetDetectorResult.h:104
Aws::GuardDuty::Model::GetDetectorResult::SetServiceRole
void SetServiceRole(Aws::String &&value)
Definition: GetDetectorResult.h:114
Aws::GuardDuty::Model::GetDetectorResult::AddTags
GetDetectorResult & AddTags(Aws::String &&key, const char *value)
Definition: GetDetectorResult.h:278
Aws::GuardDuty::Model::GetDetectorResult::SetUpdatedAt
void SetUpdatedAt(const Aws::String &value)
Definition: GetDetectorResult.h:171
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
FindingPublishingFrequency.h
Aws::GuardDuty::Model::GetDetectorResult::SetDataSources
void SetDataSources(DataSourceConfigurationsResult &&value)
Definition: GetDetectorResult.h:212
Aws::GuardDuty::Model::GetDetectorResult::WithUpdatedAt
GetDetectorResult & WithUpdatedAt(const Aws::String &value)
Definition: GetDetectorResult.h:186
AWSString.h
Aws::GuardDuty::Model::GetDetectorResult::operator=
GetDetectorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GuardDuty::Model::GetDetectorResult::SetServiceRole
void SetServiceRole(const Aws::String &value)
Definition: GetDetectorResult.h:109
Aws::GuardDuty::Model::GetDetectorResult::GetDataSources
const DataSourceConfigurationsResult & GetDataSources() const
Definition: GetDetectorResult.h:202
Aws::GuardDuty::Model::GetDetectorResult::WithStatus
GetDetectorResult & WithStatus(DetectorStatus &&value)
Definition: GetDetectorResult.h:160
Aws::GuardDuty::Model::GetDetectorResult::SetUpdatedAt
void SetUpdatedAt(const char *value)
Definition: GetDetectorResult.h:181
Aws::GuardDuty::Model::DetectorStatus
DetectorStatus
Definition: DetectorStatus.h:17
DataSourceConfigurationsResult.h
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::GetDetectorResult::GetStatus
const DetectorStatus & GetStatus() const
Definition: GetDetectorResult.h:140
Aws::GuardDuty::Model::GetDetectorResult::SetDataSources
void SetDataSources(const DataSourceConfigurationsResult &value)
Definition: GetDetectorResult.h:207
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::GetDetectorResult::WithTags
GetDetectorResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetDetectorResult.h:243
DetectorStatus.h
Aws::GuardDuty::Model::GetDetectorResult::SetCreatedAt
void SetCreatedAt(const char *value)
Definition: GetDetectorResult.h:57
Aws::GuardDuty::Model::GetDetectorResult::WithServiceRole
GetDetectorResult & WithServiceRole(const char *value)
Definition: GetDetectorResult.h:134
Aws::GuardDuty::Model::GetDetectorResult::SetFindingPublishingFrequency
void SetFindingPublishingFrequency(const FindingPublishingFrequency &value)
Definition: GetDetectorResult.h:83
Aws::GuardDuty::Model::GetDetectorResult::AddTags
GetDetectorResult & AddTags(const Aws::String &key, const Aws::String &value)
Definition: GetDetectorResult.h:253
Aws::GuardDuty::Model::GetDetectorResult
Definition: GetDetectorResult.h:32
Aws::GuardDuty::Model::GetDetectorResult::SetCreatedAt
void SetCreatedAt(Aws::String &&value)
Definition: GetDetectorResult.h:52
AWSMap.h
Aws::GuardDuty::Model::GetDetectorResult::WithCreatedAt
GetDetectorResult & WithCreatedAt(Aws::String &&value)
Definition: GetDetectorResult.h:67
Aws::GuardDuty::Model::GetDetectorResult::AddTags
GetDetectorResult & AddTags(const char *key, Aws::String &&value)
Definition: GetDetectorResult.h:273
Aws::GuardDuty::Model::DataSourceConfigurationsResult
Definition: DataSourceConfigurationsResult.h:36
Aws::GuardDuty::Model::GetDetectorResult::SetStatus
void SetStatus(const DetectorStatus &value)
Definition: GetDetectorResult.h:145
Aws::GuardDuty::Model::GetDetectorResult::AddTags
GetDetectorResult & AddTags(Aws::String &&key, Aws::String &&value)
Definition: GetDetectorResult.h:268
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19