AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
InvalidInputException.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/InvalidInputExceptionReason.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
94 public:
95 AWS_ORGANIZATIONS_API InvalidInputException() = default;
96 AWS_ORGANIZATIONS_API InvalidInputException(Aws::Utils::Json::JsonView jsonValue);
98 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
99
101
102 inline const Aws::String& GetMessage() const { return m_message; }
103 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
104 template <typename MessageT = Aws::String>
105 void SetMessage(MessageT&& value) {
106 m_messageHasBeenSet = true;
107 m_message = std::forward<MessageT>(value);
108 }
109 template <typename MessageT = Aws::String>
111 SetMessage(std::forward<MessageT>(value));
112 return *this;
113 }
115
117
118 inline InvalidInputExceptionReason GetReason() const { return m_reason; }
119 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
121 m_reasonHasBeenSet = true;
122 m_reason = value;
123 }
125 SetReason(value);
126 return *this;
127 }
129 private:
130 Aws::String m_message;
131
133 bool m_messageHasBeenSet = false;
134 bool m_reasonHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace Organizations
139} // namespace Aws
AWS_ORGANIZATIONS_API InvalidInputException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API InvalidInputException(Aws::Utils::Json::JsonView jsonValue)
InvalidInputException & WithReason(InvalidInputExceptionReason value)
AWS_ORGANIZATIONS_API InvalidInputException()=default
InvalidInputException & WithMessage(MessageT &&value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReason(InvalidInputExceptionReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue