AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdatePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/network-security-manager/NetworkSecurityManagerRequest.h>
11#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
12#include <aws/network-security-manager/model/PolicyConfiguration.h>
13#include <aws/network-security-manager/model/TemplateOrRuleReference.h>
14
15#include <utility>
16
17namespace Aws {
18namespace NetworkSecurityManager {
19namespace Model {
20
24 public:
25 AWS_NETWORKSECURITYMANAGER_API UpdatePolicyRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdatePolicy"; }
32
33 AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetPolicyIdentifier() const { return m_policyIdentifier; }
41 inline bool PolicyIdentifierHasBeenSet() const { return m_policyIdentifierHasBeenSet; }
42 template <typename PolicyIdentifierT = Aws::String>
43 void SetPolicyIdentifier(PolicyIdentifierT&& value) {
44 m_policyIdentifierHasBeenSet = true;
45 m_policyIdentifier = std::forward<PolicyIdentifierT>(value);
46 }
47 template <typename PolicyIdentifierT = Aws::String>
48 UpdatePolicyRequest& WithPolicyIdentifier(PolicyIdentifierT&& value) {
49 SetPolicyIdentifier(std::forward<PolicyIdentifierT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
61 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
62 template <typename UpdateTokenT = Aws::String>
63 void SetUpdateToken(UpdateTokenT&& value) {
64 m_updateTokenHasBeenSet = true;
65 m_updateToken = std::forward<UpdateTokenT>(value);
66 }
67 template <typename UpdateTokenT = Aws::String>
68 UpdatePolicyRequest& WithUpdateToken(UpdateTokenT&& value) {
69 SetUpdateToken(std::forward<UpdateTokenT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetPolicyDescription() const { return m_policyDescription; }
79 inline bool PolicyDescriptionHasBeenSet() const { return m_policyDescriptionHasBeenSet; }
80 template <typename PolicyDescriptionT = Aws::String>
81 void SetPolicyDescription(PolicyDescriptionT&& value) {
82 m_policyDescriptionHasBeenSet = true;
83 m_policyDescription = std::forward<PolicyDescriptionT>(value);
84 }
85 template <typename PolicyDescriptionT = Aws::String>
86 UpdatePolicyRequest& WithPolicyDescription(PolicyDescriptionT&& value) {
87 SetPolicyDescription(std::forward<PolicyDescriptionT>(value));
88 return *this;
89 }
91
93
96 inline int GetPriority() const { return m_priority; }
97 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
98 inline void SetPriority(int value) {
99 m_priorityHasBeenSet = true;
100 m_priority = value;
101 }
103 SetPriority(value);
104 return *this;
105 }
107
109
114 inline const Aws::Vector<TemplateOrRuleReference>& GetAssociatedTemplateAndRuleList() const { return m_associatedTemplateAndRuleList; }
115 inline bool AssociatedTemplateAndRuleListHasBeenSet() const { return m_associatedTemplateAndRuleListHasBeenSet; }
116 template <typename AssociatedTemplateAndRuleListT = Aws::Vector<TemplateOrRuleReference>>
117 void SetAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT&& value) {
118 m_associatedTemplateAndRuleListHasBeenSet = true;
119 m_associatedTemplateAndRuleList = std::forward<AssociatedTemplateAndRuleListT>(value);
120 }
121 template <typename AssociatedTemplateAndRuleListT = Aws::Vector<TemplateOrRuleReference>>
122 UpdatePolicyRequest& WithAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT&& value) {
123 SetAssociatedTemplateAndRuleList(std::forward<AssociatedTemplateAndRuleListT>(value));
124 return *this;
125 }
126 template <typename AssociatedTemplateAndRuleListT = TemplateOrRuleReference>
127 UpdatePolicyRequest& AddAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT&& value) {
128 m_associatedTemplateAndRuleListHasBeenSet = true;
129 m_associatedTemplateAndRuleList.emplace_back(std::forward<AssociatedTemplateAndRuleListT>(value));
130 return *this;
131 }
133
135
139 inline const PolicyConfiguration& GetPolicyConfiguration() const { return m_policyConfiguration; }
140 inline bool PolicyConfigurationHasBeenSet() const { return m_policyConfigurationHasBeenSet; }
141 template <typename PolicyConfigurationT = PolicyConfiguration>
142 void SetPolicyConfiguration(PolicyConfigurationT&& value) {
143 m_policyConfigurationHasBeenSet = true;
144 m_policyConfiguration = std::forward<PolicyConfigurationT>(value);
145 }
146 template <typename PolicyConfigurationT = PolicyConfiguration>
147 UpdatePolicyRequest& WithPolicyConfiguration(PolicyConfigurationT&& value) {
148 SetPolicyConfiguration(std::forward<PolicyConfigurationT>(value));
149 return *this;
150 }
152
154
159 inline bool GetIsPublished() const { return m_isPublished; }
160 inline bool IsPublishedHasBeenSet() const { return m_isPublishedHasBeenSet; }
161 inline void SetIsPublished(bool value) {
162 m_isPublishedHasBeenSet = true;
163 m_isPublished = value;
164 }
166 SetIsPublished(value);
167 return *this;
168 }
170
172
178 inline const Aws::String& GetClientToken() const { return m_clientToken; }
179 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
180 template <typename ClientTokenT = Aws::String>
181 void SetClientToken(ClientTokenT&& value) {
182 m_clientTokenHasBeenSet = true;
183 m_clientToken = std::forward<ClientTokenT>(value);
184 }
185 template <typename ClientTokenT = Aws::String>
186 UpdatePolicyRequest& WithClientToken(ClientTokenT&& value) {
187 SetClientToken(std::forward<ClientTokenT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_policyIdentifier;
193
194 Aws::String m_updateToken;
195
196 Aws::String m_policyDescription;
197
198 int m_priority{0};
199
200 Aws::Vector<TemplateOrRuleReference> m_associatedTemplateAndRuleList;
201
202 PolicyConfiguration m_policyConfiguration;
203
204 bool m_isPublished{false};
205
207 bool m_policyIdentifierHasBeenSet = false;
208 bool m_updateTokenHasBeenSet = false;
209 bool m_policyDescriptionHasBeenSet = false;
210 bool m_priorityHasBeenSet = false;
211 bool m_associatedTemplateAndRuleListHasBeenSet = false;
212 bool m_policyConfigurationHasBeenSet = false;
213 bool m_isPublishedHasBeenSet = false;
214 bool m_clientTokenHasBeenSet = true;
215};
216
217} // namespace Model
218} // namespace NetworkSecurityManager
219} // namespace Aws
const Aws::Vector< TemplateOrRuleReference > & GetAssociatedTemplateAndRuleList() const
UpdatePolicyRequest & WithAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
void SetAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
UpdatePolicyRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
UpdatePolicyRequest & AddAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override
AWS_NETWORKSECURITYMANAGER_API UpdatePolicyRequest()=default
UpdatePolicyRequest & WithPolicyDescription(PolicyDescriptionT &&value)
UpdatePolicyRequest & WithUpdateToken(UpdateTokenT &&value)
UpdatePolicyRequest & WithPolicyIdentifier(PolicyIdentifierT &&value)
UpdatePolicyRequest & WithPolicyConfiguration(PolicyConfigurationT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector