7#include <aws/cloudextensions/CloudExtensions_EXPORTS.h>
8#include <aws/cloudextensions/model/ValidationError.h>
9#include <aws/cloudextensions/model/ValidationExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace CloudExtensions {
45 template <
typename MessageT = Aws::String>
47 m_messageHasBeenSet =
true;
48 m_message = std::forward<MessageT>(value);
50 template <
typename MessageT = Aws::String>
64 m_reasonHasBeenSet =
true;
79 template <
typename ErrorsT = Aws::Vector<Val
idationError>>
81 m_errorsHasBeenSet =
true;
82 m_errors = std::forward<ErrorsT>(value);
84 template <
typename ErrorsT = Aws::Vector<Val
idationError>>
89 template <
typename ErrorsT = Val
idationError>
91 m_errorsHasBeenSet =
true;
92 m_errors.emplace_back(std::forward<ErrorsT>(value));
102 bool m_messageHasBeenSet =
false;
103 bool m_reasonHasBeenSet =
false;
104 bool m_errorsHasBeenSet =
false;
ValidationException & WithReason(ValidationExceptionReason value)
AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrors(ErrorsT &&value)
const Aws::String & GetMessage() const
void SetReason(ValidationExceptionReason value)
const Aws::Vector< ValidationError > & GetErrors() const
bool ErrorsHasBeenSet() const
bool ReasonHasBeenSet() const
AWS_CLOUDEXTENSIONS_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithErrors(ErrorsT &&value)
void SetMessage(MessageT &&value)
bool MessageHasBeenSet() const
ValidationException & AddErrors(ErrorsT &&value)
AWS_CLOUDEXTENSIONS_API ValidationException()=default
AWS_CLOUDEXTENSIONS_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationExceptionReason GetReason() const
ValidationException & WithMessage(MessageT &&value)
ValidationExceptionReason
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue