AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateMalwareProtectionPlanRequest.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/MalwareProtectionPlanActions.h>
11#include <aws/guardduty/model/UpdateProtectedResource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GuardDuty
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GUARDDUTY_API UpdateMalwareProtectionPlanRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateMalwareProtectionPlan"; }
33
34 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetMalwareProtectionPlanId() const { return m_malwareProtectionPlanId; }
42 inline bool MalwareProtectionPlanIdHasBeenSet() const { return m_malwareProtectionPlanIdHasBeenSet; }
43 template<typename MalwareProtectionPlanIdT = Aws::String>
44 void SetMalwareProtectionPlanId(MalwareProtectionPlanIdT&& value) { m_malwareProtectionPlanIdHasBeenSet = true; m_malwareProtectionPlanId = std::forward<MalwareProtectionPlanIdT>(value); }
45 template<typename MalwareProtectionPlanIdT = Aws::String>
46 UpdateMalwareProtectionPlanRequest& WithMalwareProtectionPlanId(MalwareProtectionPlanIdT&& value) { SetMalwareProtectionPlanId(std::forward<MalwareProtectionPlanIdT>(value)); return *this;}
48
50
54 inline const Aws::String& GetRole() const { return m_role; }
55 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
56 template<typename RoleT = Aws::String>
57 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
58 template<typename RoleT = Aws::String>
59 UpdateMalwareProtectionPlanRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
61
63
67 inline const MalwareProtectionPlanActions& GetActions() const { return m_actions; }
68 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
69 template<typename ActionsT = MalwareProtectionPlanActions>
70 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
71 template<typename ActionsT = MalwareProtectionPlanActions>
72 UpdateMalwareProtectionPlanRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
74
76
81 inline const UpdateProtectedResource& GetProtectedResource() const { return m_protectedResource; }
82 inline bool ProtectedResourceHasBeenSet() const { return m_protectedResourceHasBeenSet; }
83 template<typename ProtectedResourceT = UpdateProtectedResource>
84 void SetProtectedResource(ProtectedResourceT&& value) { m_protectedResourceHasBeenSet = true; m_protectedResource = std::forward<ProtectedResourceT>(value); }
85 template<typename ProtectedResourceT = UpdateProtectedResource>
86 UpdateMalwareProtectionPlanRequest& WithProtectedResource(ProtectedResourceT&& value) { SetProtectedResource(std::forward<ProtectedResourceT>(value)); return *this;}
88 private:
89
90 Aws::String m_malwareProtectionPlanId;
91 bool m_malwareProtectionPlanIdHasBeenSet = false;
92
93 Aws::String m_role;
94 bool m_roleHasBeenSet = false;
95
97 bool m_actionsHasBeenSet = false;
98
99 UpdateProtectedResource m_protectedResource;
100 bool m_protectedResourceHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace GuardDuty
105} // 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