AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateMalwareProtectionPlanRequest.h
1
6#pragma once
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>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace GuardDuty
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GUARDDUTY_API CreateMalwareProtectionPlanRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateMalwareProtectionPlan"; }
35
36 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetClientToken() const { return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
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>
48 CreateMalwareProtectionPlanRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
50
52
56 inline const Aws::String& GetRole() const { return m_role; }
57 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
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>
61 CreateMalwareProtectionPlanRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
63
65
70 inline const CreateProtectedResource& GetProtectedResource() const { return m_protectedResource; }
71 inline bool ProtectedResourceHasBeenSet() const { return m_protectedResourceHasBeenSet; }
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 CreateMalwareProtectionPlanRequest& WithProtectedResource(ProtectedResourceT&& value) { SetProtectedResource(std::forward<ProtectedResourceT>(value)); return *this;}
77
79
83 inline const MalwareProtectionPlanActions& GetActions() const { return m_actions; }
84 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
85 template<typename ActionsT = MalwareProtectionPlanActions>
86 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
87 template<typename ActionsT = MalwareProtectionPlanActions>
88 CreateMalwareProtectionPlanRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
90
92
95 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
100 CreateMalwareProtectionPlanRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
101 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
102 CreateMalwareProtectionPlanRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
103 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
104 }
106 private:
107
109 bool m_clientTokenHasBeenSet = true;
110
111 Aws::String m_role;
112 bool m_roleHasBeenSet = false;
113
114 CreateProtectedResource m_protectedResource;
115 bool m_protectedResourceHasBeenSet = false;
116
117 MalwareProtectionPlanActions m_actions;
118 bool m_actionsHasBeenSet = false;
119
121 bool m_tagsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace GuardDuty
126} // 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