AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/evs/EVS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/evs/model/ValidationExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/evs/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 EVS
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_EVS_API ValidationException() = default;
44
45
47
50 inline const Aws::String& GetMessage() const { return m_message; }
51 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
52 template<typename MessageT = Aws::String>
53 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
54 template<typename MessageT = Aws::String>
55 ValidationException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
57
59
62 inline ValidationExceptionReason GetReason() const { return m_reason; }
63 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
64 inline void SetReason(ValidationExceptionReason value) { m_reasonHasBeenSet = true; m_reason = value; }
65 inline ValidationException& WithReason(ValidationExceptionReason value) { SetReason(value); return *this;}
67
69
72 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
73 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
74 template<typename FieldListT = Aws::Vector<ValidationExceptionField>>
75 void SetFieldList(FieldListT&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::forward<FieldListT>(value); }
76 template<typename FieldListT = Aws::Vector<ValidationExceptionField>>
77 ValidationException& WithFieldList(FieldListT&& value) { SetFieldList(std::forward<FieldListT>(value)); return *this;}
78 template<typename FieldListT = ValidationExceptionField>
79 ValidationException& AddFieldList(FieldListT&& value) { m_fieldListHasBeenSet = true; m_fieldList.emplace_back(std::forward<FieldListT>(value)); return *this; }
81 private:
82
83 Aws::String m_message;
84 bool m_messageHasBeenSet = false;
85
87 bool m_reasonHasBeenSet = false;
88
90 bool m_fieldListHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EVS
95} // namespace Aws
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & WithReason(ValidationExceptionReason value)
AWS_EVS_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & AddFieldList(FieldListT &&value)
ValidationException & WithMessage(MessageT &&value)
AWS_EVS_API ValidationException()=default
void SetReason(ValidationExceptionReason value)
AWS_EVS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EVS_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithFieldList(FieldListT &&value)
ValidationExceptionReason GetReason() const
const Aws::String & GetMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue