7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/ValidationExceptionField.h>
12#include <aws/deadline/model/ValidationExceptionReason.h>
43 template <
typename MessageT = Aws::String>
45 m_messageHasBeenSet =
true;
46 m_message = std::forward<MessageT>(value);
48 template <
typename MessageT = Aws::String>
62 m_reasonHasBeenSet =
true;
77 template <
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
79 m_fieldListHasBeenSet =
true;
80 m_fieldList = std::forward<FieldListT>(value);
82 template <
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
87 template <
typename FieldListT = Val
idationExceptionField>
89 m_fieldListHasBeenSet =
true;
90 m_fieldList.emplace_back(std::forward<FieldListT>(value));
101 template <
typename ContextT = Aws::Map<Aws::String, Aws::String>>
103 m_contextHasBeenSet =
true;
104 m_context = std::forward<ContextT>(value);
106 template <
typename ContextT = Aws::Map<Aws::String, Aws::String>>
111 template <
typename ContextKeyT = Aws::String,
typename ContextValueT = Aws::String>
113 m_contextHasBeenSet =
true;
114 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
126 bool m_messageHasBeenSet =
false;
127 bool m_reasonHasBeenSet =
false;
128 bool m_fieldListHasBeenSet =
false;
129 bool m_contextHasBeenSet =
false;
ValidationExceptionReason GetReason() const
const Aws::String & GetMessage() const
ValidationException & WithReason(ValidationExceptionReason value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & AddFieldList(FieldListT &&value)
ValidationException & AddContext(ContextKeyT &&key, ContextValueT &&value)
void SetFieldList(FieldListT &&value)
void SetReason(ValidationExceptionReason value)
ValidationException & WithContext(ContextT &&value)
ValidationException & WithMessage(MessageT &&value)
bool FieldListHasBeenSet() const
bool ReasonHasBeenSet() const
void SetContext(ContextT &&value)
void SetMessage(MessageT &&value)
AWS_DEADLINE_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
bool ContextHasBeenSet() const
AWS_DEADLINE_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithFieldList(FieldListT &&value)
bool MessageHasBeenSet() const
AWS_DEADLINE_API ValidationException()=default
const Aws::Map< Aws::String, Aws::String > & GetContext() const
ValidationExceptionReason
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue