AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/partnercentral-selling/model/ValidationExceptionReason.h>
11#include <aws/partnercentral-selling/model/ValidationExceptionError.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 PartnerCentralSelling
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_PARTNERCENTRALSELLING_API ValidationException() = default;
41 AWS_PARTNERCENTRALSELLING_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PARTNERCENTRALSELLING_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Vector<ValidationExceptionError>& GetErrorList() const { return m_errorList; }
52 inline bool ErrorListHasBeenSet() const { return m_errorListHasBeenSet; }
53 template<typename ErrorListT = Aws::Vector<ValidationExceptionError>>
54 void SetErrorList(ErrorListT&& value) { m_errorListHasBeenSet = true; m_errorList = std::forward<ErrorListT>(value); }
55 template<typename ErrorListT = Aws::Vector<ValidationExceptionError>>
56 ValidationException& WithErrorList(ErrorListT&& value) { SetErrorList(std::forward<ErrorListT>(value)); return *this;}
57 template<typename ErrorListT = ValidationExceptionError>
58 ValidationException& AddErrorList(ErrorListT&& value) { m_errorListHasBeenSet = true; m_errorList.emplace_back(std::forward<ErrorListT>(value)); return *this; }
60
62
63 inline const Aws::String& GetMessage() const { return m_message; }
64 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
65 template<typename MessageT = Aws::String>
66 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
67 template<typename MessageT = Aws::String>
68 ValidationException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
70
72
81 inline ValidationExceptionReason GetReason() const { return m_reason; }
82 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
83 inline void SetReason(ValidationExceptionReason value) { m_reasonHasBeenSet = true; m_reason = value; }
84 inline ValidationException& WithReason(ValidationExceptionReason value) { SetReason(value); return *this;}
86 private:
87
89 bool m_errorListHasBeenSet = false;
90
91 Aws::String m_message;
92 bool m_messageHasBeenSet = false;
93
95 bool m_reasonHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace PartnerCentralSelling
100} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALSELLING_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithErrorList(ErrorListT &&value)
AWS_PARTNERCENTRALSELLING_API ValidationException()=default
ValidationException & WithMessage(MessageT &&value)
ValidationException & AddErrorList(ErrorListT &&value)
const Aws::Vector< ValidationExceptionError > & GetErrorList() const
ValidationException & WithReason(ValidationExceptionReason 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