AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/abuse-signal/AbuseSignal_EXPORTS.h>
8#include <aws/abuse-signal/model/ValidationExceptionField.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AbuseSignal {
22namespace Model {
23
32 public:
33 AWS_ABUSESIGNAL_API ValidationException() = default;
34 AWS_ABUSESIGNAL_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ABUSESIGNAL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetMessage() const { return m_message; }
43 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
44 template <typename MessageT = Aws::String>
45 void SetMessage(MessageT&& value) {
46 m_messageHasBeenSet = true;
47 m_message = std::forward<MessageT>(value);
48 }
49 template <typename MessageT = Aws::String>
50 ValidationException& WithMessage(MessageT&& value) {
51 SetMessage(std::forward<MessageT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
61 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
62 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
63 void SetFieldList(FieldListT&& value) {
64 m_fieldListHasBeenSet = true;
65 m_fieldList = std::forward<FieldListT>(value);
66 }
67 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
68 ValidationException& WithFieldList(FieldListT&& value) {
69 SetFieldList(std::forward<FieldListT>(value));
70 return *this;
71 }
72 template <typename FieldListT = ValidationExceptionField>
73 ValidationException& AddFieldList(FieldListT&& value) {
74 m_fieldListHasBeenSet = true;
75 m_fieldList.emplace_back(std::forward<FieldListT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_message;
81
83 bool m_messageHasBeenSet = false;
84 bool m_fieldListHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace AbuseSignal
89} // namespace Aws
ValidationException & WithMessage(MessageT &&value)
ValidationException & AddFieldList(FieldListT &&value)
AWS_ABUSESIGNAL_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ABUSESIGNAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ABUSESIGNAL_API ValidationException()=default
AWS_ABUSESIGNAL_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithFieldList(FieldListT &&value)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue