AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/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 Continuum {
22namespace Model {
23
25 public:
26 AWS_CONTINUUM_API ValidationException() = default;
27 AWS_CONTINUUM_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
29 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
33 inline const Aws::String& GetMessage() const { return m_message; }
34 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
35 template <typename MessageT = Aws::String>
36 void SetMessage(MessageT&& value) {
37 m_messageHasBeenSet = true;
38 m_message = std::forward<MessageT>(value);
39 }
40 template <typename MessageT = Aws::String>
41 ValidationException& WithMessage(MessageT&& value) {
42 SetMessage(std::forward<MessageT>(value));
43 return *this;
44 }
46
48
49 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
50 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
51 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
52 void SetFieldList(FieldListT&& value) {
53 m_fieldListHasBeenSet = true;
54 m_fieldList = std::forward<FieldListT>(value);
55 }
56 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
57 ValidationException& WithFieldList(FieldListT&& value) {
58 SetFieldList(std::forward<FieldListT>(value));
59 return *this;
60 }
61 template <typename FieldListT = ValidationExceptionField>
62 ValidationException& AddFieldList(FieldListT&& value) {
63 m_fieldListHasBeenSet = true;
64 m_fieldList.emplace_back(std::forward<FieldListT>(value));
65 return *this;
66 }
68 private:
69 Aws::String m_message;
70
72 bool m_messageHasBeenSet = false;
73 bool m_fieldListHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Continuum
78} // namespace Aws
AWS_CONTINUUM_API ValidationException()=default
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & AddFieldList(FieldListT &&value)
ValidationException & WithMessage(MessageT &&value)
AWS_CONTINUUM_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithFieldList(FieldListT &&value)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
AWS_CONTINUUM_API ValidationException & operator=(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