AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
10#include <aws/managedblockchain-query/model/ValidationExceptionField.h>
11#include <aws/managedblockchain-query/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 ManagedBlockchainQuery {
23namespace Model {
24
31 public:
32 AWS_MANAGEDBLOCKCHAINQUERY_API ValidationException() = default;
33 AWS_MANAGEDBLOCKCHAINQUERY_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MANAGEDBLOCKCHAINQUERY_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetMessage() const { return m_message; }
42 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
43 template <typename MessageT = Aws::String>
44 void SetMessage(MessageT&& value) {
45 m_messageHasBeenSet = true;
46 m_message = std::forward<MessageT>(value);
47 }
48 template <typename MessageT = Aws::String>
49 ValidationException& WithMessage(MessageT&& value) {
50 SetMessage(std::forward<MessageT>(value));
51 return *this;
52 }
54
56
59 inline ValidationExceptionReason GetReason() const { return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
62 m_reasonHasBeenSet = true;
63 m_reason = value;
64 }
66 SetReason(value);
67 return *this;
68 }
70
72
75 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
76 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
77 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
78 void SetFieldList(FieldListT&& value) {
79 m_fieldListHasBeenSet = true;
80 m_fieldList = std::forward<FieldListT>(value);
81 }
82 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
83 ValidationException& WithFieldList(FieldListT&& value) {
84 SetFieldList(std::forward<FieldListT>(value));
85 return *this;
86 }
87 template <typename FieldListT = ValidationExceptionField>
88 ValidationException& AddFieldList(FieldListT&& value) {
89 m_fieldListHasBeenSet = true;
90 m_fieldList.emplace_back(std::forward<FieldListT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_message;
96
98
100 bool m_messageHasBeenSet = false;
101 bool m_reasonHasBeenSet = false;
102 bool m_fieldListHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace ManagedBlockchainQuery
107} // namespace Aws
AWS_MANAGEDBLOCKCHAINQUERY_API ValidationException()=default
ValidationException & WithMessage(MessageT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & AddFieldList(FieldListT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithReason(ValidationExceptionReason value)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & WithFieldList(FieldListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue