7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/organizations/Organizations_EXPORTS.h>
9#include <aws/organizations/model/ConstraintViolationExceptionReason.h>
20namespace Organizations {
187 template <
typename MessageT = Aws::String>
189 m_messageHasBeenSet =
true;
190 m_message = std::forward<MessageT>(value);
192 template <
typename MessageT = Aws::String>
204 m_reasonHasBeenSet =
true;
216 bool m_messageHasBeenSet =
false;
217 bool m_reasonHasBeenSet =
false;
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMessage() const
bool MessageHasBeenSet() const
void SetReason(ConstraintViolationExceptionReason value)
void SetMessage(MessageT &&value)
AWS_ORGANIZATIONS_API ConstraintViolationException()=default
AWS_ORGANIZATIONS_API ConstraintViolationException(Aws::Utils::Json::JsonView jsonValue)
ConstraintViolationException & WithMessage(MessageT &&value)
bool ReasonHasBeenSet() const
ConstraintViolationExceptionReason GetReason() const
ConstraintViolationException & WithReason(ConstraintViolationExceptionReason value)
AWS_ORGANIZATIONS_API ConstraintViolationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ConstraintViolationExceptionReason
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue