AWS SDK for C++

AWS SDK for C++ Version 1.11.753

Loading...
Searching...
No Matches
GetDetectorResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/DetectorFeatureConfigurationResult.h>
12#include <aws/guardduty/model/DetectorStatus.h>
13#include <aws/guardduty/model/FindingPublishingFrequency.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace GuardDuty {
27namespace Model {
29 public:
30 AWS_GUARDDUTY_API GetDetectorResult() = default;
33
35
38 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
39 template <typename CreatedAtT = Aws::String>
40 void SetCreatedAt(CreatedAtT&& value) {
41 m_createdAtHasBeenSet = true;
42 m_createdAt = std::forward<CreatedAtT>(value);
43 }
44 template <typename CreatedAtT = Aws::String>
45 GetDetectorResult& WithCreatedAt(CreatedAtT&& value) {
46 SetCreatedAt(std::forward<CreatedAtT>(value));
47 return *this;
48 }
50
52
55 inline FindingPublishingFrequency GetFindingPublishingFrequency() const { return m_findingPublishingFrequency; }
57 m_findingPublishingFrequencyHasBeenSet = true;
58 m_findingPublishingFrequency = value;
59 }
62 return *this;
63 }
65
67
70 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
71 template <typename ServiceRoleT = Aws::String>
72 void SetServiceRole(ServiceRoleT&& value) {
73 m_serviceRoleHasBeenSet = true;
74 m_serviceRole = std::forward<ServiceRoleT>(value);
75 }
76 template <typename ServiceRoleT = Aws::String>
77 GetDetectorResult& WithServiceRole(ServiceRoleT&& value) {
78 SetServiceRole(std::forward<ServiceRoleT>(value));
79 return *this;
80 }
82
84
87 inline DetectorStatus GetStatus() const { return m_status; }
88 inline void SetStatus(DetectorStatus value) {
89 m_statusHasBeenSet = true;
90 m_status = value;
91 }
93 SetStatus(value);
94 return *this;
95 }
97
99
102 inline const Aws::String& GetUpdatedAt() const { return m_updatedAt; }
103 template <typename UpdatedAtT = Aws::String>
104 void SetUpdatedAt(UpdatedAtT&& value) {
105 m_updatedAtHasBeenSet = true;
106 m_updatedAt = std::forward<UpdatedAtT>(value);
107 }
108 template <typename UpdatedAtT = Aws::String>
109 GetDetectorResult& WithUpdatedAt(UpdatedAtT&& value) {
110 SetUpdatedAt(std::forward<UpdatedAtT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
120 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags = std::forward<TagsT>(value);
124 }
125 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 GetDetectorResult& WithTags(TagsT&& value) {
127 SetTags(std::forward<TagsT>(value));
128 return *this;
129 }
130 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
131 GetDetectorResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<DetectorFeatureConfigurationResult>& GetFeatures() const { return m_features; }
143 template <typename FeaturesT = Aws::Vector<DetectorFeatureConfigurationResult>>
144 void SetFeatures(FeaturesT&& value) {
145 m_featuresHasBeenSet = true;
146 m_features = std::forward<FeaturesT>(value);
147 }
148 template <typename FeaturesT = Aws::Vector<DetectorFeatureConfigurationResult>>
149 GetDetectorResult& WithFeatures(FeaturesT&& value) {
150 SetFeatures(std::forward<FeaturesT>(value));
151 return *this;
152 }
153 template <typename FeaturesT = DetectorFeatureConfigurationResult>
154 GetDetectorResult& AddFeatures(FeaturesT&& value) {
155 m_featuresHasBeenSet = true;
156 m_features.emplace_back(std::forward<FeaturesT>(value));
157 return *this;
158 }
160
162
163 inline const Aws::String& GetRequestId() const { return m_requestId; }
164 template <typename RequestIdT = Aws::String>
165 void SetRequestId(RequestIdT&& value) {
166 m_requestIdHasBeenSet = true;
167 m_requestId = std::forward<RequestIdT>(value);
168 }
169 template <typename RequestIdT = Aws::String>
170 GetDetectorResult& WithRequestId(RequestIdT&& value) {
171 SetRequestId(std::forward<RequestIdT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_createdAt;
177
179
180 Aws::String m_serviceRole;
181
183
184 Aws::String m_updatedAt;
185
187
189
190 Aws::String m_requestId;
191 bool m_createdAtHasBeenSet = false;
192 bool m_findingPublishingFrequencyHasBeenSet = false;
193 bool m_serviceRoleHasBeenSet = false;
194 bool m_statusHasBeenSet = false;
195 bool m_updatedAtHasBeenSet = false;
196 bool m_tagsHasBeenSet = false;
197 bool m_featuresHasBeenSet = false;
198 bool m_requestIdHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace GuardDuty
203} // namespace Aws
GetDetectorResult & WithCreatedAt(CreatedAtT &&value)
GetDetectorResult & WithFindingPublishingFrequency(FindingPublishingFrequency value)
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