AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/panorama/Panorama_EXPORTS.h>
10#include <aws/panorama/model/ValidationExceptionErrorArgument.h>
11#include <aws/panorama/model/ValidationExceptionField.h>
12#include <aws/panorama/model/ValidationExceptionReason.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Panorama {
24namespace Model {
25
33 public:
34 AWS_PANORAMA_API ValidationException() = default;
37 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<ValidationExceptionErrorArgument>& GetErrorArguments() const { return m_errorArguments; }
44 inline bool ErrorArgumentsHasBeenSet() const { return m_errorArgumentsHasBeenSet; }
45 template <typename ErrorArgumentsT = Aws::Vector<ValidationExceptionErrorArgument>>
46 void SetErrorArguments(ErrorArgumentsT&& value) {
47 m_errorArgumentsHasBeenSet = true;
48 m_errorArguments = std::forward<ErrorArgumentsT>(value);
49 }
50 template <typename ErrorArgumentsT = Aws::Vector<ValidationExceptionErrorArgument>>
51 ValidationException& WithErrorArguments(ErrorArgumentsT&& value) {
52 SetErrorArguments(std::forward<ErrorArgumentsT>(value));
53 return *this;
54 }
55 template <typename ErrorArgumentsT = ValidationExceptionErrorArgument>
56 ValidationException& AddErrorArguments(ErrorArgumentsT&& value) {
57 m_errorArgumentsHasBeenSet = true;
58 m_errorArguments.emplace_back(std::forward<ErrorArgumentsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetErrorId() const { return m_errorId; }
68 inline bool ErrorIdHasBeenSet() const { return m_errorIdHasBeenSet; }
69 template <typename ErrorIdT = Aws::String>
70 void SetErrorId(ErrorIdT&& value) {
71 m_errorIdHasBeenSet = true;
72 m_errorId = std::forward<ErrorIdT>(value);
73 }
74 template <typename ErrorIdT = Aws::String>
75 ValidationException& WithErrorId(ErrorIdT&& value) {
76 SetErrorId(std::forward<ErrorIdT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Vector<ValidationExceptionField>& GetFields() const { return m_fields; }
86 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
87 template <typename FieldsT = Aws::Vector<ValidationExceptionField>>
88 void SetFields(FieldsT&& value) {
89 m_fieldsHasBeenSet = true;
90 m_fields = std::forward<FieldsT>(value);
91 }
92 template <typename FieldsT = Aws::Vector<ValidationExceptionField>>
93 ValidationException& WithFields(FieldsT&& value) {
94 SetFields(std::forward<FieldsT>(value));
95 return *this;
96 }
97 template <typename FieldsT = ValidationExceptionField>
98 ValidationException& AddFields(FieldsT&& value) {
99 m_fieldsHasBeenSet = true;
100 m_fields.emplace_back(std::forward<FieldsT>(value));
101 return *this;
102 }
104
106
107 inline const Aws::String& GetMessage() const { return m_message; }
108 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
109 template <typename MessageT = Aws::String>
110 void SetMessage(MessageT&& value) {
111 m_messageHasBeenSet = true;
112 m_message = std::forward<MessageT>(value);
113 }
114 template <typename MessageT = Aws::String>
115 ValidationException& WithMessage(MessageT&& value) {
116 SetMessage(std::forward<MessageT>(value));
117 return *this;
118 }
120
122
125 inline ValidationExceptionReason GetReason() const { return m_reason; }
126 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
128 m_reasonHasBeenSet = true;
129 m_reason = value;
130 }
132 SetReason(value);
133 return *this;
134 }
136 private:
138
139 Aws::String m_errorId;
140
142
143 Aws::String m_message;
144
146 bool m_errorArgumentsHasBeenSet = false;
147 bool m_errorIdHasBeenSet = false;
148 bool m_fieldsHasBeenSet = false;
149 bool m_messageHasBeenSet = false;
150 bool m_reasonHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace Panorama
155} // namespace Aws
ValidationException & AddFields(FieldsT &&value)
void SetErrorArguments(ErrorArgumentsT &&value)
const Aws::Vector< ValidationExceptionErrorArgument > & GetErrorArguments() const
ValidationException & WithMessage(MessageT &&value)
AWS_PANORAMA_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ValidationExceptionField > & GetFields() const
ValidationException & WithFields(FieldsT &&value)
ValidationExceptionReason GetReason() const
ValidationException & WithErrorId(ErrorIdT &&value)
ValidationException & WithErrorArguments(ErrorArgumentsT &&value)
AWS_PANORAMA_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PANORAMA_API ValidationException()=default
ValidationException & WithReason(ValidationExceptionReason value)
ValidationException & AddErrorArguments(ErrorArgumentsT &&value)
void SetReason(ValidationExceptionReason value)
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() 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