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/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/model/ValidationExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/deadline/model/ValidationExceptionField.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace deadline
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_DEADLINE_API ValidationException();
42 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
47 inline const Aws::String& GetMessage() const{ return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
52 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
53 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
54 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
56
58
61 inline const ValidationExceptionReason& GetReason() const{ return m_reason; }
62 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
63 inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
64 inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
65 inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;}
66 inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
68
70
73 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const{ return m_fieldList; }
74 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
75 inline void SetFieldList(const Aws::Vector<ValidationExceptionField>& value) { m_fieldListHasBeenSet = true; m_fieldList = value; }
76 inline void SetFieldList(Aws::Vector<ValidationExceptionField>&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::move(value); }
78 inline ValidationException& WithFieldList(Aws::Vector<ValidationExceptionField>&& value) { SetFieldList(std::move(value)); return *this;}
79 inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; }
80 inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; }
82
84
87 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const{ return m_context; }
88 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
89 inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
90 inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
92 inline ValidationException& WithContext(Aws::Map<Aws::String, Aws::String>&& value) { SetContext(std::move(value)); return *this;}
93 inline ValidationException& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
94 inline ValidationException& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
95 inline ValidationException& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
96 inline ValidationException& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
97 inline ValidationException& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
98 inline ValidationException& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
99 inline ValidationException& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
101 private:
102
103 Aws::String m_message;
104 bool m_messageHasBeenSet = false;
105
107 bool m_reasonHasBeenSet = false;
108
110 bool m_fieldListHasBeenSet = false;
111
113 bool m_contextHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace deadline
118} // namespace Aws
const ValidationExceptionReason & GetReason() const
ValidationException & WithReason(const ValidationExceptionReason &value)
void SetReason(const ValidationExceptionReason &value)
void SetContext(Aws::Map< Aws::String, Aws::String > &&value)
void SetContext(const Aws::Map< Aws::String, Aws::String > &value)
ValidationException & WithContext(const Aws::Map< Aws::String, Aws::String > &value)
ValidationException & AddContext(const char *key, Aws::String &&value)
ValidationException & WithMessage(const Aws::String &value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessage(const Aws::String &value)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & AddFieldList(const ValidationExceptionField &value)
ValidationException & AddContext(Aws::String &&key, const char *value)
ValidationException & WithFieldList(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & WithMessage(Aws::String &&value)
ValidationException & AddContext(const Aws::String &key, Aws::String &&value)
void SetReason(ValidationExceptionReason &&value)
ValidationException & AddFieldList(ValidationExceptionField &&value)
ValidationException & AddContext(const char *key, const char *value)
ValidationException & AddContext(const Aws::String &key, const Aws::String &value)
ValidationException & AddContext(Aws::String &&key, const Aws::String &value)
void SetFieldList(const Aws::Vector< ValidationExceptionField > &value)
AWS_DEADLINE_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
void SetFieldList(Aws::Vector< ValidationExceptionField > &&value)
ValidationException & AddContext(Aws::String &&key, Aws::String &&value)
AWS_DEADLINE_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithFieldList(Aws::Vector< ValidationExceptionField > &&value)
ValidationException & WithReason(ValidationExceptionReason &&value)
ValidationException & WithMessage(const char *value)
ValidationException & WithContext(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue