AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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
95 public:
96 AWS_ORGANIZATIONS_API InvalidInputException() = default;
97 AWS_ORGANIZATIONS_API InvalidInputException(Aws::Utils::Json::JsonView jsonValue);
99 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
100
102
103 inline const Aws::String& GetMessage() const { return m_message; }
104 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
105 template <typename MessageT = Aws::String>
106 void SetMessage(MessageT&& value) {
107 m_messageHasBeenSet = true;
108 m_message = std::forward<MessageT>(value);
109 }
110 template <typename MessageT = Aws::String>
112 SetMessage(std::forward<MessageT>(value));
113 return *this;
114 }
116
118
119 inline InvalidInputExceptionReason GetReason() const { return m_reason; }
120 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
122 m_reasonHasBeenSet = true;
123 m_reason = value;
124 }
126 SetReason(value);
127 return *this;
128 }
130 private:
131 Aws::String m_message;
132
134 bool m_messageHasBeenSet = false;
135 bool m_reasonHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace Organizations
140} // 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