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