AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/payment-cryptography-data/PaymentCryptographyData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/payment-cryptography-data/model/ValidationExceptionField.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PaymentCryptographyData
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PAYMENTCRYPTOGRAPHYDATA_API ValidationException() = default;
38 AWS_PAYMENTCRYPTOGRAPHYDATA_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PAYMENTCRYPTOGRAPHYDATA_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetMessage() const { return m_message; }
46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 template<typename MessageT = Aws::String>
48 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
49 template<typename MessageT = Aws::String>
50 ValidationException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
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) { m_fieldListHasBeenSet = true; m_fieldList = std::forward<FieldListT>(value); }
61 template<typename FieldListT = Aws::Vector<ValidationExceptionField>>
62 ValidationException& WithFieldList(FieldListT&& value) { SetFieldList(std::forward<FieldListT>(value)); return *this;}
63 template<typename FieldListT = ValidationExceptionField>
64 ValidationException& AddFieldList(FieldListT&& value) { m_fieldListHasBeenSet = true; m_fieldList.emplace_back(std::forward<FieldListT>(value)); return *this; }
66 private:
67
68 Aws::String m_message;
69 bool m_messageHasBeenSet = false;
70
72 bool m_fieldListHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace PaymentCryptographyData
77} // 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