AWS SDK for C++

AWS SDK for C++ Version 1.11.830

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
92 public:
93 AWS_ORGANIZATIONS_API InvalidInputException() = default;
94 AWS_ORGANIZATIONS_API InvalidInputException(Aws::Utils::Json::JsonView jsonValue);
96 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
97
99
100 inline const Aws::String& GetMessage() const { return m_message; }
101 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
102 template <typename MessageT = Aws::String>
103 void SetMessage(MessageT&& value) {
104 m_messageHasBeenSet = true;
105 m_message = std::forward<MessageT>(value);
106 }
107 template <typename MessageT = Aws::String>
109 SetMessage(std::forward<MessageT>(value));
110 return *this;
111 }
113
115
116 inline InvalidInputExceptionReason GetReason() const { return m_reason; }
117 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
119 m_reasonHasBeenSet = true;
120 m_reason = value;
121 }
123 SetReason(value);
124 return *this;
125 }
127 private:
128 Aws::String m_message;
129
131 bool m_messageHasBeenSet = false;
132 bool m_reasonHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace Organizations
137} // 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