AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline void SetArn(const Aws::String& value) { m_arn = value; }
48 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
49 inline void SetArn(const char* value) { m_arn.assign(value); }
50 inline GetMalwareProtectionPlanResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
51 inline GetMalwareProtectionPlanResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
52 inline GetMalwareProtectionPlanResult& WithArn(const char* value) { SetArn(value); return *this;}
54
56
60 inline const Aws::String& GetRole() const{ return m_role; }
61 inline void SetRole(const Aws::String& value) { m_role = value; }
62 inline void SetRole(Aws::String&& value) { m_role = std::move(value); }
63 inline void SetRole(const char* value) { m_role.assign(value); }
64 inline GetMalwareProtectionPlanResult& WithRole(const Aws::String& value) { SetRole(value); return *this;}
65 inline GetMalwareProtectionPlanResult& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
66 inline GetMalwareProtectionPlanResult& WithRole(const char* value) { SetRole(value); return *this;}
68
70
75 inline const CreateProtectedResource& GetProtectedResource() const{ return m_protectedResource; }
76 inline void SetProtectedResource(const CreateProtectedResource& value) { m_protectedResource = value; }
77 inline void SetProtectedResource(CreateProtectedResource&& value) { m_protectedResource = std::move(value); }
81
83
87 inline const MalwareProtectionPlanActions& GetActions() const{ return m_actions; }
88 inline void SetActions(const MalwareProtectionPlanActions& value) { m_actions = value; }
89 inline void SetActions(MalwareProtectionPlanActions&& value) { m_actions = std::move(value); }
91 inline GetMalwareProtectionPlanResult& WithActions(MalwareProtectionPlanActions&& value) { SetActions(std::move(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
99 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
100 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
102 inline GetMalwareProtectionPlanResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
104
106
109 inline const MalwareProtectionPlanStatus& GetStatus() const{ return m_status; }
110 inline void SetStatus(const MalwareProtectionPlanStatus& value) { m_status = value; }
111 inline void SetStatus(MalwareProtectionPlanStatus&& value) { m_status = std::move(value); }
113 inline GetMalwareProtectionPlanResult& WithStatus(MalwareProtectionPlanStatus&& value) { SetStatus(std::move(value)); return *this;}
115
117
121 inline const Aws::Vector<MalwareProtectionPlanStatusReason>& GetStatusReasons() const{ return m_statusReasons; }
122 inline void SetStatusReasons(const Aws::Vector<MalwareProtectionPlanStatusReason>& value) { m_statusReasons = value; }
123 inline void SetStatusReasons(Aws::Vector<MalwareProtectionPlanStatusReason>&& value) { m_statusReasons = std::move(value); }
126 inline GetMalwareProtectionPlanResult& AddStatusReasons(const MalwareProtectionPlanStatusReason& value) { m_statusReasons.push_back(value); return *this; }
127 inline GetMalwareProtectionPlanResult& AddStatusReasons(MalwareProtectionPlanStatusReason&& value) { m_statusReasons.push_back(std::move(value)); return *this; }
129
131
134 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
135 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
136 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
138 inline GetMalwareProtectionPlanResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
139 inline GetMalwareProtectionPlanResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
140 inline GetMalwareProtectionPlanResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
141 inline GetMalwareProtectionPlanResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
142 inline GetMalwareProtectionPlanResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
143 inline GetMalwareProtectionPlanResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
144 inline GetMalwareProtectionPlanResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
145 inline GetMalwareProtectionPlanResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
147
149
150 inline const Aws::String& GetRequestId() const{ return m_requestId; }
151 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
152 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
153 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
154 inline GetMalwareProtectionPlanResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
155 inline GetMalwareProtectionPlanResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
156 inline GetMalwareProtectionPlanResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
158 private:
159
160 Aws::String m_arn;
161
162 Aws::String m_role;
163
164 CreateProtectedResource m_protectedResource;
165
167
168 Aws::Utils::DateTime m_createdAt;
169
171
173
175
176 Aws::String m_requestId;
177 };
178
179} // namespace Model
180} // namespace GuardDuty
181} // namespace Aws
GetMalwareProtectionPlanResult & WithArn(const char *value)
GetMalwareProtectionPlanResult & AddStatusReasons(MalwareProtectionPlanStatusReason &&value)
GetMalwareProtectionPlanResult & WithRole(const Aws::String &value)
GetMalwareProtectionPlanResult & AddTags(const char *key, const char *value)
GetMalwareProtectionPlanResult & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetMalwareProtectionPlanResult & AddStatusReasons(const MalwareProtectionPlanStatusReason &value)
GetMalwareProtectionPlanResult & WithArn(Aws::String &&value)
GetMalwareProtectionPlanResult & AddTags(const Aws::String &key, const Aws::String &value)
GetMalwareProtectionPlanResult & WithRequestId(Aws::String &&value)
GetMalwareProtectionPlanResult & AddTags(const Aws::String &key, Aws::String &&value)
GetMalwareProtectionPlanResult & WithStatusReasons(Aws::Vector< MalwareProtectionPlanStatusReason > &&value)
GetMalwareProtectionPlanResult & WithRequestId(const Aws::String &value)
AWS_GUARDDUTY_API GetMalwareProtectionPlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMalwareProtectionPlanResult & WithActions(const MalwareProtectionPlanActions &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
GetMalwareProtectionPlanResult & WithRole(Aws::String &&value)
const Aws::Vector< MalwareProtectionPlanStatusReason > & GetStatusReasons() const
GetMalwareProtectionPlanResult & WithStatusReasons(const Aws::Vector< MalwareProtectionPlanStatusReason > &value)
void SetProtectedResource(const CreateProtectedResource &value)
GetMalwareProtectionPlanResult & WithStatus(const MalwareProtectionPlanStatus &value)
AWS_GUARDDUTY_API GetMalwareProtectionPlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMalwareProtectionPlanResult & WithActions(MalwareProtectionPlanActions &&value)
GetMalwareProtectionPlanResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetStatusReasons(const Aws::Vector< MalwareProtectionPlanStatusReason > &value)
GetMalwareProtectionPlanResult & WithCreatedAt(const Aws::Utils::DateTime &value)
GetMalwareProtectionPlanResult & AddTags(const char *key, Aws::String &&value)
GetMalwareProtectionPlanResult & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetStatus(const MalwareProtectionPlanStatus &value)
GetMalwareProtectionPlanResult & AddTags(Aws::String &&key, const Aws::String &value)
GetMalwareProtectionPlanResult & WithArn(const Aws::String &value)
GetMalwareProtectionPlanResult & WithRole(const char *value)
GetMalwareProtectionPlanResult & WithProtectedResource(CreateProtectedResource &&value)
GetMalwareProtectionPlanResult & WithProtectedResource(const CreateProtectedResource &value)
void SetActions(const MalwareProtectionPlanActions &value)
void SetStatusReasons(Aws::Vector< MalwareProtectionPlanStatusReason > &&value)
GetMalwareProtectionPlanResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
GetMalwareProtectionPlanResult & WithStatus(MalwareProtectionPlanStatus &&value)
GetMalwareProtectionPlanResult & WithRequestId(const char *value)
GetMalwareProtectionPlanResult & AddTags(Aws::String &&key, const char *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