AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
10#include <aws/verifiedpermissions/model/ValidationExceptionField.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace VerifiedPermissions {
22namespace Model {
23
63 public:
64 AWS_VERIFIEDPERMISSIONS_API ValidationException() = default;
65 AWS_VERIFIEDPERMISSIONS_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
66 AWS_VERIFIEDPERMISSIONS_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
67 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
68
70
71 inline const Aws::String& GetMessage() const { return m_message; }
72 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
73 template <typename MessageT = Aws::String>
74 void SetMessage(MessageT&& value) {
75 m_messageHasBeenSet = true;
76 m_message = std::forward<MessageT>(value);
77 }
78 template <typename MessageT = Aws::String>
79 ValidationException& WithMessage(MessageT&& value) {
80 SetMessage(std::forward<MessageT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
90 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
91 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
92 void SetFieldList(FieldListT&& value) {
93 m_fieldListHasBeenSet = true;
94 m_fieldList = std::forward<FieldListT>(value);
95 }
96 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
97 ValidationException& WithFieldList(FieldListT&& value) {
98 SetFieldList(std::forward<FieldListT>(value));
99 return *this;
100 }
101 template <typename FieldListT = ValidationExceptionField>
102 ValidationException& AddFieldList(FieldListT&& value) {
103 m_fieldListHasBeenSet = true;
104 m_fieldList.emplace_back(std::forward<FieldListT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_message;
110
112 bool m_messageHasBeenSet = false;
113 bool m_fieldListHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace VerifiedPermissions
118} // namespace Aws
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
AWS_VERIFIEDPERMISSIONS_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VERIFIEDPERMISSIONS_API ValidationException()=default
ValidationException & WithMessage(MessageT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & WithFieldList(FieldListT &&value)
ValidationException & AddFieldList(FieldListT &&value)
AWS_VERIFIEDPERMISSIONS_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue