AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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/payment-cryptography-data/PaymentCryptographyData_EXPORTS.h>
10#include <aws/payment-cryptography-data/model/ValidationExceptionField.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PaymentCryptographyData {
22namespace Model {
23
31 public:
32 AWS_PAYMENTCRYPTOGRAPHYDATA_API ValidationException() = default;
33 AWS_PAYMENTCRYPTOGRAPHYDATA_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PAYMENTCRYPTOGRAPHYDATA_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetMessage() const { return m_message; }
40 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
41 template <typename MessageT = Aws::String>
42 void SetMessage(MessageT&& value) {
43 m_messageHasBeenSet = true;
44 m_message = std::forward<MessageT>(value);
45 }
46 template <typename MessageT = Aws::String>
47 ValidationException& WithMessage(MessageT&& value) {
48 SetMessage(std::forward<MessageT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
58 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
59 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
60 void SetFieldList(FieldListT&& value) {
61 m_fieldListHasBeenSet = true;
62 m_fieldList = std::forward<FieldListT>(value);
63 }
64 template <typename FieldListT = Aws::Vector<ValidationExceptionField>>
65 ValidationException& WithFieldList(FieldListT&& value) {
66 SetFieldList(std::forward<FieldListT>(value));
67 return *this;
68 }
69 template <typename FieldListT = ValidationExceptionField>
70 ValidationException& AddFieldList(FieldListT&& value) {
71 m_fieldListHasBeenSet = true;
72 m_fieldList.emplace_back(std::forward<FieldListT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_message;
78
80 bool m_messageHasBeenSet = false;
81 bool m_fieldListHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace PaymentCryptographyData
86} // namespace Aws
ValidationException & WithMessage(MessageT &&value)
ValidationException & WithFieldList(FieldListT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PAYMENTCRYPTOGRAPHYDATA_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & AddFieldList(FieldListT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
AWS_PAYMENTCRYPTOGRAPHYDATA_API ValidationException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue