AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
GetDetectorResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/guardduty/GuardDuty_EXPORTS.h>
12#include <aws/guardduty/model/DetectorFeatureConfigurationResult.h>
13#include <aws/guardduty/model/DetectorStatus.h>
14#include <aws/guardduty/model/FindingPublishingFrequency.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace GuardDuty {
28namespace Model {
30 public:
31 AWS_GUARDDUTY_API GetDetectorResult() = default;
34
36
39 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
40 template <typename CreatedAtT = Aws::String>
41 void SetCreatedAt(CreatedAtT&& value) {
42 m_createdAtHasBeenSet = true;
43 m_createdAt = std::forward<CreatedAtT>(value);
44 }
45 template <typename CreatedAtT = Aws::String>
46 GetDetectorResult& WithCreatedAt(CreatedAtT&& value) {
47 SetCreatedAt(std::forward<CreatedAtT>(value));
48 return *this;
49 }
51
53
56 inline FindingPublishingFrequency GetFindingPublishingFrequency() const { return m_findingPublishingFrequency; }
58 m_findingPublishingFrequencyHasBeenSet = true;
59 m_findingPublishingFrequency = value;
60 }
63 return *this;
64 }
66
68
71 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
72 template <typename ServiceRoleT = Aws::String>
73 void SetServiceRole(ServiceRoleT&& value) {
74 m_serviceRoleHasBeenSet = true;
75 m_serviceRole = std::forward<ServiceRoleT>(value);
76 }
77 template <typename ServiceRoleT = Aws::String>
78 GetDetectorResult& WithServiceRole(ServiceRoleT&& value) {
79 SetServiceRole(std::forward<ServiceRoleT>(value));
80 return *this;
81 }
83
85
88 inline DetectorStatus GetStatus() const { return m_status; }
89 inline void SetStatus(DetectorStatus value) {
90 m_statusHasBeenSet = true;
91 m_status = value;
92 }
94 SetStatus(value);
95 return *this;
96 }
98
100
103 inline const Aws::String& GetUpdatedAt() const { return m_updatedAt; }
104 template <typename UpdatedAtT = Aws::String>
105 void SetUpdatedAt(UpdatedAtT&& value) {
106 m_updatedAtHasBeenSet = true;
107 m_updatedAt = std::forward<UpdatedAtT>(value);
108 }
109 template <typename UpdatedAtT = Aws::String>
110 GetDetectorResult& WithUpdatedAt(UpdatedAtT&& value) {
111 SetUpdatedAt(std::forward<UpdatedAtT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 GetDetectorResult& WithTags(TagsT&& value) {
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 GetDetectorResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Vector<DetectorFeatureConfigurationResult>& GetFeatures() const { return m_features; }
144 template <typename FeaturesT = Aws::Vector<DetectorFeatureConfigurationResult>>
145 void SetFeatures(FeaturesT&& value) {
146 m_featuresHasBeenSet = true;
147 m_features = std::forward<FeaturesT>(value);
148 }
149 template <typename FeaturesT = Aws::Vector<DetectorFeatureConfigurationResult>>
150 GetDetectorResult& WithFeatures(FeaturesT&& value) {
151 SetFeatures(std::forward<FeaturesT>(value));
152 return *this;
153 }
154 template <typename FeaturesT = DetectorFeatureConfigurationResult>
155 GetDetectorResult& AddFeatures(FeaturesT&& value) {
156 m_featuresHasBeenSet = true;
157 m_features.emplace_back(std::forward<FeaturesT>(value));
158 return *this;
159 }
161
163
164 inline const Aws::String& GetRequestId() const { return m_requestId; }
165 template <typename RequestIdT = Aws::String>
166 void SetRequestId(RequestIdT&& value) {
167 m_requestIdHasBeenSet = true;
168 m_requestId = std::forward<RequestIdT>(value);
169 }
170 template <typename RequestIdT = Aws::String>
171 GetDetectorResult& WithRequestId(RequestIdT&& value) {
172 SetRequestId(std::forward<RequestIdT>(value));
173 return *this;
174 }
176 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
177
178 private:
179 Aws::String m_createdAt;
180
182
183 Aws::String m_serviceRole;
184
186
187 Aws::String m_updatedAt;
188
190
192
193 Aws::String m_requestId;
194 Aws::Http::HttpResponseCode m_HttpResponseCode;
195 bool m_createdAtHasBeenSet = false;
196 bool m_findingPublishingFrequencyHasBeenSet = false;
197 bool m_serviceRoleHasBeenSet = false;
198 bool m_statusHasBeenSet = false;
199 bool m_updatedAtHasBeenSet = false;
200 bool m_tagsHasBeenSet = false;
201 bool m_featuresHasBeenSet = false;
202 bool m_requestIdHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace GuardDuty
207} // namespace Aws
GetDetectorResult & WithCreatedAt(CreatedAtT &&value)
GetDetectorResult & WithFindingPublishingFrequency(FindingPublishingFrequency value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetServiceRole(ServiceRoleT &&value)
GetDetectorResult & AddFeatures(FeaturesT &&value)
GetDetectorResult & WithRequestId(RequestIdT &&value)
FindingPublishingFrequency GetFindingPublishingFrequency() const
GetDetectorResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_GUARDDUTY_API GetDetectorResult()=default
void SetFindingPublishingFrequency(FindingPublishingFrequency value)
const Aws::String & GetServiceRole() const
const Aws::String & GetCreatedAt() const
AWS_GUARDDUTY_API GetDetectorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDetectorResult & WithServiceRole(ServiceRoleT &&value)
const Aws::Vector< DetectorFeatureConfigurationResult > & GetFeatures() const
AWS_GUARDDUTY_API GetDetectorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDetectorResult & WithFeatures(FeaturesT &&value)
GetDetectorResult & WithUpdatedAt(UpdatedAtT &&value)
GetDetectorResult & WithStatus(DetectorStatus value)
GetDetectorResult & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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