AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PropertyValidationExceptionProperty.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/PropertyValidationExceptionReason.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
30 public:
31 AWS_CONNECT_API PropertyValidationExceptionProperty() = default;
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetPropertyPath() const { return m_propertyPath; }
41 inline bool PropertyPathHasBeenSet() const { return m_propertyPathHasBeenSet; }
42 template <typename PropertyPathT = Aws::String>
43 void SetPropertyPath(PropertyPathT&& value) {
44 m_propertyPathHasBeenSet = true;
45 m_propertyPath = std::forward<PropertyPathT>(value);
46 }
47 template <typename PropertyPathT = Aws::String>
49 SetPropertyPath(std::forward<PropertyPathT>(value));
50 return *this;
51 }
53
55
58 inline PropertyValidationExceptionReason GetReason() const { return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 m_reasonHasBeenSet = true;
62 m_reason = value;
63 }
65 SetReason(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetMessage() const { return m_message; }
75 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
76 template <typename MessageT = Aws::String>
77 void SetMessage(MessageT&& value) {
78 m_messageHasBeenSet = true;
79 m_message = std::forward<MessageT>(value);
80 }
81 template <typename MessageT = Aws::String>
83 SetMessage(std::forward<MessageT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_propertyPath;
89
91
92 Aws::String m_message;
93 bool m_propertyPathHasBeenSet = false;
94 bool m_reasonHasBeenSet = false;
95 bool m_messageHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Connect
100} // namespace Aws
PropertyValidationExceptionProperty & WithMessage(MessageT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API PropertyValidationExceptionProperty(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API PropertyValidationExceptionProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
PropertyValidationExceptionProperty & WithPropertyPath(PropertyPathT &&value)
PropertyValidationExceptionProperty & WithReason(PropertyValidationExceptionReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue