AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
UpdateMalwareProtectionPlanRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/MalwareProtectionPlanActions.h>
11#include <aws/guardduty/model/UpdateProtectedResource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GuardDuty {
17namespace Model {
18
22 public:
23 AWS_GUARDDUTY_API UpdateMalwareProtectionPlanRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateMalwareProtectionPlan"; }
30
31 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetMalwareProtectionPlanId() const { return m_malwareProtectionPlanId; }
38 inline bool MalwareProtectionPlanIdHasBeenSet() const { return m_malwareProtectionPlanIdHasBeenSet; }
39 template <typename MalwareProtectionPlanIdT = Aws::String>
40 void SetMalwareProtectionPlanId(MalwareProtectionPlanIdT&& value) {
41 m_malwareProtectionPlanIdHasBeenSet = true;
42 m_malwareProtectionPlanId = std::forward<MalwareProtectionPlanIdT>(value);
43 }
44 template <typename MalwareProtectionPlanIdT = Aws::String>
46 SetMalwareProtectionPlanId(std::forward<MalwareProtectionPlanIdT>(value));
47 return *this;
48 }
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) {
60 m_roleHasBeenSet = true;
61 m_role = std::forward<RoleT>(value);
62 }
63 template <typename RoleT = Aws::String>
65 SetRole(std::forward<RoleT>(value));
66 return *this;
67 }
69
71
75 inline const MalwareProtectionPlanActions& GetActions() const { return m_actions; }
76 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
77 template <typename ActionsT = MalwareProtectionPlanActions>
78 void SetActions(ActionsT&& value) {
79 m_actionsHasBeenSet = true;
80 m_actions = std::forward<ActionsT>(value);
81 }
82 template <typename ActionsT = MalwareProtectionPlanActions>
84 SetActions(std::forward<ActionsT>(value));
85 return *this;
86 }
88
90
95 inline const UpdateProtectedResource& GetProtectedResource() const { return m_protectedResource; }
96 inline bool ProtectedResourceHasBeenSet() const { return m_protectedResourceHasBeenSet; }
97 template <typename ProtectedResourceT = UpdateProtectedResource>
98 void SetProtectedResource(ProtectedResourceT&& value) {
99 m_protectedResourceHasBeenSet = true;
100 m_protectedResource = std::forward<ProtectedResourceT>(value);
101 }
102 template <typename ProtectedResourceT = UpdateProtectedResource>
104 SetProtectedResource(std::forward<ProtectedResourceT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_malwareProtectionPlanId;
110
111 Aws::String m_role;
112
114
115 UpdateProtectedResource m_protectedResource;
116 bool m_malwareProtectionPlanIdHasBeenSet = false;
117 bool m_roleHasBeenSet = false;
118 bool m_actionsHasBeenSet = false;
119 bool m_protectedResourceHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace GuardDuty
124} // namespace Aws
UpdateMalwareProtectionPlanRequest & WithRole(RoleT &&value)
AWS_GUARDDUTY_API UpdateMalwareProtectionPlanRequest()=default
UpdateMalwareProtectionPlanRequest & WithMalwareProtectionPlanId(MalwareProtectionPlanIdT &&value)
UpdateMalwareProtectionPlanRequest & WithActions(ActionsT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
UpdateMalwareProtectionPlanRequest & WithProtectedResource(ProtectedResourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String