AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
OntologyValidationIssue.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Context {
20namespace Model {
21
30 public:
31 AWS_CONTEXT_API OntologyValidationIssue() = default;
32 AWS_CONTEXT_API OntologyValidationIssue(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CONTEXT_API OntologyValidationIssue& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
42 inline const Aws::String& GetCode() const { return m_code; }
43 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
44 template <typename CodeT = Aws::String>
45 void SetCode(CodeT&& value) {
46 m_codeHasBeenSet = true;
47 m_code = std::forward<CodeT>(value);
48 }
49 template <typename CodeT = Aws::String>
51 SetCode(std::forward<CodeT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetMessage() const { return m_message; }
61 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
62 template <typename MessageT = Aws::String>
63 void SetMessage(MessageT&& value) {
64 m_messageHasBeenSet = true;
65 m_message = std::forward<MessageT>(value);
66 }
67 template <typename MessageT = Aws::String>
69 SetMessage(std::forward<MessageT>(value));
70 return *this;
71 }
73
75
79 inline int64_t GetLine() const { return m_line; }
80 inline bool LineHasBeenSet() const { return m_lineHasBeenSet; }
81 inline void SetLine(int64_t value) {
82 m_lineHasBeenSet = true;
83 m_line = value;
84 }
85 inline OntologyValidationIssue& WithLine(int64_t value) {
86 SetLine(value);
87 return *this;
88 }
90
92
97 inline const Aws::String& GetSubject() const { return m_subject; }
98 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
99 template <typename SubjectT = Aws::String>
100 void SetSubject(SubjectT&& value) {
101 m_subjectHasBeenSet = true;
102 m_subject = std::forward<SubjectT>(value);
103 }
104 template <typename SubjectT = Aws::String>
106 SetSubject(std::forward<SubjectT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_code;
112
113 Aws::String m_message;
114
115 int64_t m_line{0};
116
117 Aws::String m_subject;
118 bool m_codeHasBeenSet = false;
119 bool m_messageHasBeenSet = false;
120 bool m_lineHasBeenSet = false;
121 bool m_subjectHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Context
126} // namespace Aws
OntologyValidationIssue & WithCode(CodeT &&value)
AWS_CONTEXT_API OntologyValidationIssue & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OntologyValidationIssue & WithLine(int64_t value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
OntologyValidationIssue & WithMessage(MessageT &&value)
AWS_CONTEXT_API OntologyValidationIssue()=default
AWS_CONTEXT_API OntologyValidationIssue(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OntologyValidationIssue & WithSubject(SubjectT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String