7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
20namespace ObservabilityAdmin {
42 template <
typename MessageT = Aws::String>
44 m_messageHasBeenSet =
true;
45 m_message = std::forward<MessageT>(value);
47 template <
typename MessageT = Aws::String>
60 template <
typename ReasonT = Aws::String>
62 m_reasonHasBeenSet =
true;
63 m_reason = std::forward<ReasonT>(value);
65 template <
typename ReasonT = Aws::String>
79 template <
typename FieldMapT = Aws::Map<Aws::String, Aws::String>>
81 m_fieldMapHasBeenSet =
true;
82 m_fieldMap = std::forward<FieldMapT>(value);
84 template <
typename FieldMapT = Aws::Map<Aws::String, Aws::String>>
89 template <
typename FieldMapKeyT = Aws::String,
typename FieldMapValueT = Aws::String>
91 m_fieldMapHasBeenSet =
true;
92 m_fieldMap.emplace(std::forward<FieldMapKeyT>(key), std::forward<FieldMapValueT>(value));
102 bool m_messageHasBeenSet =
false;
103 bool m_reasonHasBeenSet =
false;
104 bool m_fieldMapHasBeenSet =
false;
bool MessageHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetFieldMap() const
void SetFieldMap(FieldMapT &&value)
AWS_OBSERVABILITYADMIN_API ValidationError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API ValidationError()=default
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationError & AddFieldMap(FieldMapKeyT &&key, FieldMapValueT &&value)
void SetMessage(MessageT &&value)
AWS_OBSERVABILITYADMIN_API ValidationError(Aws::Utils::Json::JsonView jsonValue)
ValidationError & WithFieldMap(FieldMapT &&value)
bool ReasonHasBeenSet() const
const Aws::String & GetMessage() const
ValidationError & WithReason(ReasonT &&value)
ValidationError & WithMessage(MessageT &&value)
bool FieldMapHasBeenSet() const
const Aws::String & GetReason() const
void SetReason(ReasonT &&value)
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
Aws::Utils::Json::JsonValue JsonValue