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/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/ValidationExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qbusiness/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 QBusiness
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_QBUSINESS_API ValidationException();
39 AWS_QBUSINESS_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetMessage() const{ return m_message; }
49 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
50 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
51 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
52 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
53 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
54 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
55 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
57
59
62 inline const ValidationExceptionReason& GetReason() const{ return m_reason; }
63 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
64 inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
65 inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
66 inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;}
67 inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
69
71
74 inline const Aws::Vector<ValidationExceptionField>& GetFields() const{ return m_fields; }
75 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
76 inline void SetFields(const Aws::Vector<ValidationExceptionField>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
77 inline void SetFields(Aws::Vector<ValidationExceptionField>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
79 inline ValidationException& WithFields(Aws::Vector<ValidationExceptionField>&& value) { SetFields(std::move(value)); return *this;}
80 inline ValidationException& AddFields(const ValidationExceptionField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
81 inline ValidationException& AddFields(ValidationExceptionField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
83 private:
84
85 Aws::String m_message;
86 bool m_messageHasBeenSet = false;
87
89 bool m_reasonHasBeenSet = false;
90
92 bool m_fieldsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace QBusiness
97} // namespace Aws
ValidationException & WithFields(Aws::Vector< ValidationExceptionField > &&value)
const Aws::Vector< ValidationExceptionField > & GetFields() const
ValidationException & WithMessage(const Aws::String &value)
ValidationException & WithReason(const ValidationExceptionReason &value)
ValidationException & WithReason(ValidationExceptionReason &&value)
void SetFields(Aws::Vector< ValidationExceptionField > &&value)
void SetMessage(const Aws::String &value)
ValidationException & WithFields(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & AddFields(ValidationExceptionField &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReason(const ValidationExceptionReason &value)
void SetFields(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & AddFields(const ValidationExceptionField &value)
ValidationException & WithMessage(Aws::String &&value)
const ValidationExceptionReason & GetReason() const
void SetReason(ValidationExceptionReason &&value)
AWS_QBUSINESS_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(const char *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