AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WAFInvalidParameterException.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wafv2/model/ParameterExceptionField.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFV2
23{
24namespace Model
25{
26
40 {
41 public:
45 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
50 inline const Aws::String& GetMessage() const{ return m_message; }
51 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
52 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
53 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
54 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
55 inline WAFInvalidParameterException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
56 inline WAFInvalidParameterException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
57 inline WAFInvalidParameterException& WithMessage(const char* value) { SetMessage(value); return *this;}
59
61
64 inline const ParameterExceptionField& GetField() const{ return m_field; }
65 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
66 inline void SetField(const ParameterExceptionField& value) { m_fieldHasBeenSet = true; m_field = value; }
67 inline void SetField(ParameterExceptionField&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
68 inline WAFInvalidParameterException& WithField(const ParameterExceptionField& value) { SetField(value); return *this;}
69 inline WAFInvalidParameterException& WithField(ParameterExceptionField&& value) { SetField(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetParameter() const{ return m_parameter; }
77 inline bool ParameterHasBeenSet() const { return m_parameterHasBeenSet; }
78 inline void SetParameter(const Aws::String& value) { m_parameterHasBeenSet = true; m_parameter = value; }
79 inline void SetParameter(Aws::String&& value) { m_parameterHasBeenSet = true; m_parameter = std::move(value); }
80 inline void SetParameter(const char* value) { m_parameterHasBeenSet = true; m_parameter.assign(value); }
81 inline WAFInvalidParameterException& WithParameter(const Aws::String& value) { SetParameter(value); return *this;}
82 inline WAFInvalidParameterException& WithParameter(Aws::String&& value) { SetParameter(std::move(value)); return *this;}
83 inline WAFInvalidParameterException& WithParameter(const char* value) { SetParameter(value); return *this;}
85
87
90 inline const Aws::String& GetReason() const{ return m_reason; }
91 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
92 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
93 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
94 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
95 inline WAFInvalidParameterException& WithReason(const Aws::String& value) { SetReason(value); return *this;}
96 inline WAFInvalidParameterException& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
97 inline WAFInvalidParameterException& WithReason(const char* value) { SetReason(value); return *this;}
99 private:
100
101 Aws::String m_message;
102 bool m_messageHasBeenSet = false;
103
105 bool m_fieldHasBeenSet = false;
106
107 Aws::String m_parameter;
108 bool m_parameterHasBeenSet = false;
109
110 Aws::String m_reason;
111 bool m_reasonHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace WAFV2
116} // namespace Aws
WAFInvalidParameterException & WithMessage(const char *value)
WAFInvalidParameterException & WithParameter(Aws::String &&value)
WAFInvalidParameterException & WithReason(const char *value)
AWS_WAFV2_API WAFInvalidParameterException & operator=(Aws::Utils::Json::JsonView jsonValue)
WAFInvalidParameterException & WithField(ParameterExceptionField &&value)
void SetField(const ParameterExceptionField &value)
WAFInvalidParameterException & WithMessage(const Aws::String &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
WAFInvalidParameterException & WithMessage(Aws::String &&value)
WAFInvalidParameterException & WithReason(Aws::String &&value)
WAFInvalidParameterException & WithParameter(const Aws::String &value)
WAFInvalidParameterException & WithField(const ParameterExceptionField &value)
WAFInvalidParameterException & WithParameter(const char *value)
AWS_WAFV2_API WAFInvalidParameterException(Aws::Utils::Json::JsonView jsonValue)
WAFInvalidParameterException & WithReason(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue