7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/model/CreateProtectedResource.h>
11#include <aws/guardduty/model/MalwareProtectionPlanActions.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/UUID.h>
45 template<
typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
47 template<
typename ClientTokenT = Aws::String>
58 template<
typename RoleT = Aws::String>
59 void SetRole(RoleT&& value) { m_roleHasBeenSet =
true; m_role = std::forward<RoleT>(value); }
60 template<
typename RoleT = Aws::String>
72 template<
typename ProtectedResourceT = CreateProtectedResource>
73 void SetProtectedResource(ProtectedResourceT&& value) { m_protectedResourceHasBeenSet =
true; m_protectedResource = std::forward<ProtectedResourceT>(value); }
74 template<
typename ProtectedResourceT = CreateProtectedResource>
85 template<
typename ActionsT = MalwareProtectionPlanActions>
86 void SetActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions = std::forward<ActionsT>(value); }
87 template<
typename ActionsT = MalwareProtectionPlanActions>
97 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
99 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
103 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
109 bool m_clientTokenHasBeenSet =
true;
112 bool m_roleHasBeenSet =
false;
114 CreateProtectedResource m_protectedResource;
115 bool m_protectedResourceHasBeenSet =
false;
117 MalwareProtectionPlanActions m_actions;
118 bool m_actionsHasBeenSet =
false;
121 bool m_tagsHasBeenSet =
false;
const MalwareProtectionPlanActions & GetActions() const
AWS_GUARDDUTY_API CreateMalwareProtectionPlanRequest()=default
CreateMalwareProtectionPlanRequest & WithClientToken(ClientTokenT &&value)
const CreateProtectedResource & GetProtectedResource() const
void SetClientToken(ClientTokenT &&value)
bool RoleHasBeenSet() const
void SetActions(ActionsT &&value)
const Aws::String & GetRole() const
bool ActionsHasBeenSet() const
CreateMalwareProtectionPlanRequest & WithProtectedResource(ProtectedResourceT &&value)
CreateMalwareProtectionPlanRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetRole(RoleT &&value)
void SetProtectedResource(ProtectedResourceT &&value)
CreateMalwareProtectionPlanRequest & WithTags(TagsT &&value)
CreateMalwareProtectionPlanRequest & WithActions(ActionsT &&value)
CreateMalwareProtectionPlanRequest & WithRole(RoleT &&value)
void SetTags(TagsT &&value)
bool ClientTokenHasBeenSet() const
bool TagsHasBeenSet() const
bool ProtectedResourceHasBeenSet() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetClientToken() const
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