AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConstraintViolationException.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/model/ConstraintViolationExceptionReason.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Organizations
23{
24namespace Model
25{
26
154 {
155 public:
156 AWS_ORGANIZATIONS_API ConstraintViolationException();
159 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
160
161
163
164 inline const Aws::String& GetMessage() const{ return m_message; }
165 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
166 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
167 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
168 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
169 inline ConstraintViolationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
170 inline ConstraintViolationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
171 inline ConstraintViolationException& WithMessage(const char* value) { SetMessage(value); return *this;}
173
175
176 inline const ConstraintViolationExceptionReason& GetReason() const{ return m_reason; }
177 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
178 inline void SetReason(const ConstraintViolationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
179 inline void SetReason(ConstraintViolationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
181 inline ConstraintViolationException& WithReason(ConstraintViolationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
183 private:
184
185 Aws::String m_message;
186 bool m_messageHasBeenSet = false;
187
189 bool m_reasonHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace Organizations
194} // namespace Aws
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
ConstraintViolationException & WithMessage(Aws::String &&value)
ConstraintViolationException & WithMessage(const Aws::String &value)
void SetReason(ConstraintViolationExceptionReason &&value)
void SetReason(const ConstraintViolationExceptionReason &value)
ConstraintViolationException & WithReason(ConstraintViolationExceptionReason &&value)
AWS_ORGANIZATIONS_API ConstraintViolationException(Aws::Utils::Json::JsonView jsonValue)
ConstraintViolationException & WithMessage(const char *value)
const ConstraintViolationExceptionReason & GetReason() const
AWS_ORGANIZATIONS_API ConstraintViolationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ConstraintViolationException & WithReason(const ConstraintViolationExceptionReason &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue