AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
46 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
47 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline CreateMalwareProtectionPlanRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline CreateMalwareProtectionPlanRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
52
54
58 inline const Aws::String& GetRole() const{ return m_role; }
59 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
60 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
61 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
62 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
63 inline CreateMalwareProtectionPlanRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
64 inline CreateMalwareProtectionPlanRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
65 inline CreateMalwareProtectionPlanRequest& WithRole(const char* value) { SetRole(value); return *this;}
67
69
74 inline const CreateProtectedResource& GetProtectedResource() const{ return m_protectedResource; }
75 inline bool ProtectedResourceHasBeenSet() const { return m_protectedResourceHasBeenSet; }
76 inline void SetProtectedResource(const CreateProtectedResource& value) { m_protectedResourceHasBeenSet = true; m_protectedResource = value; }
77 inline void SetProtectedResource(CreateProtectedResource&& value) { m_protectedResourceHasBeenSet = true; m_protectedResource = std::move(value); }
81
83
87 inline const MalwareProtectionPlanActions& GetActions() const{ return m_actions; }
88 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
89 inline void SetActions(const MalwareProtectionPlanActions& value) { m_actionsHasBeenSet = true; m_actions = value; }
90 inline void SetActions(MalwareProtectionPlanActions&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
94
96
99 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
102 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 inline CreateMalwareProtectionPlanRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
106 inline CreateMalwareProtectionPlanRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
107 inline CreateMalwareProtectionPlanRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
108 inline CreateMalwareProtectionPlanRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
109 inline CreateMalwareProtectionPlanRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
110 inline CreateMalwareProtectionPlanRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
111 inline CreateMalwareProtectionPlanRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
113 private:
114
115 Aws::String m_clientToken;
116 bool m_clientTokenHasBeenSet = false;
117
118 Aws::String m_role;
119 bool m_roleHasBeenSet = false;
120
121 CreateProtectedResource m_protectedResource;
122 bool m_protectedResourceHasBeenSet = false;
123
125 bool m_actionsHasBeenSet = false;
126
128 bool m_tagsHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace GuardDuty
133} // namespace Aws
CreateMalwareProtectionPlanRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateMalwareProtectionPlanRequest & AddTags(const char *key, const char *value)
CreateMalwareProtectionPlanRequest & WithRole(const char *value)
CreateMalwareProtectionPlanRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateMalwareProtectionPlanRequest & AddTags(const char *key, Aws::String &&value)
CreateMalwareProtectionPlanRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateMalwareProtectionPlanRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateMalwareProtectionPlanRequest & WithRole(Aws::String &&value)
CreateMalwareProtectionPlanRequest & WithProtectedResource(CreateProtectedResource &&value)
CreateMalwareProtectionPlanRequest & WithActions(MalwareProtectionPlanActions &&value)
CreateMalwareProtectionPlanRequest & AddTags(Aws::String &&key, const char *value)
CreateMalwareProtectionPlanRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateMalwareProtectionPlanRequest & WithActions(const MalwareProtectionPlanActions &value)
CreateMalwareProtectionPlanRequest & WithClientToken(const char *value)
CreateMalwareProtectionPlanRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateMalwareProtectionPlanRequest & WithProtectedResource(const CreateProtectedResource &value)
CreateMalwareProtectionPlanRequest & WithClientToken(const Aws::String &value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateMalwareProtectionPlanRequest & WithClientToken(Aws::String &&value)
CreateMalwareProtectionPlanRequest & WithRole(const Aws::String &value)
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