AWS SDK for C++  1.9.104
AWS SDK for C++
WAFInvalidParameterException.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WAFV2
23 {
24 namespace Model
25 {
26 
40  {
41  public:
46 
47 
48 
49  inline const Aws::String& GetMessage() const{ return m_message; }
50 
51 
52  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
53 
54 
55  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
56 
57 
58  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
59 
60 
61  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
62 
63 
64  inline WAFInvalidParameterException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
65 
66 
67  inline WAFInvalidParameterException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
68 
69 
70  inline WAFInvalidParameterException& WithMessage(const char* value) { SetMessage(value); return *this;}
71 
72 
76  inline const ParameterExceptionField& GetField() const{ return m_field; }
77 
81  inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
82 
86  inline void SetField(const ParameterExceptionField& value) { m_fieldHasBeenSet = true; m_field = value; }
87 
91  inline void SetField(ParameterExceptionField&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
92 
96  inline WAFInvalidParameterException& WithField(const ParameterExceptionField& value) { SetField(value); return *this;}
97 
101  inline WAFInvalidParameterException& WithField(ParameterExceptionField&& value) { SetField(std::move(value)); return *this;}
102 
103 
107  inline const Aws::String& GetParameter() const{ return m_parameter; }
108 
112  inline bool ParameterHasBeenSet() const { return m_parameterHasBeenSet; }
113 
117  inline void SetParameter(const Aws::String& value) { m_parameterHasBeenSet = true; m_parameter = value; }
118 
122  inline void SetParameter(Aws::String&& value) { m_parameterHasBeenSet = true; m_parameter = std::move(value); }
123 
127  inline void SetParameter(const char* value) { m_parameterHasBeenSet = true; m_parameter.assign(value); }
128 
132  inline WAFInvalidParameterException& WithParameter(const Aws::String& value) { SetParameter(value); return *this;}
133 
137  inline WAFInvalidParameterException& WithParameter(Aws::String&& value) { SetParameter(std::move(value)); return *this;}
138 
142  inline WAFInvalidParameterException& WithParameter(const char* value) { SetParameter(value); return *this;}
143 
144 
148  inline const Aws::String& GetReason() const{ return m_reason; }
149 
153  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
154 
158  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
159 
163  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
164 
168  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
169 
173  inline WAFInvalidParameterException& WithReason(const Aws::String& value) { SetReason(value); return *this;}
174 
178  inline WAFInvalidParameterException& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
179 
183  inline WAFInvalidParameterException& WithReason(const char* value) { SetReason(value); return *this;}
184 
185  private:
186 
187  Aws::String m_message;
188  bool m_messageHasBeenSet;
189 
190  ParameterExceptionField m_field;
191  bool m_fieldHasBeenSet;
192 
193  Aws::String m_parameter;
194  bool m_parameterHasBeenSet;
195 
196  Aws::String m_reason;
197  bool m_reasonHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace WAFV2
202 } // namespace Aws
Aws::WAFV2::Model::WAFInvalidParameterException::WithMessage
WAFInvalidParameterException & WithMessage(Aws::String &&value)
Definition: WAFInvalidParameterException.h:67
Aws::WAFV2::Model::WAFInvalidParameterException::WithParameter
WAFInvalidParameterException & WithParameter(Aws::String &&value)
Definition: WAFInvalidParameterException.h:137
Aws::WAFV2::Model::WAFInvalidParameterException::SetParameter
void SetParameter(const char *value)
Definition: WAFInvalidParameterException.h:127
Aws::WAFV2::Model::WAFInvalidParameterException::WithField
WAFInvalidParameterException & WithField(ParameterExceptionField &&value)
Definition: WAFInvalidParameterException.h:101
Aws::WAFV2::Model::WAFInvalidParameterException::WithReason
WAFInvalidParameterException & WithReason(const char *value)
Definition: WAFInvalidParameterException.h:183
Aws::WAFV2::Model::WAFInvalidParameterException::WAFInvalidParameterException
WAFInvalidParameterException(Aws::Utils::Json::JsonView jsonValue)
ParameterExceptionField.h
Aws::WAFV2::Model::WAFInvalidParameterException::WithMessage
WAFInvalidParameterException & WithMessage(const Aws::String &value)
Definition: WAFInvalidParameterException.h:64
Aws::WAFV2::Model::WAFInvalidParameterException::WithParameter
WAFInvalidParameterException & WithParameter(const char *value)
Definition: WAFInvalidParameterException.h:142
Aws::WAFV2::Model::WAFInvalidParameterException::GetField
const ParameterExceptionField & GetField() const
Definition: WAFInvalidParameterException.h:76
Aws::WAFV2::Model::WAFInvalidParameterException::ParameterHasBeenSet
bool ParameterHasBeenSet() const
Definition: WAFInvalidParameterException.h:112
Aws::WAFV2::Model::WAFInvalidParameterException::FieldHasBeenSet
bool FieldHasBeenSet() const
Definition: WAFInvalidParameterException.h:81
Aws::WAFV2::Model::WAFInvalidParameterException::SetMessage
void SetMessage(const char *value)
Definition: WAFInvalidParameterException.h:61
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::WAFInvalidParameterException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::WAFInvalidParameterException::WithParameter
WAFInvalidParameterException & WithParameter(const Aws::String &value)
Definition: WAFInvalidParameterException.h:132
WAFV2_EXPORTS.h
Aws::WAFV2::Model::WAFInvalidParameterException::SetParameter
void SetParameter(const Aws::String &value)
Definition: WAFInvalidParameterException.h:117
Aws::WAFV2::Model::WAFInvalidParameterException::WithField
WAFInvalidParameterException & WithField(const ParameterExceptionField &value)
Definition: WAFInvalidParameterException.h:96
Aws::WAFV2::Model::WAFInvalidParameterException::SetReason
void SetReason(const Aws::String &value)
Definition: WAFInvalidParameterException.h:158
Aws::WAFV2::Model::WAFInvalidParameterException::GetMessage
const Aws::String & GetMessage() const
Definition: WAFInvalidParameterException.h:49
Aws::WAFV2::Model::WAFInvalidParameterException::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: WAFInvalidParameterException.h:153
Aws::WAFV2::Model::WAFInvalidParameterException::SetReason
void SetReason(Aws::String &&value)
Definition: WAFInvalidParameterException.h:163
Aws::WAFV2::Model::WAFInvalidParameterException::SetField
void SetField(const ParameterExceptionField &value)
Definition: WAFInvalidParameterException.h:86
Aws::WAFV2::Model::WAFInvalidParameterException::SetMessage
void SetMessage(Aws::String &&value)
Definition: WAFInvalidParameterException.h:58
Aws::WAFV2::Model::WAFInvalidParameterException::WithMessage
WAFInvalidParameterException & WithMessage(const char *value)
Definition: WAFInvalidParameterException.h:70
Aws::WAFV2::Model::WAFInvalidParameterException::WithReason
WAFInvalidParameterException & WithReason(const Aws::String &value)
Definition: WAFInvalidParameterException.h:173
Aws::WAFV2::Model::WAFInvalidParameterException::SetField
void SetField(ParameterExceptionField &&value)
Definition: WAFInvalidParameterException.h:91
Aws::WAFV2::Model::WAFInvalidParameterException
Definition: WAFInvalidParameterException.h:40
Aws::WAFV2::Model::WAFInvalidParameterException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: WAFInvalidParameterException.h:52
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::WAFV2::Model::WAFInvalidParameterException::SetMessage
void SetMessage(const Aws::String &value)
Definition: WAFInvalidParameterException.h:55
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::WAFInvalidParameterException::WithReason
WAFInvalidParameterException & WithReason(Aws::String &&value)
Definition: WAFInvalidParameterException.h:178
Aws::WAFV2::Model::WAFInvalidParameterException::WAFInvalidParameterException
WAFInvalidParameterException()
Aws::WAFV2::Model::WAFInvalidParameterException::SetReason
void SetReason(const char *value)
Definition: WAFInvalidParameterException.h:168
Aws::WAFV2::Model::ParameterExceptionField
ParameterExceptionField
Definition: ParameterExceptionField.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::WAFInvalidParameterException::GetParameter
const Aws::String & GetParameter() const
Definition: WAFInvalidParameterException.h:107
Aws::WAFV2::Model::WAFInvalidParameterException::operator=
WAFInvalidParameterException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::WAFInvalidParameterException::SetParameter
void SetParameter(Aws::String &&value)
Definition: WAFInvalidParameterException.h:122
Aws::WAFV2::Model::WAFInvalidParameterException::GetReason
const Aws::String & GetReason() const
Definition: WAFInvalidParameterException.h:148