AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ValidationException.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Panorama
26{
27namespace Model
28{
29
37 {
38 public:
43
44
48 inline const Aws::Vector<ValidationExceptionErrorArgument>& GetErrorArguments() const{ return m_errorArguments; }
49
53 inline bool ErrorArgumentsHasBeenSet() const { return m_errorArgumentsHasBeenSet; }
54
58 inline void SetErrorArguments(const Aws::Vector<ValidationExceptionErrorArgument>& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments = value; }
59
63 inline void SetErrorArguments(Aws::Vector<ValidationExceptionErrorArgument>&& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments = std::move(value); }
64
69
74
78 inline ValidationException& AddErrorArguments(const ValidationExceptionErrorArgument& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments.push_back(value); return *this; }
79
83 inline ValidationException& AddErrorArguments(ValidationExceptionErrorArgument&& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments.push_back(std::move(value)); return *this; }
84
85
89 inline const Aws::String& GetErrorId() const{ return m_errorId; }
90
94 inline bool ErrorIdHasBeenSet() const { return m_errorIdHasBeenSet; }
95
99 inline void SetErrorId(const Aws::String& value) { m_errorIdHasBeenSet = true; m_errorId = value; }
100
104 inline void SetErrorId(Aws::String&& value) { m_errorIdHasBeenSet = true; m_errorId = std::move(value); }
105
109 inline void SetErrorId(const char* value) { m_errorIdHasBeenSet = true; m_errorId.assign(value); }
110
114 inline ValidationException& WithErrorId(const Aws::String& value) { SetErrorId(value); return *this;}
115
119 inline ValidationException& WithErrorId(Aws::String&& value) { SetErrorId(std::move(value)); return *this;}
120
124 inline ValidationException& WithErrorId(const char* value) { SetErrorId(value); return *this;}
125
126
130 inline const Aws::Vector<ValidationExceptionField>& GetFields() const{ return m_fields; }
131
135 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
136
140 inline void SetFields(const Aws::Vector<ValidationExceptionField>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
141
145 inline void SetFields(Aws::Vector<ValidationExceptionField>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
146
151
155 inline ValidationException& WithFields(Aws::Vector<ValidationExceptionField>&& value) { SetFields(std::move(value)); return *this;}
156
160 inline ValidationException& AddFields(const ValidationExceptionField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
161
165 inline ValidationException& AddFields(ValidationExceptionField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
166
167
168
169 inline const Aws::String& GetMessage() const{ return m_message; }
170
171
172 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
173
174
175 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
176
177
178 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
179
180
181 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
182
183
184 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
185
186
187 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
188
189
190 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
191
192
196 inline const ValidationExceptionReason& GetReason() const{ return m_reason; }
197
201 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
202
206 inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
207
211 inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
212
216 inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;}
217
221 inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
222
223 private:
224
226 bool m_errorArgumentsHasBeenSet = false;
227
228 Aws::String m_errorId;
229 bool m_errorIdHasBeenSet = false;
230
232 bool m_fieldsHasBeenSet = false;
233
234 Aws::String m_message;
235 bool m_messageHasBeenSet = false;
236
238 bool m_reasonHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace Panorama
243} // namespace Aws
#define AWS_PANORAMA_API
void SetErrorId(const Aws::String &value)
void SetReason(const ValidationExceptionReason &value)
const Aws::Vector< ValidationExceptionErrorArgument > & GetErrorArguments() const
ValidationException & WithErrorId(const char *value)
ValidationException & WithFields(Aws::Vector< ValidationExceptionField > &&value)
const ValidationExceptionReason & GetReason() const
void SetFields(const Aws::Vector< ValidationExceptionField > &value)
AWS_PANORAMA_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(Aws::String &&value)
const Aws::Vector< ValidationExceptionField > & GetFields() const
ValidationException & AddFields(const ValidationExceptionField &value)
ValidationException & WithErrorId(Aws::String &&value)
void SetFields(Aws::Vector< ValidationExceptionField > &&value)
void SetErrorArguments(Aws::Vector< ValidationExceptionErrorArgument > &&value)
ValidationException & WithReason(ValidationExceptionReason &&value)
ValidationException & AddErrorArguments(const ValidationExceptionErrorArgument &value)
ValidationException & AddErrorArguments(ValidationExceptionErrorArgument &&value)
ValidationException & WithErrorArguments(const Aws::Vector< ValidationExceptionErrorArgument > &value)
AWS_PANORAMA_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(const char *value)
ValidationException & WithErrorId(const Aws::String &value)
void SetMessage(const Aws::String &value)
ValidationException & WithMessage(const Aws::String &value)
void SetReason(ValidationExceptionReason &&value)
ValidationException & WithFields(const Aws::Vector< ValidationExceptionField > &value)
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorArguments(const Aws::Vector< ValidationExceptionErrorArgument > &value)
ValidationException & WithReason(const ValidationExceptionReason &value)
ValidationException & WithErrorArguments(Aws::Vector< ValidationExceptionErrorArgument > &&value)
ValidationException & AddFields(ValidationExceptionField &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector