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/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() = default;
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 template<typename ErrorArgumentsT = Aws::Vector<ValidationExceptionErrorArgument>>
52 void SetErrorArguments(ErrorArgumentsT&& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments = std::forward<ErrorArgumentsT>(value); }
53 template<typename ErrorArgumentsT = Aws::Vector<ValidationExceptionErrorArgument>>
54 ValidationException& WithErrorArguments(ErrorArgumentsT&& value) { SetErrorArguments(std::forward<ErrorArgumentsT>(value)); return *this;}
55 template<typename ErrorArgumentsT = ValidationExceptionErrorArgument>
56 ValidationException& AddErrorArguments(ErrorArgumentsT&& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments.emplace_back(std::forward<ErrorArgumentsT>(value)); return *this; }
58
60
63 inline const Aws::String& GetErrorId() const { return m_errorId; }
64 inline bool ErrorIdHasBeenSet() const { return m_errorIdHasBeenSet; }
65 template<typename ErrorIdT = Aws::String>
66 void SetErrorId(ErrorIdT&& value) { m_errorIdHasBeenSet = true; m_errorId = std::forward<ErrorIdT>(value); }
67 template<typename ErrorIdT = Aws::String>
68 ValidationException& WithErrorId(ErrorIdT&& value) { SetErrorId(std::forward<ErrorIdT>(value)); return *this;}
70
72
75 inline const Aws::Vector<ValidationExceptionField>& GetFields() const { return m_fields; }
76 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
77 template<typename FieldsT = Aws::Vector<ValidationExceptionField>>
78 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
79 template<typename FieldsT = Aws::Vector<ValidationExceptionField>>
80 ValidationException& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
81 template<typename FieldsT = ValidationExceptionField>
82 ValidationException& AddFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields.emplace_back(std::forward<FieldsT>(value)); return *this; }
84
86
87 inline const Aws::String& GetMessage() const { return m_message; }
88 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
89 template<typename MessageT = Aws::String>
90 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
91 template<typename MessageT = Aws::String>
92 ValidationException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
94
96
99 inline ValidationExceptionReason GetReason() const { return m_reason; }
100 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
101 inline void SetReason(ValidationExceptionReason value) { m_reasonHasBeenSet = true; m_reason = value; }
104 private:
105
107 bool m_errorArgumentsHasBeenSet = false;
108
109 Aws::String m_errorId;
110 bool m_errorIdHasBeenSet = false;
111
113 bool m_fieldsHasBeenSet = false;
114
115 Aws::String m_message;
116 bool m_messageHasBeenSet = false;
117
119 bool m_reasonHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Panorama
124} // namespace Aws
ValidationException & AddFields(FieldsT &&value)
void SetErrorArguments(ErrorArgumentsT &&value)
const Aws::Vector< ValidationExceptionErrorArgument > & GetErrorArguments() const
ValidationException & WithMessage(MessageT &&value)
AWS_PANORAMA_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ValidationExceptionField > & GetFields() const
ValidationException & WithFields(FieldsT &&value)
ValidationExceptionReason GetReason() const
ValidationException & WithErrorId(ErrorIdT &&value)
ValidationException & WithErrorArguments(ErrorArgumentsT &&value)
AWS_PANORAMA_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PANORAMA_API ValidationException()=default
ValidationException & WithReason(ValidationExceptionReason value)
ValidationException & AddErrorArguments(ErrorArgumentsT &&value)
void SetReason(ValidationExceptionReason value)
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue