AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetMalwareProtectionPlanResult.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/CreateProtectedResource.h>
10#include <aws/guardduty/model/MalwareProtectionPlanActions.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/guardduty/model/MalwareProtectionPlanStatus.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/guardduty/model/MalwareProtectionPlanStatusReason.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace GuardDuty
31{
32namespace Model
33{
35 {
36 public:
37 AWS_GUARDDUTY_API GetMalwareProtectionPlanResult() = default;
40
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 template<typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
49 template<typename ArnT = Aws::String>
50 GetMalwareProtectionPlanResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
52
54
58 inline const Aws::String& GetRole() const { return m_role; }
59 template<typename RoleT = Aws::String>
60 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
61 template<typename RoleT = Aws::String>
62 GetMalwareProtectionPlanResult& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
64
66
71 inline const CreateProtectedResource& GetProtectedResource() const { return m_protectedResource; }
72 template<typename ProtectedResourceT = CreateProtectedResource>
73 void SetProtectedResource(ProtectedResourceT&& value) { m_protectedResourceHasBeenSet = true; m_protectedResource = std::forward<ProtectedResourceT>(value); }
74 template<typename ProtectedResourceT = CreateProtectedResource>
75 GetMalwareProtectionPlanResult& WithProtectedResource(ProtectedResourceT&& value) { SetProtectedResource(std::forward<ProtectedResourceT>(value)); return *this;}
77
79
83 inline const MalwareProtectionPlanActions& GetActions() const { return m_actions; }
84 template<typename ActionsT = MalwareProtectionPlanActions>
85 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
86 template<typename ActionsT = MalwareProtectionPlanActions>
87 GetMalwareProtectionPlanResult& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
95 template<typename CreatedAtT = Aws::Utils::DateTime>
96 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
97 template<typename CreatedAtT = Aws::Utils::DateTime>
98 GetMalwareProtectionPlanResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
100
102
105 inline MalwareProtectionPlanStatus GetStatus() const { return m_status; }
106 inline void SetStatus(MalwareProtectionPlanStatus value) { m_statusHasBeenSet = true; m_status = value; }
109
111
115 inline const Aws::Vector<MalwareProtectionPlanStatusReason>& GetStatusReasons() const { return m_statusReasons; }
116 template<typename StatusReasonsT = Aws::Vector<MalwareProtectionPlanStatusReason>>
117 void SetStatusReasons(StatusReasonsT&& value) { m_statusReasonsHasBeenSet = true; m_statusReasons = std::forward<StatusReasonsT>(value); }
118 template<typename StatusReasonsT = Aws::Vector<MalwareProtectionPlanStatusReason>>
119 GetMalwareProtectionPlanResult& WithStatusReasons(StatusReasonsT&& value) { SetStatusReasons(std::forward<StatusReasonsT>(value)); return *this;}
120 template<typename StatusReasonsT = MalwareProtectionPlanStatusReason>
121 GetMalwareProtectionPlanResult& AddStatusReasons(StatusReasonsT&& value) { m_statusReasonsHasBeenSet = true; m_statusReasons.emplace_back(std::forward<StatusReasonsT>(value)); return *this; }
123
125
128 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
129 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
131 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 GetMalwareProtectionPlanResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
133 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
134 GetMalwareProtectionPlanResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
135 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
136 }
138
140
141 inline const Aws::String& GetRequestId() const { return m_requestId; }
142 template<typename RequestIdT = Aws::String>
143 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
144 template<typename RequestIdT = Aws::String>
145 GetMalwareProtectionPlanResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
147 private:
148
149 Aws::String m_arn;
150 bool m_arnHasBeenSet = false;
151
152 Aws::String m_role;
153 bool m_roleHasBeenSet = false;
154
155 CreateProtectedResource m_protectedResource;
156 bool m_protectedResourceHasBeenSet = false;
157
159 bool m_actionsHasBeenSet = false;
160
161 Aws::Utils::DateTime m_createdAt{};
162 bool m_createdAtHasBeenSet = false;
163
165 bool m_statusHasBeenSet = false;
166
168 bool m_statusReasonsHasBeenSet = false;
169
171 bool m_tagsHasBeenSet = false;
172
173 Aws::String m_requestId;
174 bool m_requestIdHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace GuardDuty
179} // 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