AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PropertyValidationException.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/connect/model/PropertyValidationExceptionProperty.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CONNECT_API PropertyValidationException() = default;
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetMessage() const { return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 template<typename MessageT = Aws::String>
47 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
48 template<typename MessageT = Aws::String>
49 PropertyValidationException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
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) { m_propertyListHasBeenSet = true; m_propertyList = std::forward<PropertyListT>(value); }
58 template<typename PropertyListT = Aws::Vector<PropertyValidationExceptionProperty>>
59 PropertyValidationException& WithPropertyList(PropertyListT&& value) { SetPropertyList(std::forward<PropertyListT>(value)); return *this;}
60 template<typename PropertyListT = PropertyValidationExceptionProperty>
61 PropertyValidationException& AddPropertyList(PropertyListT&& value) { m_propertyListHasBeenSet = true; m_propertyList.emplace_back(std::forward<PropertyListT>(value)); return *this; }
63 private:
64
65 Aws::String m_message;
66 bool m_messageHasBeenSet = false;
67
69 bool m_propertyListHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Connect
74} // 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