AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetDetectorResult.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/FindingPublishingFrequency.h>
10#include <aws/guardduty/model/DetectorStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/guardduty/model/DetectorFeatureConfigurationResult.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace GuardDuty
29{
30namespace Model
31{
33 {
34 public:
35 AWS_GUARDDUTY_API GetDetectorResult();
38
39
41
44 inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
45 inline void SetCreatedAt(const Aws::String& value) { m_createdAt = value; }
46 inline void SetCreatedAt(Aws::String&& value) { m_createdAt = std::move(value); }
47 inline void SetCreatedAt(const char* value) { m_createdAt.assign(value); }
48 inline GetDetectorResult& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
49 inline GetDetectorResult& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
50 inline GetDetectorResult& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
52
54
57 inline const FindingPublishingFrequency& GetFindingPublishingFrequency() const{ return m_findingPublishingFrequency; }
58 inline void SetFindingPublishingFrequency(const FindingPublishingFrequency& value) { m_findingPublishingFrequency = value; }
59 inline void SetFindingPublishingFrequency(FindingPublishingFrequency&& value) { m_findingPublishingFrequency = std::move(value); }
63
65
68 inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
69 inline void SetServiceRole(const Aws::String& value) { m_serviceRole = value; }
70 inline void SetServiceRole(Aws::String&& value) { m_serviceRole = std::move(value); }
71 inline void SetServiceRole(const char* value) { m_serviceRole.assign(value); }
72 inline GetDetectorResult& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
73 inline GetDetectorResult& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
74 inline GetDetectorResult& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
76
78
81 inline const DetectorStatus& GetStatus() const{ return m_status; }
82 inline void SetStatus(const DetectorStatus& value) { m_status = value; }
83 inline void SetStatus(DetectorStatus&& value) { m_status = std::move(value); }
84 inline GetDetectorResult& WithStatus(const DetectorStatus& value) { SetStatus(value); return *this;}
85 inline GetDetectorResult& WithStatus(DetectorStatus&& value) { SetStatus(std::move(value)); return *this;}
87
89
92 inline const Aws::String& GetUpdatedAt() const{ return m_updatedAt; }
93 inline void SetUpdatedAt(const Aws::String& value) { m_updatedAt = value; }
94 inline void SetUpdatedAt(Aws::String&& value) { m_updatedAt = std::move(value); }
95 inline void SetUpdatedAt(const char* value) { m_updatedAt.assign(value); }
96 inline GetDetectorResult& WithUpdatedAt(const Aws::String& value) { SetUpdatedAt(value); return *this;}
97 inline GetDetectorResult& WithUpdatedAt(Aws::String&& value) { SetUpdatedAt(std::move(value)); return *this;}
98 inline GetDetectorResult& WithUpdatedAt(const char* value) { SetUpdatedAt(value); return *this;}
100
102
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
106 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
107 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
108 inline GetDetectorResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
109 inline GetDetectorResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
110 inline GetDetectorResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
111 inline GetDetectorResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
112 inline GetDetectorResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
113 inline GetDetectorResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
114 inline GetDetectorResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
115 inline GetDetectorResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
116 inline GetDetectorResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
118
120
123 inline const Aws::Vector<DetectorFeatureConfigurationResult>& GetFeatures() const{ return m_features; }
124 inline void SetFeatures(const Aws::Vector<DetectorFeatureConfigurationResult>& value) { m_features = value; }
125 inline void SetFeatures(Aws::Vector<DetectorFeatureConfigurationResult>&& value) { m_features = std::move(value); }
128 inline GetDetectorResult& AddFeatures(const DetectorFeatureConfigurationResult& value) { m_features.push_back(value); return *this; }
129 inline GetDetectorResult& AddFeatures(DetectorFeatureConfigurationResult&& value) { m_features.push_back(std::move(value)); return *this; }
131
133
134 inline const Aws::String& GetRequestId() const{ return m_requestId; }
135 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
136 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
137 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
138 inline GetDetectorResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
139 inline GetDetectorResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
140 inline GetDetectorResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
142 private:
143
144 Aws::String m_createdAt;
145
146 FindingPublishingFrequency m_findingPublishingFrequency;
147
148 Aws::String m_serviceRole;
149
150 DetectorStatus m_status;
151
152 Aws::String m_updatedAt;
153
155
157
158 Aws::String m_requestId;
159 };
160
161} // namespace Model
162} // namespace GuardDuty
163} // namespace Aws
void SetUpdatedAt(const Aws::String &value)
GetDetectorResult & WithServiceRole(Aws::String &&value)
void SetFindingPublishingFrequency(FindingPublishingFrequency &&value)
void SetRequestId(const Aws::String &value)
void SetFeatures(const Aws::Vector< DetectorFeatureConfigurationResult > &value)
void SetFindingPublishingFrequency(const FindingPublishingFrequency &value)
GetDetectorResult & AddTags(const Aws::String &key, const Aws::String &value)
GetDetectorResult & WithCreatedAt(Aws::String &&value)
void SetStatus(const DetectorStatus &value)
GetDetectorResult & AddTags(Aws::String &&key, const char *value)
GetDetectorResult & WithFeatures(Aws::Vector< DetectorFeatureConfigurationResult > &&value)
GetDetectorResult & AddFeatures(DetectorFeatureConfigurationResult &&value)
GetDetectorResult & WithUpdatedAt(const Aws::String &value)
GetDetectorResult & AddTags(const char *key, const char *value)
GetDetectorResult & WithRequestId(const Aws::String &value)
GetDetectorResult & WithFindingPublishingFrequency(const FindingPublishingFrequency &value)
GetDetectorResult & WithStatus(const DetectorStatus &value)
GetDetectorResult & WithFeatures(const Aws::Vector< DetectorFeatureConfigurationResult > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
GetDetectorResult & WithCreatedAt(const Aws::String &value)
GetDetectorResult & WithServiceRole(const char *value)
GetDetectorResult & WithFindingPublishingFrequency(FindingPublishingFrequency &&value)
GetDetectorResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetFeatures(Aws::Vector< DetectorFeatureConfigurationResult > &&value)
GetDetectorResult & WithRequestId(Aws::String &&value)
const Aws::String & GetServiceRole() const
GetDetectorResult & AddTags(const Aws::String &key, Aws::String &&value)
void SetServiceRole(const Aws::String &value)
const Aws::String & GetCreatedAt() const
AWS_GUARDDUTY_API GetDetectorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetStatus(DetectorStatus &&value)
const DetectorStatus & GetStatus() const
GetDetectorResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Vector< DetectorFeatureConfigurationResult > & GetFeatures() const
GetDetectorResult & WithServiceRole(const Aws::String &value)
AWS_GUARDDUTY_API GetDetectorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDetectorResult & WithRequestId(const char *value)
GetDetectorResult & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::String & GetUpdatedAt() const
GetDetectorResult & WithCreatedAt(const char *value)
const FindingPublishingFrequency & GetFindingPublishingFrequency() const
GetDetectorResult & WithUpdatedAt(const char *value)
GetDetectorResult & WithStatus(DetectorStatus &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
GetDetectorResult & AddFeatures(const DetectorFeatureConfigurationResult &value)
GetDetectorResult & AddTags(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetDetectorResult & AddTags(Aws::String &&key, const Aws::String &value)
void SetCreatedAt(const Aws::String &value)
GetDetectorResult & WithUpdatedAt(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue