AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
DataSourceReference.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/ConnectionType.h>
9#include <aws/context/model/DataSourceLocation.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Context {
21namespace Model {
22
30 public:
31 AWS_CONTEXT_API DataSourceReference() = default;
32 AWS_CONTEXT_API DataSourceReference(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CONTEXT_API DataSourceReference& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
46 inline ConnectionType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(ConnectionType value) {
49 m_typeHasBeenSet = true;
50 m_type = value;
51 }
53 SetType(value);
54 return *this;
55 }
57
59
62 inline const DataSourceLocation& GetLocation() const { return m_location; }
63 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
64 template <typename LocationT = DataSourceLocation>
65 void SetLocation(LocationT&& value) {
66 m_locationHasBeenSet = true;
67 m_location = std::forward<LocationT>(value);
68 }
69 template <typename LocationT = DataSourceLocation>
70 DataSourceReference& WithLocation(LocationT&& value) {
71 SetLocation(std::forward<LocationT>(value));
72 return *this;
73 }
75 private:
77
78 DataSourceLocation m_location;
79 bool m_typeHasBeenSet = false;
80 bool m_locationHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Context
85} // namespace Aws
AWS_CONTEXT_API DataSourceReference()=default
DataSourceReference & WithType(ConnectionType value)
DataSourceReference & WithLocation(LocationT &&value)
AWS_CONTEXT_API DataSourceReference & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const DataSourceLocation & GetLocation() const
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CONTEXT_API DataSourceReference(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)