AWS SDK for C++

AWS SDK for C++ Version 1.11.769

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