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/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/model/ValidationExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/networkmanager/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 NetworkManager
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_NETWORKMANAGER_API ValidationException() = default;
38 AWS_NETWORKMANAGER_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKMANAGER_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKMANAGER_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 ValidationExceptionReason GetReason() const { return m_reason; }
58 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
59 inline void SetReason(ValidationExceptionReason value) { m_reasonHasBeenSet = true; m_reason = value; }
60 inline ValidationException& WithReason(ValidationExceptionReason value) { SetReason(value); return *this;}
62
64
67 inline const Aws::Vector<ValidationExceptionField>& GetFields() const { return m_fields; }
68 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
69 template<typename FieldsT = Aws::Vector<ValidationExceptionField>>
70 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
71 template<typename FieldsT = Aws::Vector<ValidationExceptionField>>
72 ValidationException& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
73 template<typename FieldsT = ValidationExceptionField>
74 ValidationException& AddFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields.emplace_back(std::forward<FieldsT>(value)); return *this; }
76 private:
77
78 Aws::String m_message;
79 bool m_messageHasBeenSet = false;
80
82 bool m_reasonHasBeenSet = false;
83
85 bool m_fieldsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace NetworkManager
90} // namespace Aws
ValidationException & AddFields(FieldsT &&value)
void SetReason(ValidationExceptionReason value)
ValidationException & WithFields(FieldsT &&value)
ValidationException & WithReason(ValidationExceptionReason value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(MessageT &&value)
AWS_NETWORKMANAGER_API ValidationException()=default
const Aws::Vector< ValidationExceptionField > & GetFields() const
AWS_NETWORKMANAGER_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue