AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/managedblockchain-query/model/ValidationExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/managedblockchain-query/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 ManagedBlockchainQuery
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_MANAGEDBLOCKCHAINQUERY_API ValidationException() = default;
38 AWS_MANAGEDBLOCKCHAINQUERY_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MANAGEDBLOCKCHAINQUERY_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMessage() const { return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 template<typename MessageT = Aws::String>
50 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
51 template<typename MessageT = Aws::String>
52 ValidationException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
54
56
59 inline ValidationExceptionReason GetReason() const { return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 inline void SetReason(ValidationExceptionReason value) { m_reasonHasBeenSet = true; m_reason = value; }
62 inline ValidationException& WithReason(ValidationExceptionReason value) { SetReason(value); return *this;}
64
66
69 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
70 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
71 template<typename FieldListT = Aws::Vector<ValidationExceptionField>>
72 void SetFieldList(FieldListT&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::forward<FieldListT>(value); }
73 template<typename FieldListT = Aws::Vector<ValidationExceptionField>>
74 ValidationException& WithFieldList(FieldListT&& value) { SetFieldList(std::forward<FieldListT>(value)); return *this;}
75 template<typename FieldListT = ValidationExceptionField>
76 ValidationException& AddFieldList(FieldListT&& value) { m_fieldListHasBeenSet = true; m_fieldList.emplace_back(std::forward<FieldListT>(value)); return *this; }
78 private:
79
80 Aws::String m_message;
81 bool m_messageHasBeenSet = false;
82
84 bool m_reasonHasBeenSet = false;
85
87 bool m_fieldListHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ManagedBlockchainQuery
92} // 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