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/bedrock-data-automation/BedrockDataAutomation_EXPORTS.h>
8#include <aws/bedrock-data-automation/model/ValidationExceptionField.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockDataAutomation {
22namespace Model {
23
31 public:
32 AWS_BEDROCKDATAAUTOMATION_API ValidationException() = default;
33 AWS_BEDROCKDATAAUTOMATION_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKDATAAUTOMATION_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKDATAAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetMessage() const { return m_message; }
40 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
41 template <typename MessageT = Aws::String>
42 void SetMessage(MessageT&& value) {
43 m_messageHasBeenSet = true;
44 m_message = std::forward<MessageT>(value);
45 }
46 template <typename MessageT = Aws::String>
47 ValidationException& WithMessage(MessageT&& value) {
48 SetMessage(std::forward<MessageT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
56 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
57 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
58 void SetFieldList(FieldListT&& value) {
59 m_fieldListHasBeenSet = true;
60 m_fieldList = std::forward<FieldListT>(value);
61 }
62 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
63 ValidationException& WithFieldList(FieldListT&& value) {
64 SetFieldList(std::forward<FieldListT>(value));
65 return *this;
66 }
67 template <typename FieldListT = ValidationExceptionField>
68 ValidationException& AddFieldList(FieldListT&& value) {
69 m_fieldListHasBeenSet = true;
70 m_fieldList.emplace_back(std::forward<FieldListT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_message;
76
78 bool m_messageHasBeenSet = false;
79 bool m_fieldListHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace BedrockDataAutomation
84} // namespace Aws
AWS_BEDROCKDATAAUTOMATION_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & WithFieldList(FieldListT &&value)
AWS_BEDROCKDATAAUTOMATION_API ValidationException()=default
ValidationException & WithMessage(MessageT &&value)
AWS_BEDROCKDATAAUTOMATION_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & AddFieldList(FieldListT &&value)
AWS_BEDROCKDATAAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() 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