7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/model/ConstraintViolationExceptionReason.h>
22namespace Organizations
176 template<
typename MessageT = Aws::String>
177 void SetMessage(MessageT&& value) { m_messageHasBeenSet =
true; m_message = std::forward<MessageT>(value); }
178 template<
typename MessageT = Aws::String>
192 bool m_messageHasBeenSet =
false;
195 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