AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
WafAtpConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9#include <aws/lightsail/model/WafPayloadTypeEnum.h>
10#include <aws/lightsail/model/WafResponseInspection.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail {
22namespace Model {
23
32 public:
33 AWS_LIGHTSAIL_API WafAtpConfig() = default;
34 AWS_LIGHTSAIL_API WafAtpConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LIGHTSAIL_API WafAtpConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline const Aws::String& GetLoginPath() const { return m_loginPath; }
47 inline bool LoginPathHasBeenSet() const { return m_loginPathHasBeenSet; }
48 template <typename LoginPathT = Aws::String>
49 void SetLoginPath(LoginPathT&& value) {
50 m_loginPathHasBeenSet = true;
51 m_loginPath = std::forward<LoginPathT>(value);
52 }
53 template <typename LoginPathT = Aws::String>
54 WafAtpConfig& WithLoginPath(LoginPathT&& value) {
55 SetLoginPath(std::forward<LoginPathT>(value));
56 return *this;
57 }
59
61
67 inline WafPayloadTypeEnum GetPayloadType() const { return m_payloadType; }
68 inline bool PayloadTypeHasBeenSet() const { return m_payloadTypeHasBeenSet; }
70 m_payloadTypeHasBeenSet = true;
71 m_payloadType = value;
72 }
74 SetPayloadType(value);
75 return *this;
76 }
78
80
88 inline const Aws::String& GetUsernameField() const { return m_usernameField; }
89 inline bool UsernameFieldHasBeenSet() const { return m_usernameFieldHasBeenSet; }
90 template <typename UsernameFieldT = Aws::String>
91 void SetUsernameField(UsernameFieldT&& value) {
92 m_usernameFieldHasBeenSet = true;
93 m_usernameField = std::forward<UsernameFieldT>(value);
94 }
95 template <typename UsernameFieldT = Aws::String>
96 WafAtpConfig& WithUsernameField(UsernameFieldT&& value) {
97 SetUsernameField(std::forward<UsernameFieldT>(value));
98 return *this;
99 }
101
103
111 inline const Aws::String& GetPasswordField() const { return m_passwordField; }
112 inline bool PasswordFieldHasBeenSet() const { return m_passwordFieldHasBeenSet; }
113 template <typename PasswordFieldT = Aws::String>
114 void SetPasswordField(PasswordFieldT&& value) {
115 m_passwordFieldHasBeenSet = true;
116 m_passwordField = std::forward<PasswordFieldT>(value);
117 }
118 template <typename PasswordFieldT = Aws::String>
119 WafAtpConfig& WithPasswordField(PasswordFieldT&& value) {
120 SetPasswordField(std::forward<PasswordFieldT>(value));
121 return *this;
122 }
124
126
130 inline const WafResponseInspection& GetResponseInspection() const { return m_responseInspection; }
131 inline bool ResponseInspectionHasBeenSet() const { return m_responseInspectionHasBeenSet; }
132 template <typename ResponseInspectionT = WafResponseInspection>
133 void SetResponseInspection(ResponseInspectionT&& value) {
134 m_responseInspectionHasBeenSet = true;
135 m_responseInspection = std::forward<ResponseInspectionT>(value);
136 }
137 template <typename ResponseInspectionT = WafResponseInspection>
138 WafAtpConfig& WithResponseInspection(ResponseInspectionT&& value) {
139 SetResponseInspection(std::forward<ResponseInspectionT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_loginPath;
145
147
148 Aws::String m_usernameField;
149
150 Aws::String m_passwordField;
151
152 WafResponseInspection m_responseInspection;
153 bool m_loginPathHasBeenSet = false;
154 bool m_payloadTypeHasBeenSet = false;
155 bool m_usernameFieldHasBeenSet = false;
156 bool m_passwordFieldHasBeenSet = false;
157 bool m_responseInspectionHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Lightsail
162} // namespace Aws
AWS_LIGHTSAIL_API WafAtpConfig(Aws::Utils::Json::JsonView jsonValue)
const WafResponseInspection & GetResponseInspection() const
WafAtpConfig & WithResponseInspection(ResponseInspectionT &&value)
WafAtpConfig & WithUsernameField(UsernameFieldT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLoginPath() const
AWS_LIGHTSAIL_API WafAtpConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPasswordField(PasswordFieldT &&value)
void SetLoginPath(LoginPathT &&value)
void SetUsernameField(UsernameFieldT &&value)
void SetPayloadType(WafPayloadTypeEnum value)
WafAtpConfig & WithPasswordField(PasswordFieldT &&value)
const Aws::String & GetUsernameField() const
const Aws::String & GetPasswordField() const
WafAtpConfig & WithLoginPath(LoginPathT &&value)
AWS_LIGHTSAIL_API WafAtpConfig()=default
void SetResponseInspection(ResponseInspectionT &&value)
WafPayloadTypeEnum GetPayloadType() const
WafAtpConfig & WithPayloadType(WafPayloadTypeEnum value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue