7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/model/ValidationExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/deadline/model/ValidationExceptionField.h>
49 template<
typename MessageT = Aws::String>
50 void SetMessage(MessageT&& value) { m_messageHasBeenSet =
true; m_message = std::forward<MessageT>(value); }
51 template<
typename MessageT = Aws::String>
71 template<
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
72 void SetFieldList(FieldListT&& value) { m_fieldListHasBeenSet =
true; m_fieldList = std::forward<FieldListT>(value); }
73 template<
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
75 template<
typename FieldListT = Val
idationExceptionField>
85 template<
typename ContextT = Aws::Map<Aws::String, Aws::String>>
86 void SetContext(ContextT&& value) { m_contextHasBeenSet =
true; m_context = std::forward<ContextT>(value); }
87 template<
typename ContextT = Aws::Map<Aws::String, Aws::String>>
89 template<
typename ContextKeyT = Aws::String,
typename ContextValueT = Aws::String>
91 m_contextHasBeenSet =
true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
return *
this;
97 bool m_messageHasBeenSet =
false;
100 bool m_reasonHasBeenSet =
false;
103 bool m_fieldListHasBeenSet =
false;
106 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