AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreateMalwareProtectionPlanRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/GuardDutyRequest.h>
11#include <aws/guardduty/GuardDuty_EXPORTS.h>
12#include <aws/guardduty/model/CreateProtectedResource.h>
13#include <aws/guardduty/model/MalwareProtectionPlanActions.h>
14
15#include <utility>
16
17namespace Aws {
18namespace GuardDuty {
19namespace Model {
20
24 public:
25 AWS_GUARDDUTY_API CreateMalwareProtectionPlanRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateMalwareProtectionPlan"; }
32
33 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetClientToken() const { return m_clientToken; }
40 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
41 template <typename ClientTokenT = Aws::String>
42 void SetClientToken(ClientTokenT&& value) {
43 m_clientTokenHasBeenSet = true;
44 m_clientToken = std::forward<ClientTokenT>(value);
45 }
46 template <typename ClientTokenT = Aws::String>
48 SetClientToken(std::forward<ClientTokenT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetRole() const { return m_role; }
59 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
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 inline bool ProtectedResourceHasBeenSet() const { return m_protectedResourceHasBeenSet; }
80 template <typename ProtectedResourceT = CreateProtectedResource>
81 void SetProtectedResource(ProtectedResourceT&& value) {
82 m_protectedResourceHasBeenSet = true;
83 m_protectedResource = std::forward<ProtectedResourceT>(value);
84 }
85 template <typename ProtectedResourceT = CreateProtectedResource>
87 SetProtectedResource(std::forward<ProtectedResourceT>(value));
88 return *this;
89 }
91
93
97 inline const MalwareProtectionPlanActions& GetActions() const { return m_actions; }
98 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
99 template <typename ActionsT = MalwareProtectionPlanActions>
100 void SetActions(ActionsT&& value) {
101 m_actionsHasBeenSet = true;
102 m_actions = std::forward<ActionsT>(value);
103 }
104 template <typename ActionsT = MalwareProtectionPlanActions>
106 SetActions(std::forward<ActionsT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 void SetTags(TagsT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags = std::forward<TagsT>(value);
121 }
122 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 SetTags(std::forward<TagsT>(value));
125 return *this;
126 }
127 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
128 CreateMalwareProtectionPlanRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
131 return *this;
132 }
134 private:
136
137 Aws::String m_role;
138
139 CreateProtectedResource m_protectedResource;
140
141 MalwareProtectionPlanActions m_actions;
142
144 bool m_clientTokenHasBeenSet = true;
145 bool m_roleHasBeenSet = false;
146 bool m_protectedResourceHasBeenSet = false;
147 bool m_actionsHasBeenSet = false;
148 bool m_tagsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace GuardDuty
153} // namespace Aws
AWS_GUARDDUTY_API CreateMalwareProtectionPlanRequest()=default
CreateMalwareProtectionPlanRequest & WithClientToken(ClientTokenT &&value)
CreateMalwareProtectionPlanRequest & WithProtectedResource(ProtectedResourceT &&value)
CreateMalwareProtectionPlanRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateMalwareProtectionPlanRequest & WithActions(ActionsT &&value)
CreateMalwareProtectionPlanRequest & WithRole(RoleT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
static Aws::Utils::UUID PseudoRandomUUID()
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