AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/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 BedrockAgent {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENT_API ValidationException() = default;
35 AWS_BEDROCKAGENT_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>
48 SetMessage(std::forward<MessageT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
59 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
60 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
61 void SetFieldList(FieldListT&& value) {
62 m_fieldListHasBeenSet = true;
63 m_fieldList = std::forward<FieldListT>(value);
64 }
65 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
67 SetFieldList(std::forward<FieldListT>(value));
68 return *this;
69 }
70 template <typename FieldListT = ValidationExceptionField>
72 m_fieldListHasBeenSet = true;
73 m_fieldList.emplace_back(std::forward<FieldListT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_message;
79
81 bool m_messageHasBeenSet = false;
82 bool m_fieldListHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace BedrockAgent
87} // namespace Aws
AWS_BEDROCKAGENT_API ValidationException()=default
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & AddFieldList(FieldListT &&value)
AWS_BEDROCKAGENT_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(MessageT &&value)
AWS_BEDROCKAGENT_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithFieldList(FieldListT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue