AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PropertyValidationException.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/PropertyValidationExceptionProperty.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
30 public:
31 AWS_CONNECT_API PropertyValidationException() = default;
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetMessage() const { return m_message; }
39 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
40 template <typename MessageT = Aws::String>
41 void SetMessage(MessageT&& value) {
42 m_messageHasBeenSet = true;
43 m_message = std::forward<MessageT>(value);
44 }
45 template <typename MessageT = Aws::String>
47 SetMessage(std::forward<MessageT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::Vector<PropertyValidationExceptionProperty>& GetPropertyList() const { return m_propertyList; }
55 inline bool PropertyListHasBeenSet() const { return m_propertyListHasBeenSet; }
56 template <typename PropertyListT = Aws::Vector<PropertyValidationExceptionProperty>>
57 void SetPropertyList(PropertyListT&& value) {
58 m_propertyListHasBeenSet = true;
59 m_propertyList = std::forward<PropertyListT>(value);
60 }
61 template <typename PropertyListT = Aws::Vector<PropertyValidationExceptionProperty>>
63 SetPropertyList(std::forward<PropertyListT>(value));
64 return *this;
65 }
66 template <typename PropertyListT = PropertyValidationExceptionProperty>
68 m_propertyListHasBeenSet = true;
69 m_propertyList.emplace_back(std::forward<PropertyListT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_message;
75
77 bool m_messageHasBeenSet = false;
78 bool m_propertyListHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Connect
83} // namespace Aws
AWS_CONNECT_API PropertyValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API PropertyValidationException()=default
PropertyValidationException & WithPropertyList(PropertyListT &&value)
AWS_CONNECT_API PropertyValidationException(Aws::Utils::Json::JsonView jsonValue)
PropertyValidationException & AddPropertyList(PropertyListT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< PropertyValidationExceptionProperty > & GetPropertyList() const
PropertyValidationException & WithMessage(MessageT &&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