AWS SDK for C++  1.9.105
AWS SDK for C++
HandshakeConstraintViolationException.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 
63  {
64  public:
69 
70 
71 
72  inline const Aws::String& GetMessage() const{ return m_message; }
73 
74 
75  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
76 
77 
78  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
79 
80 
81  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
82 
83 
84  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
85 
86 
87  inline HandshakeConstraintViolationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
88 
89 
90  inline HandshakeConstraintViolationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
91 
92 
93  inline HandshakeConstraintViolationException& WithMessage(const char* value) { SetMessage(value); return *this;}
94 
95 
96 
97  inline const HandshakeConstraintViolationExceptionReason& GetReason() const{ return m_reason; }
98 
99 
100  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
101 
102 
103  inline void SetReason(const HandshakeConstraintViolationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
104 
105 
106  inline void SetReason(HandshakeConstraintViolationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
107 
108 
110 
111 
112  inline HandshakeConstraintViolationException& WithReason(HandshakeConstraintViolationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
113 
114  private:
115 
116  Aws::String m_message;
117  bool m_messageHasBeenSet;
118 
120  bool m_reasonHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace Organizations
125 } // namespace Aws
Aws::Organizations::Model::HandshakeConstraintViolationException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::HandshakeConstraintViolationException::SetReason
void SetReason(const HandshakeConstraintViolationExceptionReason &value)
Definition: HandshakeConstraintViolationException.h:103
Aws::Organizations::Model::HandshakeConstraintViolationException::GetMessage
const Aws::String & GetMessage() const
Definition: HandshakeConstraintViolationException.h:72
Aws::Organizations::Model::HandshakeConstraintViolationException::HandshakeConstraintViolationException
HandshakeConstraintViolationException(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::HandshakeConstraintViolationException::SetMessage
void SetMessage(const Aws::String &value)
Definition: HandshakeConstraintViolationException.h:78
Aws::Organizations::Model::HandshakeConstraintViolationException
Definition: HandshakeConstraintViolationException.h:63
Aws::Organizations::Model::HandshakeConstraintViolationException::WithReason
HandshakeConstraintViolationException & WithReason(HandshakeConstraintViolationExceptionReason &&value)
Definition: HandshakeConstraintViolationException.h:112
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::HandshakeConstraintViolationExceptionReason
HandshakeConstraintViolationExceptionReason
Definition: HandshakeConstraintViolationExceptionReason.h:17
Aws::Organizations::Model::HandshakeConstraintViolationException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: HandshakeConstraintViolationException.h:75
Aws::Organizations::Model::HandshakeConstraintViolationException::SetMessage
void SetMessage(Aws::String &&value)
Definition: HandshakeConstraintViolationException.h:81
Aws::Organizations::Model::HandshakeConstraintViolationException::WithMessage
HandshakeConstraintViolationException & WithMessage(const Aws::String &value)
Definition: HandshakeConstraintViolationException.h:87
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::HandshakeConstraintViolationException::operator=
HandshakeConstraintViolationException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::HandshakeConstraintViolationException::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: HandshakeConstraintViolationException.h:100
Aws::Organizations::Model::HandshakeConstraintViolationException::WithReason
HandshakeConstraintViolationException & WithReason(const HandshakeConstraintViolationExceptionReason &value)
Definition: HandshakeConstraintViolationException.h:109
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::HandshakeConstraintViolationException::WithMessage
HandshakeConstraintViolationException & WithMessage(const char *value)
Definition: HandshakeConstraintViolationException.h:93
Aws::Organizations::Model::HandshakeConstraintViolationException::SetReason
void SetReason(HandshakeConstraintViolationExceptionReason &&value)
Definition: HandshakeConstraintViolationException.h:106
Aws::Organizations::Model::HandshakeConstraintViolationException::SetMessage
void SetMessage(const char *value)
Definition: HandshakeConstraintViolationException.h:84
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::HandshakeConstraintViolationException::WithMessage
HandshakeConstraintViolationException & WithMessage(Aws::String &&value)
Definition: HandshakeConstraintViolationException.h:90
HandshakeConstraintViolationExceptionReason.h
Aws::Organizations::Model::HandshakeConstraintViolationException::HandshakeConstraintViolationException
HandshakeConstraintViolationException()
Aws::Organizations::Model::HandshakeConstraintViolationException::GetReason
const HandshakeConstraintViolationExceptionReason & GetReason() const
Definition: HandshakeConstraintViolationException.h:97