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/detective/Detective_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/detective/model/ErrorCode.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 Detective
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DETECTIVE_API ValidationException();
36 AWS_DETECTIVE_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const Aws::String& GetMessage() const{ return m_message; }
44 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
46 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
47 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
48 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
49 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
50 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
52
54
57 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
58 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
59 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
60 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
61 inline ValidationException& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
62 inline ValidationException& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetErrorCodeReason() const{ return m_errorCodeReason; }
70 inline bool ErrorCodeReasonHasBeenSet() const { return m_errorCodeReasonHasBeenSet; }
71 inline void SetErrorCodeReason(const Aws::String& value) { m_errorCodeReasonHasBeenSet = true; m_errorCodeReason = value; }
72 inline void SetErrorCodeReason(Aws::String&& value) { m_errorCodeReasonHasBeenSet = true; m_errorCodeReason = std::move(value); }
73 inline void SetErrorCodeReason(const char* value) { m_errorCodeReasonHasBeenSet = true; m_errorCodeReason.assign(value); }
74 inline ValidationException& WithErrorCodeReason(const Aws::String& value) { SetErrorCodeReason(value); return *this;}
75 inline ValidationException& WithErrorCodeReason(Aws::String&& value) { SetErrorCodeReason(std::move(value)); return *this;}
76 inline ValidationException& WithErrorCodeReason(const char* value) { SetErrorCodeReason(value); return *this;}
78 private:
79
80 Aws::String m_message;
81 bool m_messageHasBeenSet = false;
82
83 ErrorCode m_errorCode;
84 bool m_errorCodeHasBeenSet = false;
85
86 Aws::String m_errorCodeReason;
87 bool m_errorCodeReasonHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Detective
92} // namespace Aws
AWS_DETECTIVE_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(const Aws::String &value)
ValidationException & WithErrorCodeReason(const Aws::String &value)
ValidationException & WithMessage(const char *value)
ValidationException & WithErrorCode(const ErrorCode &value)
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DETECTIVE_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCodeReason(const Aws::String &value)
ValidationException & WithErrorCode(ErrorCode &&value)
ValidationException & WithMessage(Aws::String &&value)
ValidationException & WithErrorCodeReason(const char *value)
ValidationException & WithErrorCodeReason(Aws::String &&value)
void SetMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue