AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dataexchange/model/ExceptionCause.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 DataExchange
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DATAEXCHANGE_API ValidationException();
36 AWS_DATAEXCHANGE_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMessage() const{ return m_message; }
46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
49 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
50 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
51 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
52 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
54
56
59 inline const ExceptionCause& GetExceptionCause() const{ return m_exceptionCause; }
60 inline bool ExceptionCauseHasBeenSet() const { return m_exceptionCauseHasBeenSet; }
61 inline void SetExceptionCause(const ExceptionCause& value) { m_exceptionCauseHasBeenSet = true; m_exceptionCause = value; }
62 inline void SetExceptionCause(ExceptionCause&& value) { m_exceptionCauseHasBeenSet = true; m_exceptionCause = std::move(value); }
63 inline ValidationException& WithExceptionCause(const ExceptionCause& value) { SetExceptionCause(value); return *this;}
64 inline ValidationException& WithExceptionCause(ExceptionCause&& value) { SetExceptionCause(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_message;
69 bool m_messageHasBeenSet = false;
70
71 ExceptionCause m_exceptionCause;
72 bool m_exceptionCauseHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace DataExchange
77} // namespace Aws
ValidationException & WithExceptionCause(const ExceptionCause &value)
AWS_DATAEXCHANGE_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExceptionCause(const ExceptionCause &value)
ValidationException & WithExceptionCause(ExceptionCause &&value)
ValidationException & WithMessage(const char *value)
ValidationException & WithMessage(const Aws::String &value)
AWS_DATAEXCHANGE_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(Aws::String &&value)
const ExceptionCause & GetExceptionCause() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue