AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvalidInputException.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/model/InvalidInputExceptionReason.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Organizations
23{
24namespace Model
25{
26
74 {
75 public:
76 AWS_ORGANIZATIONS_API InvalidInputException();
77 AWS_ORGANIZATIONS_API InvalidInputException(Aws::Utils::Json::JsonView jsonValue);
79 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
80
81
83
84 inline const Aws::String& GetMessage() const{ return m_message; }
85 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
86 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
87 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
88 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
89 inline InvalidInputException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
90 inline InvalidInputException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
91 inline InvalidInputException& WithMessage(const char* value) { SetMessage(value); return *this;}
93
95
96 inline const InvalidInputExceptionReason& GetReason() const{ return m_reason; }
97 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
98 inline void SetReason(const InvalidInputExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
99 inline void SetReason(InvalidInputExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
100 inline InvalidInputException& WithReason(const InvalidInputExceptionReason& value) { SetReason(value); return *this;}
101 inline InvalidInputException& WithReason(InvalidInputExceptionReason&& value) { SetReason(std::move(value)); return *this;}
103 private:
104
105 Aws::String m_message;
106 bool m_messageHasBeenSet = false;
107
109 bool m_reasonHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Organizations
114} // namespace Aws
AWS_ORGANIZATIONS_API InvalidInputException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API InvalidInputException(Aws::Utils::Json::JsonView jsonValue)
InvalidInputException & WithReason(const InvalidInputExceptionReason &value)
InvalidInputException & WithMessage(const char *value)
void SetReason(InvalidInputExceptionReason &&value)
InvalidInputException & WithMessage(Aws::String &&value)
InvalidInputException & WithReason(InvalidInputExceptionReason &&value)
const InvalidInputExceptionReason & GetReason() const
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReason(const InvalidInputExceptionReason &value)
InvalidInputException & WithMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue