AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename MessageT = Aws::String>
50 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
51 template<typename MessageT = Aws::String>
52 ValidationException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
54
56
59 inline ValidationExceptionReason GetReason() const { return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 inline void SetReason(ValidationExceptionReason value) { m_reasonHasBeenSet = true; m_reason = value; }
62 inline ValidationException& WithReason(ValidationExceptionReason value) { SetReason(value); return *this;}
64
66
69 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
70 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
71 template<typename FieldListT = Aws::Vector<ValidationExceptionField>>
72 void SetFieldList(FieldListT&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::forward<FieldListT>(value); }
73 template<typename FieldListT = Aws::Vector<ValidationExceptionField>>
74 ValidationException& WithFieldList(FieldListT&& value) { SetFieldList(std::forward<FieldListT>(value)); return *this;}
75 template<typename FieldListT = ValidationExceptionField>
76 ValidationException& AddFieldList(FieldListT&& value) { m_fieldListHasBeenSet = true; m_fieldList.emplace_back(std::forward<FieldListT>(value)); return *this; }
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
84 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
85 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
86 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
87 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
88 ValidationException& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
89 template<typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
90 ValidationException& AddContext(ContextKeyT&& key, ContextValueT&& value) {
91 m_contextHasBeenSet = true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value)); return *this;
92 }
94 private:
95
96 Aws::String m_message;
97 bool m_messageHasBeenSet = false;
98
100 bool m_reasonHasBeenSet = false;
101
103 bool m_fieldListHasBeenSet = false;
104
106 bool m_contextHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace deadline
111} // namespace Aws
ValidationExceptionReason GetReason() const
ValidationException & WithReason(ValidationExceptionReason value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & AddFieldList(FieldListT &&value)
ValidationException & AddContext(ContextKeyT &&key, ContextValueT &&value)
void SetReason(ValidationExceptionReason value)
ValidationException & WithContext(ContextT &&value)
ValidationException & WithMessage(MessageT &&value)
AWS_DEADLINE_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithFieldList(FieldListT &&value)
AWS_DEADLINE_API ValidationException()=default
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