AWS SDK for C++  1.9.104
AWS SDK for C++
ConstraintViolationException.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Organizations
23 {
24 namespace Model
25 {
26 
137  {
138  public:
143 
144 
145 
146  inline const Aws::String& GetMessage() const{ return m_message; }
147 
148 
149  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
150 
151 
152  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
153 
154 
155  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
156 
157 
158  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
159 
160 
161  inline ConstraintViolationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
162 
163 
164  inline ConstraintViolationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
165 
166 
167  inline ConstraintViolationException& WithMessage(const char* value) { SetMessage(value); return *this;}
168 
169 
170 
171  inline const ConstraintViolationExceptionReason& GetReason() const{ return m_reason; }
172 
173 
174  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
175 
176 
177  inline void SetReason(const ConstraintViolationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
178 
179 
180  inline void SetReason(ConstraintViolationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
181 
182 
183  inline ConstraintViolationException& WithReason(const ConstraintViolationExceptionReason& value) { SetReason(value); return *this;}
184 
185 
186  inline ConstraintViolationException& WithReason(ConstraintViolationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
187 
188  private:
189 
190  Aws::String m_message;
191  bool m_messageHasBeenSet;
192 
194  bool m_reasonHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace Organizations
199 } // namespace Aws
Aws::Organizations::Model::ConstraintViolationException::WithReason
ConstraintViolationException & WithReason(const ConstraintViolationExceptionReason &value)
Definition: ConstraintViolationException.h:183
Aws::Organizations::Model::ConstraintViolationException::ConstraintViolationException
ConstraintViolationException()
Aws::Organizations::Model::ConstraintViolationException::WithMessage
ConstraintViolationException & WithMessage(const Aws::String &value)
Definition: ConstraintViolationException.h:161
ConstraintViolationExceptionReason.h
Aws::Organizations::Model::ConstraintViolationException::GetReason
const ConstraintViolationExceptionReason & GetReason() const
Definition: ConstraintViolationException.h:171
Aws::Organizations::Model::ConstraintViolationException::SetReason
void SetReason(const ConstraintViolationExceptionReason &value)
Definition: ConstraintViolationException.h:177
Aws::Organizations::Model::ConstraintViolationException::GetMessage
const Aws::String & GetMessage() const
Definition: ConstraintViolationException.h:146
Aws::Organizations::Model::ConstraintViolationException::operator=
ConstraintViolationException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::ConstraintViolationException::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: ConstraintViolationException.h:174
Aws::Organizations::Model::ConstraintViolationException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ConstraintViolationException.h:155
Aws::Organizations::Model::ConstraintViolationException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ConstraintViolationException.h:149
Aws::Organizations::Model::ConstraintViolationExceptionReason
ConstraintViolationExceptionReason
Definition: ConstraintViolationExceptionReason.h:17
Aws::Organizations::Model::ConstraintViolationException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::ConstraintViolationException::WithMessage
ConstraintViolationException & WithMessage(const char *value)
Definition: ConstraintViolationException.h:167
Aws::Organizations::Model::ConstraintViolationException::ConstraintViolationException
ConstraintViolationException(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ConstraintViolationException::WithReason
ConstraintViolationException & WithReason(ConstraintViolationExceptionReason &&value)
Definition: ConstraintViolationException.h:186
Aws::Organizations::Model::ConstraintViolationException::SetReason
void SetReason(ConstraintViolationExceptionReason &&value)
Definition: ConstraintViolationException.h:180
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::ConstraintViolationException::SetMessage
void SetMessage(const char *value)
Definition: ConstraintViolationException.h:158
Aws::Organizations::Model::ConstraintViolationException::WithMessage
ConstraintViolationException & WithMessage(Aws::String &&value)
Definition: ConstraintViolationException.h:164
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ConstraintViolationException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ConstraintViolationException.h:152
Aws::Organizations::Model::ConstraintViolationException
Definition: ConstraintViolationException.h:137