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/panorama/Panorama_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/panorama/model/ValidationExceptionReason.h>
11#include <aws/panorama/model/ValidationExceptionErrorArgument.h>
12#include <aws/panorama/model/ValidationExceptionField.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Panorama
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_PANORAMA_API ValidationException();
42 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<ValidationExceptionErrorArgument>& GetErrorArguments() const{ return m_errorArguments; }
50 inline bool ErrorArgumentsHasBeenSet() const { return m_errorArgumentsHasBeenSet; }
51 inline void SetErrorArguments(const Aws::Vector<ValidationExceptionErrorArgument>& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments = value; }
52 inline void SetErrorArguments(Aws::Vector<ValidationExceptionErrorArgument>&& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments = std::move(value); }
55 inline ValidationException& AddErrorArguments(const ValidationExceptionErrorArgument& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments.push_back(value); return *this; }
56 inline ValidationException& AddErrorArguments(ValidationExceptionErrorArgument&& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments.push_back(std::move(value)); return *this; }
58
60
63 inline const Aws::String& GetErrorId() const{ return m_errorId; }
64 inline bool ErrorIdHasBeenSet() const { return m_errorIdHasBeenSet; }
65 inline void SetErrorId(const Aws::String& value) { m_errorIdHasBeenSet = true; m_errorId = value; }
66 inline void SetErrorId(Aws::String&& value) { m_errorIdHasBeenSet = true; m_errorId = std::move(value); }
67 inline void SetErrorId(const char* value) { m_errorIdHasBeenSet = true; m_errorId.assign(value); }
68 inline ValidationException& WithErrorId(const Aws::String& value) { SetErrorId(value); return *this;}
69 inline ValidationException& WithErrorId(Aws::String&& value) { SetErrorId(std::move(value)); return *this;}
70 inline ValidationException& WithErrorId(const char* value) { SetErrorId(value); return *this;}
72
74
77 inline const Aws::Vector<ValidationExceptionField>& GetFields() const{ return m_fields; }
78 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
79 inline void SetFields(const Aws::Vector<ValidationExceptionField>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
80 inline void SetFields(Aws::Vector<ValidationExceptionField>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
82 inline ValidationException& WithFields(Aws::Vector<ValidationExceptionField>&& value) { SetFields(std::move(value)); return *this;}
83 inline ValidationException& AddFields(const ValidationExceptionField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
84 inline ValidationException& AddFields(ValidationExceptionField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
86
88
89 inline const Aws::String& GetMessage() const{ return m_message; }
90 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
91 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
92 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
93 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
94 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
95 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
96 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
98
100
103 inline const ValidationExceptionReason& GetReason() const{ return m_reason; }
104 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
105 inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
106 inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
107 inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;}
108 inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
110 private:
111
113 bool m_errorArgumentsHasBeenSet = false;
114
115 Aws::String m_errorId;
116 bool m_errorIdHasBeenSet = false;
117
119 bool m_fieldsHasBeenSet = false;
120
121 Aws::String m_message;
122 bool m_messageHasBeenSet = false;
123
125 bool m_reasonHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Panorama
130} // namespace Aws
void SetErrorId(const Aws::String &value)
void SetReason(const ValidationExceptionReason &value)
const Aws::Vector< ValidationExceptionErrorArgument > & GetErrorArguments() const
ValidationException & WithErrorId(const char *value)
ValidationException & WithFields(Aws::Vector< ValidationExceptionField > &&value)
const ValidationExceptionReason & GetReason() const
void SetFields(const Aws::Vector< ValidationExceptionField > &value)
AWS_PANORAMA_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(Aws::String &&value)
const Aws::Vector< ValidationExceptionField > & GetFields() const
ValidationException & AddFields(const ValidationExceptionField &value)
ValidationException & WithErrorId(Aws::String &&value)
void SetFields(Aws::Vector< ValidationExceptionField > &&value)
void SetErrorArguments(Aws::Vector< ValidationExceptionErrorArgument > &&value)
ValidationException & WithReason(ValidationExceptionReason &&value)
ValidationException & AddErrorArguments(const ValidationExceptionErrorArgument &value)
ValidationException & AddErrorArguments(ValidationExceptionErrorArgument &&value)
ValidationException & WithErrorArguments(const Aws::Vector< ValidationExceptionErrorArgument > &value)
AWS_PANORAMA_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(const char *value)
ValidationException & WithErrorId(const Aws::String &value)
void SetMessage(const Aws::String &value)
ValidationException & WithMessage(const Aws::String &value)
void SetReason(ValidationExceptionReason &&value)
ValidationException & WithFields(const Aws::Vector< ValidationExceptionField > &value)
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorArguments(const Aws::Vector< ValidationExceptionErrorArgument > &value)
ValidationException & WithReason(const ValidationExceptionReason &value)
ValidationException & WithErrorArguments(Aws::Vector< ValidationExceptionErrorArgument > &&value)
ValidationException & AddFields(ValidationExceptionField &&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