AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ConnectionMapping.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/ConnectionType.h>
9#include <aws/context/model/DataFilter.h>
10#include <aws/context/model/OntologyMapping.h>
11#include <aws/context/model/PathSegment.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/crt/cbor/Cbor.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace Context {
25namespace Model {
26
36 public:
37 AWS_CONTEXT_API ConnectionMapping() = default;
38 AWS_CONTEXT_API ConnectionMapping(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_CONTEXT_API ConnectionMapping& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
48 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
49 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
50 template <typename ConnectionIdT = Aws::String>
51 void SetConnectionId(ConnectionIdT&& value) {
52 m_connectionIdHasBeenSet = true;
53 m_connectionId = std::forward<ConnectionIdT>(value);
54 }
55 template <typename ConnectionIdT = Aws::String>
56 ConnectionMapping& WithConnectionId(ConnectionIdT&& value) {
57 SetConnectionId(std::forward<ConnectionIdT>(value));
58 return *this;
59 }
61
63
73 inline const Aws::Vector<OntologyMapping>& GetOntologyMappings() const { return m_ontologyMappings; }
74 inline bool OntologyMappingsHasBeenSet() const { return m_ontologyMappingsHasBeenSet; }
75 template <typename OntologyMappingsT = Aws::Vector<OntologyMapping>>
76 void SetOntologyMappings(OntologyMappingsT&& value) {
77 m_ontologyMappingsHasBeenSet = true;
78 m_ontologyMappings = std::forward<OntologyMappingsT>(value);
79 }
80 template <typename OntologyMappingsT = Aws::Vector<OntologyMapping>>
81 ConnectionMapping& WithOntologyMappings(OntologyMappingsT&& value) {
82 SetOntologyMappings(std::forward<OntologyMappingsT>(value));
83 return *this;
84 }
85 template <typename OntologyMappingsT = OntologyMapping>
86 ConnectionMapping& AddOntologyMappings(OntologyMappingsT&& value) {
87 m_ontologyMappingsHasBeenSet = true;
88 m_ontologyMappings.emplace_back(std::forward<OntologyMappingsT>(value));
89 return *this;
90 }
92
94
99 inline const DataFilter& GetDataFilter() const { return m_dataFilter; }
100 inline bool DataFilterHasBeenSet() const { return m_dataFilterHasBeenSet; }
101 template <typename DataFilterT = DataFilter>
102 void SetDataFilter(DataFilterT&& value) {
103 m_dataFilterHasBeenSet = true;
104 m_dataFilter = std::forward<DataFilterT>(value);
105 }
106 template <typename DataFilterT = DataFilter>
107 ConnectionMapping& WithDataFilter(DataFilterT&& value) {
108 SetDataFilter(std::forward<DataFilterT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetExtractionDepth() const { return m_extractionDepth; }
119 inline bool ExtractionDepthHasBeenSet() const { return m_extractionDepthHasBeenSet; }
120 template <typename ExtractionDepthT = Aws::String>
121 void SetExtractionDepth(ExtractionDepthT&& value) {
122 m_extractionDepthHasBeenSet = true;
123 m_extractionDepth = std::forward<ExtractionDepthT>(value);
124 }
125 template <typename ExtractionDepthT = Aws::String>
126 ConnectionMapping& WithExtractionDepth(ExtractionDepthT&& value) {
127 SetExtractionDepth(std::forward<ExtractionDepthT>(value));
128 return *this;
129 }
131
133
152 inline const Aws::Vector<PathSegment>& GetPathSegments() const { return m_pathSegments; }
153 inline bool PathSegmentsHasBeenSet() const { return m_pathSegmentsHasBeenSet; }
154 template <typename PathSegmentsT = Aws::Vector<PathSegment>>
155 void SetPathSegments(PathSegmentsT&& value) {
156 m_pathSegmentsHasBeenSet = true;
157 m_pathSegments = std::forward<PathSegmentsT>(value);
158 }
159 template <typename PathSegmentsT = Aws::Vector<PathSegment>>
160 ConnectionMapping& WithPathSegments(PathSegmentsT&& value) {
161 SetPathSegments(std::forward<PathSegmentsT>(value));
162 return *this;
163 }
164 template <typename PathSegmentsT = PathSegment>
165 ConnectionMapping& AddPathSegments(PathSegmentsT&& value) {
166 m_pathSegmentsHasBeenSet = true;
167 m_pathSegments.emplace_back(std::forward<PathSegmentsT>(value));
168 return *this;
169 }
171
173
183 inline ConnectionType GetType() const { return m_type; }
184 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
185 inline void SetType(ConnectionType value) {
186 m_typeHasBeenSet = true;
187 m_type = value;
188 }
190 SetType(value);
191 return *this;
192 }
194 private:
195 Aws::String m_connectionId;
196
197 Aws::Vector<OntologyMapping> m_ontologyMappings;
198
199 DataFilter m_dataFilter;
200
201 Aws::String m_extractionDepth;
202
203 Aws::Vector<PathSegment> m_pathSegments;
204
206 bool m_connectionIdHasBeenSet = false;
207 bool m_ontologyMappingsHasBeenSet = false;
208 bool m_dataFilterHasBeenSet = false;
209 bool m_extractionDepthHasBeenSet = false;
210 bool m_pathSegmentsHasBeenSet = false;
211 bool m_typeHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace Context
216} // namespace Aws
AWS_CONTEXT_API ConnectionMapping()=default
void SetExtractionDepth(ExtractionDepthT &&value)
const Aws::String & GetExtractionDepth() const
AWS_CONTEXT_API ConnectionMapping(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ConnectionMapping & WithPathSegments(PathSegmentsT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetPathSegments(PathSegmentsT &&value)
AWS_CONTEXT_API ConnectionMapping & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< OntologyMapping > & GetOntologyMappings() const
const DataFilter & GetDataFilter() const
ConnectionMapping & WithDataFilter(DataFilterT &&value)
const Aws::String & GetConnectionId() const
void SetConnectionId(ConnectionIdT &&value)
ConnectionMapping & WithConnectionId(ConnectionIdT &&value)
ConnectionMapping & AddOntologyMappings(OntologyMappingsT &&value)
ConnectionMapping & WithExtractionDepth(ExtractionDepthT &&value)
ConnectionMapping & WithType(ConnectionType value)
ConnectionMapping & WithOntologyMappings(OntologyMappingsT &&value)
const Aws::Vector< PathSegment > & GetPathSegments() const
void SetOntologyMappings(OntologyMappingsT &&value)
ConnectionMapping & AddPathSegments(PathSegmentsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector