AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetMalwareProtectionPlanId(const Aws::String& value) { m_malwareProtectionPlanIdHasBeenSet = true; m_malwareProtectionPlanId = value; }
44 inline void SetMalwareProtectionPlanId(Aws::String&& value) { m_malwareProtectionPlanIdHasBeenSet = true; m_malwareProtectionPlanId = std::move(value); }
45 inline void SetMalwareProtectionPlanId(const char* value) { m_malwareProtectionPlanIdHasBeenSet = true; m_malwareProtectionPlanId.assign(value); }
50
52
56 inline const Aws::String& GetRole() const{ return m_role; }
57 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
58 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
59 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
60 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
61 inline UpdateMalwareProtectionPlanRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
62 inline UpdateMalwareProtectionPlanRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
63 inline UpdateMalwareProtectionPlanRequest& WithRole(const char* value) { SetRole(value); return *this;}
65
67
71 inline const MalwareProtectionPlanActions& GetActions() const{ return m_actions; }
72 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
73 inline void SetActions(const MalwareProtectionPlanActions& value) { m_actionsHasBeenSet = true; m_actions = value; }
74 inline void SetActions(MalwareProtectionPlanActions&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
78
80
85 inline const UpdateProtectedResource& GetProtectedResource() const{ return m_protectedResource; }
86 inline bool ProtectedResourceHasBeenSet() const { return m_protectedResourceHasBeenSet; }
87 inline void SetProtectedResource(const UpdateProtectedResource& value) { m_protectedResourceHasBeenSet = true; m_protectedResource = value; }
88 inline void SetProtectedResource(UpdateProtectedResource&& value) { m_protectedResourceHasBeenSet = true; m_protectedResource = std::move(value); }
92 private:
93
94 Aws::String m_malwareProtectionPlanId;
95 bool m_malwareProtectionPlanIdHasBeenSet = false;
96
97 Aws::String m_role;
98 bool m_roleHasBeenSet = false;
99
101 bool m_actionsHasBeenSet = false;
102
103 UpdateProtectedResource m_protectedResource;
104 bool m_protectedResourceHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace GuardDuty
109} // namespace Aws
UpdateMalwareProtectionPlanRequest & WithActions(const MalwareProtectionPlanActions &value)
UpdateMalwareProtectionPlanRequest & WithActions(MalwareProtectionPlanActions &&value)
UpdateMalwareProtectionPlanRequest & WithMalwareProtectionPlanId(const Aws::String &value)
UpdateMalwareProtectionPlanRequest & WithMalwareProtectionPlanId(const char *value)
UpdateMalwareProtectionPlanRequest & WithMalwareProtectionPlanId(Aws::String &&value)
UpdateMalwareProtectionPlanRequest & WithRole(const char *value)
UpdateMalwareProtectionPlanRequest & WithRole(const Aws::String &value)
UpdateMalwareProtectionPlanRequest & WithProtectedResource(const UpdateProtectedResource &value)
UpdateMalwareProtectionPlanRequest & WithProtectedResource(UpdateProtectedResource &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
UpdateMalwareProtectionPlanRequest & WithRole(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String