AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GenerateRuleConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-security-manager/NetworkSecurityManagerRequest.h>
10#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
11#include <aws/network-security-manager/model/RuleFirewallType.h>
12#include <aws/network-security-manager/model/RuleType.h>
13#include <aws/network-security-manager/model/WAFConfigDataType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace NetworkSecurityManager {
19namespace Model {
20
24 public:
25 AWS_NETWORKSECURITYMANAGER_API GenerateRuleConfigurationRequest() = 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 "GenerateRuleConfiguration"; }
32
33 AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetPrompt() const { return m_prompt; }
41 inline bool PromptHasBeenSet() const { return m_promptHasBeenSet; }
42 template <typename PromptT = Aws::String>
43 void SetPrompt(PromptT&& value) {
44 m_promptHasBeenSet = true;
45 m_prompt = std::forward<PromptT>(value);
46 }
47 template <typename PromptT = Aws::String>
49 SetPrompt(std::forward<PromptT>(value));
50 return *this;
51 }
53
55
58 inline RuleFirewallType GetRuleFirewallType() const { return m_ruleFirewallType; }
59 inline bool RuleFirewallTypeHasBeenSet() const { return m_ruleFirewallTypeHasBeenSet; }
61 m_ruleFirewallTypeHasBeenSet = true;
62 m_ruleFirewallType = value;
63 }
69
71
75 inline RuleType GetRuleType() const { return m_ruleType; }
76 inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; }
77 inline void SetRuleType(RuleType value) {
78 m_ruleTypeHasBeenSet = true;
79 m_ruleType = value;
80 }
82 SetRuleType(value);
83 return *this;
84 }
86
88
93 inline WAFConfigDataType GetWafConfigDataType() const { return m_wafConfigDataType; }
94 inline bool WafConfigDataTypeHasBeenSet() const { return m_wafConfigDataTypeHasBeenSet; }
96 m_wafConfigDataTypeHasBeenSet = true;
97 m_wafConfigDataType = value;
98 }
104
106
111 inline const Aws::String& GetCurrentConfiguration() const { return m_currentConfiguration; }
112 inline bool CurrentConfigurationHasBeenSet() const { return m_currentConfigurationHasBeenSet; }
113 template <typename CurrentConfigurationT = Aws::String>
114 void SetCurrentConfiguration(CurrentConfigurationT&& value) {
115 m_currentConfigurationHasBeenSet = true;
116 m_currentConfiguration = std::forward<CurrentConfigurationT>(value);
117 }
118 template <typename CurrentConfigurationT = Aws::String>
120 SetCurrentConfiguration(std::forward<CurrentConfigurationT>(value));
121 return *this;
122 }
124
126
132 inline const Aws::String& GetClientToken() const { return m_clientToken; }
133 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
134 template <typename ClientTokenT = Aws::String>
135 void SetClientToken(ClientTokenT&& value) {
136 m_clientTokenHasBeenSet = true;
137 m_clientToken = std::forward<ClientTokenT>(value);
138 }
139 template <typename ClientTokenT = Aws::String>
141 SetClientToken(std::forward<ClientTokenT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_prompt;
147
149
150 RuleType m_ruleType{RuleType::NOT_SET};
151
153
154 Aws::String m_currentConfiguration;
155
157 bool m_promptHasBeenSet = false;
158 bool m_ruleFirewallTypeHasBeenSet = false;
159 bool m_ruleTypeHasBeenSet = false;
160 bool m_wafConfigDataTypeHasBeenSet = false;
161 bool m_currentConfigurationHasBeenSet = false;
162 bool m_clientTokenHasBeenSet = true;
163};
164
165} // namespace Model
166} // namespace NetworkSecurityManager
167} // namespace Aws
AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override
GenerateRuleConfigurationRequest & WithWafConfigDataType(WAFConfigDataType value)
GenerateRuleConfigurationRequest & WithCurrentConfiguration(CurrentConfigurationT &&value)
AWS_NETWORKSECURITYMANAGER_API GenerateRuleConfigurationRequest()=default
GenerateRuleConfigurationRequest & WithClientToken(ClientTokenT &&value)
GenerateRuleConfigurationRequest & WithRuleFirewallType(RuleFirewallType value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String