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/taxsettings/TaxSettings_EXPORTS.h>
8#include <aws/taxsettings/model/ValidationExceptionErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/taxsettings/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 TaxSettings
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_TAXSETTINGS_API ValidationException();
39 AWS_TAXSETTINGS_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ValidationExceptionErrorCode& GetErrorCode() const{ return m_errorCode; }
49 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
50 inline void SetErrorCode(const ValidationExceptionErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
51 inline void SetErrorCode(ValidationExceptionErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
52 inline ValidationException& WithErrorCode(const ValidationExceptionErrorCode& value) { SetErrorCode(value); return *this;}
53 inline ValidationException& WithErrorCode(ValidationExceptionErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
55
57
60 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const{ return m_fieldList; }
61 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
62 inline void SetFieldList(const Aws::Vector<ValidationExceptionField>& value) { m_fieldListHasBeenSet = true; m_fieldList = value; }
63 inline void SetFieldList(Aws::Vector<ValidationExceptionField>&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::move(value); }
65 inline ValidationException& WithFieldList(Aws::Vector<ValidationExceptionField>&& value) { SetFieldList(std::move(value)); return *this;}
66 inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; }
67 inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; }
69
71
72 inline const Aws::String& GetMessage() const{ return m_message; }
73 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
74 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
75 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
76 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
77 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
78 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
79 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
81 private:
82
84 bool m_errorCodeHasBeenSet = false;
85
87 bool m_fieldListHasBeenSet = false;
88
89 Aws::String m_message;
90 bool m_messageHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace TaxSettings
95} // namespace Aws
ValidationException & AddFieldList(const ValidationExceptionField &value)
ValidationException & WithErrorCode(ValidationExceptionErrorCode &&value)
ValidationException & WithFieldList(Aws::Vector< ValidationExceptionField > &&value)
AWS_TAXSETTINGS_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(const ValidationExceptionErrorCode &value)
ValidationException & WithMessage(const char *value)
AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TAXSETTINGS_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(ValidationExceptionErrorCode &&value)
void SetFieldList(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & WithMessage(const Aws::String &value)
ValidationException & WithFieldList(const Aws::Vector< ValidationExceptionField > &value)
void SetFieldList(Aws::Vector< ValidationExceptionField > &&value)
ValidationException & WithMessage(Aws::String &&value)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & WithErrorCode(const ValidationExceptionErrorCode &value)
ValidationException & AddFieldList(ValidationExceptionField &&value)
const ValidationExceptionErrorCode & GetErrorCode() 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