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/pcs/PCS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pcs/model/ValidationExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/pcs/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 PCS
25{
26namespace Model
27{
28
41 {
42 public:
43 AWS_PCS_API ValidationException();
47
48
50
51 inline const Aws::String& GetMessage() const{ return m_message; }
52 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
53 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
54 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
55 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
56 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
57 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
58 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
60
62
65 inline const ValidationExceptionReason& GetReason() const{ return m_reason; }
66 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
67 inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
68 inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
69 inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;}
70 inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
72
74
77 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const{ return m_fieldList; }
78 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
79 inline void SetFieldList(const Aws::Vector<ValidationExceptionField>& value) { m_fieldListHasBeenSet = true; m_fieldList = value; }
80 inline void SetFieldList(Aws::Vector<ValidationExceptionField>&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::move(value); }
82 inline ValidationException& WithFieldList(Aws::Vector<ValidationExceptionField>&& value) { SetFieldList(std::move(value)); return *this;}
83 inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; }
84 inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_message;
89 bool m_messageHasBeenSet = false;
90
92 bool m_reasonHasBeenSet = false;
93
95 bool m_fieldListHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace PCS
100} // namespace Aws
ValidationException & WithFieldList(Aws::Vector< ValidationExceptionField > &&value)
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMessage() const
AWS_PCS_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & AddFieldList(const ValidationExceptionField &value)
ValidationException & WithReason(const ValidationExceptionReason &value)
void SetMessage(const Aws::String &value)
ValidationException & WithReason(ValidationExceptionReason &&value)
void SetReason(const ValidationExceptionReason &value)
AWS_PCS_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & AddFieldList(ValidationExceptionField &&value)
void SetReason(ValidationExceptionReason &&value)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
void SetFieldList(Aws::Vector< ValidationExceptionField > &&value)
ValidationException & WithMessage(const Aws::String &value)
ValidationException & WithMessage(Aws::String &&value)
void SetFieldList(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & WithFieldList(const Aws::Vector< ValidationExceptionField > &value)
const ValidationExceptionReason & GetReason() const
ValidationException & WithMessage(const char *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