AWS SDK for C++

AWS SDK for C++ Version 1.11.769

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
177 public:
178 AWS_ORGANIZATIONS_API ConstraintViolationException() = default;
181 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
182
184
185 inline const Aws::String& GetMessage() const { return m_message; }
186 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
187 template <typename MessageT = Aws::String>
188 void SetMessage(MessageT&& value) {
189 m_messageHasBeenSet = true;
190 m_message = std::forward<MessageT>(value);
191 }
192 template <typename MessageT = Aws::String>
194 SetMessage(std::forward<MessageT>(value));
195 return *this;
196 }
198
200
201 inline ConstraintViolationExceptionReason GetReason() const { return m_reason; }
202 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
204 m_reasonHasBeenSet = true;
205 m_reason = value;
206 }
208 SetReason(value);
209 return *this;
210 }
212 private:
213 Aws::String m_message;
214
216 bool m_messageHasBeenSet = false;
217 bool m_reasonHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace Organizations
222} // 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