AWS SDK for C++

AWS SDK for C++ Version 1.11.874

Loading...
Searching...
No Matches
ConstraintViolationException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/organizations/Organizations_EXPORTS.h>
9#include <aws/organizations/model/ConstraintViolationExceptionReason.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Organizations {
21namespace Model {
22
186 public:
187 AWS_ORGANIZATIONS_API ConstraintViolationException() = default;
190 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
191
193
194 inline const Aws::String& GetMessage() const { return m_message; }
195 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
196 template <typename MessageT = Aws::String>
197 void SetMessage(MessageT&& value) {
198 m_messageHasBeenSet = true;
199 m_message = std::forward<MessageT>(value);
200 }
201 template <typename MessageT = Aws::String>
203 SetMessage(std::forward<MessageT>(value));
204 return *this;
205 }
207
209
210 inline ConstraintViolationExceptionReason GetReason() const { return m_reason; }
211 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
213 m_reasonHasBeenSet = true;
214 m_reason = value;
215 }
217 SetReason(value);
218 return *this;
219 }
221 private:
222 Aws::String m_message;
223
225 bool m_messageHasBeenSet = false;
226 bool m_reasonHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace Organizations
231} // namespace Aws
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReason(ConstraintViolationExceptionReason value)
AWS_ORGANIZATIONS_API ConstraintViolationException()=default
AWS_ORGANIZATIONS_API ConstraintViolationException(Aws::Utils::Json::JsonView jsonValue)
ConstraintViolationException & WithMessage(MessageT &&value)
ConstraintViolationException & WithReason(ConstraintViolationExceptionReason value)
AWS_ORGANIZATIONS_API ConstraintViolationException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue