AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/taxsettings/TaxSettings_EXPORTS.h>
10#include <aws/taxsettings/model/ValidationExceptionErrorCode.h>
11#include <aws/taxsettings/model/ValidationExceptionField.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace TaxSettings {
23namespace Model {
24
32 public:
33 AWS_TAXSETTINGS_API ValidationException() = default;
34 AWS_TAXSETTINGS_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline ValidationExceptionErrorCode GetErrorCode() const { return m_errorCode; }
43 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
45 m_errorCodeHasBeenSet = true;
46 m_errorCode = value;
47 }
49 SetErrorCode(value);
50 return *this;
51 }
53
55
58 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
59 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
60 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
61 void SetFieldList(FieldListT&& value) {
62 m_fieldListHasBeenSet = true;
63 m_fieldList = std::forward<FieldListT>(value);
64 }
65 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
66 ValidationException& WithFieldList(FieldListT&& value) {
67 SetFieldList(std::forward<FieldListT>(value));
68 return *this;
69 }
70 template <typename FieldListT = ValidationExceptionField>
71 ValidationException& AddFieldList(FieldListT&& value) {
72 m_fieldListHasBeenSet = true;
73 m_fieldList.emplace_back(std::forward<FieldListT>(value));
74 return *this;
75 }
77
79
80 inline const Aws::String& GetMessage() const { return m_message; }
81 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 template <typename MessageT = Aws::String>
83 void SetMessage(MessageT&& value) {
84 m_messageHasBeenSet = true;
85 m_message = std::forward<MessageT>(value);
86 }
87 template <typename MessageT = Aws::String>
88 ValidationException& WithMessage(MessageT&& value) {
89 SetMessage(std::forward<MessageT>(value));
90 return *this;
91 }
93 private:
95
97
98 Aws::String m_message;
99 bool m_errorCodeHasBeenSet = false;
100 bool m_fieldListHasBeenSet = false;
101 bool m_messageHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace TaxSettings
106} // namespace Aws
ValidationException & WithMessage(MessageT &&value)
void SetErrorCode(ValidationExceptionErrorCode value)
ValidationException & AddFieldList(FieldListT &&value)
AWS_TAXSETTINGS_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TAXSETTINGS_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TAXSETTINGS_API ValidationException()=default
ValidationExceptionErrorCode GetErrorCode() const
ValidationException & WithErrorCode(ValidationExceptionErrorCode value)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & WithFieldList(FieldListT &&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