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/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mgn/model/ValidationExceptionReason.h>
11#include <aws/mgn/model/ValidationExceptionField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace mgn
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_MGN_API ValidationException();
41
42
44
45 inline const Aws::String& GetCode() const{ return m_code; }
46 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
47 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
48 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
49 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
50 inline ValidationException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
51 inline ValidationException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
52 inline ValidationException& WithCode(const char* value) { SetCode(value); return *this;}
54
56
59 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const{ return m_fieldList; }
60 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
61 inline void SetFieldList(const Aws::Vector<ValidationExceptionField>& value) { m_fieldListHasBeenSet = true; m_fieldList = value; }
62 inline void SetFieldList(Aws::Vector<ValidationExceptionField>&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::move(value); }
64 inline ValidationException& WithFieldList(Aws::Vector<ValidationExceptionField>&& value) { SetFieldList(std::move(value)); return *this;}
65 inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; }
66 inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; }
68
70
71 inline const Aws::String& GetMessage() const{ return m_message; }
72 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
73 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
74 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
75 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
76 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
77 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
78 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
80
82
85 inline const ValidationExceptionReason& GetReason() const{ return m_reason; }
86 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
87 inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
88 inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
89 inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;}
90 inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
92 private:
93
94 Aws::String m_code;
95 bool m_codeHasBeenSet = false;
96
98 bool m_fieldListHasBeenSet = false;
99
100 Aws::String m_message;
101 bool m_messageHasBeenSet = false;
102
104 bool m_reasonHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace mgn
109} // namespace Aws
void SetReason(const ValidationExceptionReason &value)
ValidationException & AddFieldList(ValidationExceptionField &&value)
void SetMessage(const Aws::String &value)
ValidationException & WithMessage(Aws::String &&value)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
AWS_MGN_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(const Aws::String &value)
ValidationException & WithMessage(const char *value)
AWS_MGN_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFieldList(Aws::Vector< ValidationExceptionField > &&value)
void SetCode(const Aws::String &value)
ValidationException & WithReason(const ValidationExceptionReason &value)
ValidationException & WithCode(const Aws::String &value)
ValidationException & WithFieldList(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & WithReason(ValidationExceptionReason &&value)
ValidationException & WithCode(Aws::String &&value)
const Aws::String & GetCode() const
ValidationException & AddFieldList(const ValidationExceptionField &value)
const Aws::String & GetMessage() const
void SetFieldList(const Aws::Vector< ValidationExceptionField > &value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & WithFieldList(Aws::Vector< ValidationExceptionField > &&value)
ValidationException & WithCode(const char *value)
void SetReason(ValidationExceptionReason &&value)
const ValidationExceptionReason & GetReason() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue