AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent/model/ValidationExceptionField.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgent
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCKAGENT_API ValidationException();
38 AWS_BEDROCKAGENT_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const{ return m_fieldList; }
49 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
50 inline void SetFieldList(const Aws::Vector<ValidationExceptionField>& value) { m_fieldListHasBeenSet = true; m_fieldList = value; }
51 inline void SetFieldList(Aws::Vector<ValidationExceptionField>&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::move(value); }
53 inline ValidationException& WithFieldList(Aws::Vector<ValidationExceptionField>&& value) { SetFieldList(std::move(value)); return *this;}
54 inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; }
55 inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; }
57
59
60 inline const Aws::String& GetMessage() const{ return m_message; }
61 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
62 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
63 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
64 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
65 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
66 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
67 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
69 private:
70
72 bool m_fieldListHasBeenSet = false;
73
74 Aws::String m_message;
75 bool m_messageHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace BedrockAgent
80} // namespace Aws
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
void SetFieldList(const Aws::Vector< ValidationExceptionField > &value)
void SetFieldList(Aws::Vector< ValidationExceptionField > &&value)
ValidationException & WithMessage(const Aws::String &value)
ValidationException & WithFieldList(Aws::Vector< ValidationExceptionField > &&value)
ValidationException & AddFieldList(ValidationExceptionField &&value)
AWS_BEDROCKAGENT_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(Aws::String &&value)
ValidationException & AddFieldList(const ValidationExceptionField &value)
ValidationException & WithFieldList(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & WithMessage(const char *value)
AWS_BEDROCKAGENT_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue