AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
GetMalwareProtectionPlanResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/guardduty/GuardDuty_EXPORTS.h>
13#include <aws/guardduty/model/CreateProtectedResource.h>
14#include <aws/guardduty/model/MalwareProtectionPlanActions.h>
15#include <aws/guardduty/model/MalwareProtectionPlanStatus.h>
16#include <aws/guardduty/model/MalwareProtectionPlanStatusReason.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace GuardDuty {
30namespace Model {
32 public:
33 AWS_GUARDDUTY_API GetMalwareProtectionPlanResult() = default;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetRole() const { return m_role; }
60 template <typename RoleT = Aws::String>
61 void SetRole(RoleT&& value) {
62 m_roleHasBeenSet = true;
63 m_role = std::forward<RoleT>(value);
64 }
65 template <typename RoleT = Aws::String>
67 SetRole(std::forward<RoleT>(value));
68 return *this;
69 }
71
73
78 inline const CreateProtectedResource& GetProtectedResource() const { return m_protectedResource; }
79 template <typename ProtectedResourceT = CreateProtectedResource>
80 void SetProtectedResource(ProtectedResourceT&& value) {
81 m_protectedResourceHasBeenSet = true;
82 m_protectedResource = std::forward<ProtectedResourceT>(value);
83 }
84 template <typename ProtectedResourceT = CreateProtectedResource>
86 SetProtectedResource(std::forward<ProtectedResourceT>(value));
87 return *this;
88 }
90
92
96 inline const MalwareProtectionPlanActions& GetActions() const { return m_actions; }
97 template <typename ActionsT = MalwareProtectionPlanActions>
98 void SetActions(ActionsT&& value) {
99 m_actionsHasBeenSet = true;
100 m_actions = std::forward<ActionsT>(value);
101 }
102 template <typename ActionsT = MalwareProtectionPlanActions>
104 SetActions(std::forward<ActionsT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
114 template <typename CreatedAtT = Aws::Utils::DateTime>
115 void SetCreatedAt(CreatedAtT&& value) {
116 m_createdAtHasBeenSet = true;
117 m_createdAt = std::forward<CreatedAtT>(value);
118 }
119 template <typename CreatedAtT = Aws::Utils::DateTime>
121 SetCreatedAt(std::forward<CreatedAtT>(value));
122 return *this;
123 }
125
127
130 inline MalwareProtectionPlanStatus GetStatus() const { return m_status; }
132 m_statusHasBeenSet = true;
133 m_status = value;
134 }
136 SetStatus(value);
137 return *this;
138 }
140
142
146 inline const Aws::Vector<MalwareProtectionPlanStatusReason>& GetStatusReasons() const { return m_statusReasons; }
147 template <typename StatusReasonsT = Aws::Vector<MalwareProtectionPlanStatusReason>>
148 void SetStatusReasons(StatusReasonsT&& value) {
149 m_statusReasonsHasBeenSet = true;
150 m_statusReasons = std::forward<StatusReasonsT>(value);
151 }
152 template <typename StatusReasonsT = Aws::Vector<MalwareProtectionPlanStatusReason>>
154 SetStatusReasons(std::forward<StatusReasonsT>(value));
155 return *this;
156 }
157 template <typename StatusReasonsT = MalwareProtectionPlanStatusReason>
159 m_statusReasonsHasBeenSet = true;
160 m_statusReasons.emplace_back(std::forward<StatusReasonsT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
170 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
171 void SetTags(TagsT&& value) {
172 m_tagsHasBeenSet = true;
173 m_tags = std::forward<TagsT>(value);
174 }
175 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 SetTags(std::forward<TagsT>(value));
178 return *this;
179 }
180 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
181 GetMalwareProtectionPlanResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
182 m_tagsHasBeenSet = true;
183 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
184 return *this;
185 }
187
189
190 inline const Aws::String& GetRequestId() const { return m_requestId; }
191 template <typename RequestIdT = Aws::String>
192 void SetRequestId(RequestIdT&& value) {
193 m_requestIdHasBeenSet = true;
194 m_requestId = std::forward<RequestIdT>(value);
195 }
196 template <typename RequestIdT = Aws::String>
198 SetRequestId(std::forward<RequestIdT>(value));
199 return *this;
200 }
202 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
203
204 private:
205 Aws::String m_arn;
206
207 Aws::String m_role;
208
209 CreateProtectedResource m_protectedResource;
210
212
213 Aws::Utils::DateTime m_createdAt{};
214
216
218
220
221 Aws::String m_requestId;
222 Aws::Http::HttpResponseCode m_HttpResponseCode;
223 bool m_arnHasBeenSet = false;
224 bool m_roleHasBeenSet = false;
225 bool m_protectedResourceHasBeenSet = false;
226 bool m_actionsHasBeenSet = false;
227 bool m_createdAtHasBeenSet = false;
228 bool m_statusHasBeenSet = false;
229 bool m_statusReasonsHasBeenSet = false;
230 bool m_tagsHasBeenSet = false;
231 bool m_requestIdHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace GuardDuty
236} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetMalwareProtectionPlanResult & WithRole(RoleT &&value)
GetMalwareProtectionPlanResult & WithArn(ArnT &&value)
GetMalwareProtectionPlanResult & WithProtectedResource(ProtectedResourceT &&value)
AWS_GUARDDUTY_API GetMalwareProtectionPlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< MalwareProtectionPlanStatusReason > & GetStatusReasons() const
GetMalwareProtectionPlanResult & WithTags(TagsT &&value)
GetMalwareProtectionPlanResult & WithStatusReasons(StatusReasonsT &&value)
AWS_GUARDDUTY_API GetMalwareProtectionPlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMalwareProtectionPlanResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetMalwareProtectionPlanResult & WithActions(ActionsT &&value)
AWS_GUARDDUTY_API GetMalwareProtectionPlanResult()=default
GetMalwareProtectionPlanResult & WithRequestId(RequestIdT &&value)
GetMalwareProtectionPlanResult & WithCreatedAt(CreatedAtT &&value)
GetMalwareProtectionPlanResult & AddStatusReasons(StatusReasonsT &&value)
GetMalwareProtectionPlanResult & WithStatus(MalwareProtectionPlanStatus 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