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/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/verifiedpermissions/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 VerifiedPermissions
24{
25namespace Model
26{
27
67 {
68 public:
69 AWS_VERIFIEDPERMISSIONS_API ValidationException();
70 AWS_VERIFIEDPERMISSIONS_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
71 AWS_VERIFIEDPERMISSIONS_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
72 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
73
74
76
77 inline const Aws::String& GetMessage() const{ return m_message; }
78 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
79 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
80 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
81 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
82 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
83 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
84 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
86
88
91 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const{ return m_fieldList; }
92 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
93 inline void SetFieldList(const Aws::Vector<ValidationExceptionField>& value) { m_fieldListHasBeenSet = true; m_fieldList = value; }
94 inline void SetFieldList(Aws::Vector<ValidationExceptionField>&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::move(value); }
96 inline ValidationException& WithFieldList(Aws::Vector<ValidationExceptionField>&& value) { SetFieldList(std::move(value)); return *this;}
97 inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; }
98 inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_message;
103 bool m_messageHasBeenSet = false;
104
106 bool m_fieldListHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace VerifiedPermissions
111} // namespace Aws
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & WithFieldList(const Aws::Vector< ValidationExceptionField > &value)
AWS_VERIFIEDPERMISSIONS_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(const Aws::String &value)
ValidationException & WithFieldList(Aws::Vector< ValidationExceptionField > &&value)
void SetFieldList(Aws::Vector< ValidationExceptionField > &&value)
ValidationException & AddFieldList(ValidationExceptionField &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & WithMessage(const char *value)
AWS_VERIFIEDPERMISSIONS_API ValidationException()
AWS_VERIFIEDPERMISSIONS_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
void SetFieldList(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & AddFieldList(const ValidationExceptionField &value)
ValidationException & WithMessage(Aws::String &&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