AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdateRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.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/RuleType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace NetworkSecurityManager {
18namespace Model {
19
23 public:
24 AWS_NETWORKSECURITYMANAGER_API UpdateRuleRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateRule"; }
31
32 AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetRuleIdentifier() const { return m_ruleIdentifier; }
40 inline bool RuleIdentifierHasBeenSet() const { return m_ruleIdentifierHasBeenSet; }
41 template <typename RuleIdentifierT = Aws::String>
42 void SetRuleIdentifier(RuleIdentifierT&& value) {
43 m_ruleIdentifierHasBeenSet = true;
44 m_ruleIdentifier = std::forward<RuleIdentifierT>(value);
45 }
46 template <typename RuleIdentifierT = Aws::String>
47 UpdateRuleRequest& WithRuleIdentifier(RuleIdentifierT&& value) {
48 SetRuleIdentifier(std::forward<RuleIdentifierT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
60 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
61 template <typename UpdateTokenT = Aws::String>
62 void SetUpdateToken(UpdateTokenT&& value) {
63 m_updateTokenHasBeenSet = true;
64 m_updateToken = std::forward<UpdateTokenT>(value);
65 }
66 template <typename UpdateTokenT = Aws::String>
67 UpdateRuleRequest& WithUpdateToken(UpdateTokenT&& value) {
68 SetUpdateToken(std::forward<UpdateTokenT>(value));
69 return *this;
70 }
72
74
78 inline RuleType GetRuleType() const { return m_ruleType; }
79 inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; }
80 inline void SetRuleType(RuleType value) {
81 m_ruleTypeHasBeenSet = true;
82 m_ruleType = value;
83 }
85 SetRuleType(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetRuleDescription() const { return m_ruleDescription; }
95 inline bool RuleDescriptionHasBeenSet() const { return m_ruleDescriptionHasBeenSet; }
96 template <typename RuleDescriptionT = Aws::String>
97 void SetRuleDescription(RuleDescriptionT&& value) {
98 m_ruleDescriptionHasBeenSet = true;
99 m_ruleDescription = std::forward<RuleDescriptionT>(value);
100 }
101 template <typename RuleDescriptionT = Aws::String>
102 UpdateRuleRequest& WithRuleDescription(RuleDescriptionT&& value) {
103 SetRuleDescription(std::forward<RuleDescriptionT>(value));
104 return *this;
105 }
107
109
121 inline Aws::Utils::DocumentView GetConfiguration() const { return m_configuration; }
122 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
123 template <typename ConfigurationT = Aws::Utils::Document>
124 void SetConfiguration(ConfigurationT&& value) {
125 m_configurationHasBeenSet = true;
126 m_configuration = std::forward<ConfigurationT>(value);
127 }
128 template <typename ConfigurationT = Aws::Utils::Document>
129 UpdateRuleRequest& WithConfiguration(ConfigurationT&& value) {
130 SetConfiguration(std::forward<ConfigurationT>(value));
131 return *this;
132 }
134
136
141 inline bool GetIsPublished() const { return m_isPublished; }
142 inline bool IsPublishedHasBeenSet() const { return m_isPublishedHasBeenSet; }
143 inline void SetIsPublished(bool value) {
144 m_isPublishedHasBeenSet = true;
145 m_isPublished = value;
146 }
147 inline UpdateRuleRequest& WithIsPublished(bool value) {
148 SetIsPublished(value);
149 return *this;
150 }
152
154
160 inline const Aws::String& GetClientToken() const { return m_clientToken; }
161 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
162 template <typename ClientTokenT = Aws::String>
163 void SetClientToken(ClientTokenT&& value) {
164 m_clientTokenHasBeenSet = true;
165 m_clientToken = std::forward<ClientTokenT>(value);
166 }
167 template <typename ClientTokenT = Aws::String>
168 UpdateRuleRequest& WithClientToken(ClientTokenT&& value) {
169 SetClientToken(std::forward<ClientTokenT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_ruleIdentifier;
175
176 Aws::String m_updateToken;
177
178 RuleType m_ruleType{RuleType::NOT_SET};
179
180 Aws::String m_ruleDescription;
181
182 Aws::Utils::Document m_configuration;
183
184 bool m_isPublished{false};
185
187 bool m_ruleIdentifierHasBeenSet = false;
188 bool m_updateTokenHasBeenSet = false;
189 bool m_ruleTypeHasBeenSet = false;
190 bool m_ruleDescriptionHasBeenSet = false;
191 bool m_configurationHasBeenSet = false;
192 bool m_isPublishedHasBeenSet = false;
193 bool m_clientTokenHasBeenSet = true;
194};
195
196} // namespace Model
197} // namespace NetworkSecurityManager
198} // namespace Aws
UpdateRuleRequest & WithClientToken(ClientTokenT &&value)
UpdateRuleRequest & WithRuleIdentifier(RuleIdentifierT &&value)
UpdateRuleRequest & WithConfiguration(ConfigurationT &&value)
AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override
UpdateRuleRequest & WithUpdateToken(UpdateTokenT &&value)
virtual const char * GetServiceRequestName() const override
UpdateRuleRequest & WithRuleDescription(RuleDescriptionT &&value)
AWS_NETWORKSECURITYMANAGER_API UpdateRuleRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String