AWS SDK for C++

AWS SDK for C++ Version 1.11.928

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
10#include <aws/docdb-elastic/model/ValidationExceptionField.h>
11#include <aws/docdb-elastic/model/ValidationExceptionReason.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DocDBElastic {
23namespace Model {
24
31 public:
32 AWS_DOCDBELASTIC_API ValidationException() = default;
33 AWS_DOCDBELASTIC_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
42 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
43 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
44 void SetFieldList(FieldListT&& value) {
45 m_fieldListHasBeenSet = true;
46 m_fieldList = std::forward<FieldListT>(value);
47 }
48 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
49 ValidationException& WithFieldList(FieldListT&& value) {
50 SetFieldList(std::forward<FieldListT>(value));
51 return *this;
52 }
53 template <typename FieldListT = ValidationExceptionField>
54 ValidationException& AddFieldList(FieldListT&& value) {
55 m_fieldListHasBeenSet = true;
56 m_fieldList.emplace_back(std::forward<FieldListT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetMessage() const { return m_message; }
66 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
67 template <typename MessageT = Aws::String>
68 void SetMessage(MessageT&& value) {
69 m_messageHasBeenSet = true;
70 m_message = std::forward<MessageT>(value);
71 }
72 template <typename MessageT = Aws::String>
73 ValidationException& WithMessage(MessageT&& value) {
74 SetMessage(std::forward<MessageT>(value));
75 return *this;
76 }
78
80
85 inline ValidationExceptionReason GetReason() const { return m_reason; }
86 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
88 m_reasonHasBeenSet = true;
89 m_reason = value;
90 }
92 SetReason(value);
93 return *this;
94 }
96 private:
98
99 Aws::String m_message;
100
102 bool m_fieldListHasBeenSet = false;
103 bool m_messageHasBeenSet = false;
104 bool m_reasonHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace DocDBElastic
109} // namespace Aws
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & AddFieldList(FieldListT &&value)
AWS_DOCDBELASTIC_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DOCDBELASTIC_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationExceptionReason GetReason() const
ValidationException & WithMessage(MessageT &&value)
ValidationException & WithReason(ValidationExceptionReason value)
ValidationException & WithFieldList(FieldListT &&value)
AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReason(ValidationExceptionReason value)
AWS_DOCDBELASTIC_API ValidationException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue