AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
42 AWS_WAFV2_API WAFInvalidParameterException() = default;
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 template<typename MessageT = Aws::String>
53 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
54 template<typename MessageT = Aws::String>
55 WAFInvalidParameterException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
57
59
62 inline ParameterExceptionField GetField() const { return m_field; }
63 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
64 inline void SetField(ParameterExceptionField value) { m_fieldHasBeenSet = true; m_field = value; }
67
69
72 inline const Aws::String& GetParameter() const { return m_parameter; }
73 inline bool ParameterHasBeenSet() const { return m_parameterHasBeenSet; }
74 template<typename ParameterT = Aws::String>
75 void SetParameter(ParameterT&& value) { m_parameterHasBeenSet = true; m_parameter = std::forward<ParameterT>(value); }
76 template<typename ParameterT = Aws::String>
77 WAFInvalidParameterException& WithParameter(ParameterT&& value) { SetParameter(std::forward<ParameterT>(value)); return *this;}
79
81
84 inline const Aws::String& GetReason() const { return m_reason; }
85 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
86 template<typename ReasonT = Aws::String>
87 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
88 template<typename ReasonT = Aws::String>
89 WAFInvalidParameterException& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
91 private:
92
93 Aws::String m_message;
94 bool m_messageHasBeenSet = false;
95
97 bool m_fieldHasBeenSet = false;
98
99 Aws::String m_parameter;
100 bool m_parameterHasBeenSet = false;
101
102 Aws::String m_reason;
103 bool m_reasonHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace WAFV2
108} // namespace Aws
WAFInvalidParameterException & WithParameter(ParameterT &&value)
AWS_WAFV2_API WAFInvalidParameterException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API WAFInvalidParameterException()=default
WAFInvalidParameterException & WithReason(ReasonT &&value)
WAFInvalidParameterException & WithMessage(MessageT &&value)
WAFInvalidParameterException & WithField(ParameterExceptionField value)
AWS_WAFV2_API WAFInvalidParameterException(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue