AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
SourceConnectionDetail.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
9#include <aws/servicecatalog/model/LastSync.h>
10#include <aws/servicecatalog/model/SourceConnectionParameters.h>
11#include <aws/servicecatalog/model/SourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace ServiceCatalog {
22namespace Model {
23
31 public:
32 AWS_SERVICECATALOG_API SourceConnectionDetail() = default;
33 AWS_SERVICECATALOG_API SourceConnectionDetail(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_SERVICECATALOG_API SourceConnectionDetail& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline SourceType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(SourceType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
57 inline const SourceConnectionParameters& GetConnectionParameters() const { return m_connectionParameters; }
58 inline bool ConnectionParametersHasBeenSet() const { return m_connectionParametersHasBeenSet; }
59 template <typename ConnectionParametersT = SourceConnectionParameters>
60 void SetConnectionParameters(ConnectionParametersT&& value) {
61 m_connectionParametersHasBeenSet = true;
62 m_connectionParameters = std::forward<ConnectionParametersT>(value);
63 }
64 template <typename ConnectionParametersT = SourceConnectionParameters>
65 SourceConnectionDetail& WithConnectionParameters(ConnectionParametersT&& value) {
66 SetConnectionParameters(std::forward<ConnectionParametersT>(value));
67 return *this;
68 }
70
72
80 inline const LastSync& GetLastSync() const { return m_lastSync; }
81 inline bool LastSyncHasBeenSet() const { return m_lastSyncHasBeenSet; }
82 template <typename LastSyncT = LastSync>
83 void SetLastSync(LastSyncT&& value) {
84 m_lastSyncHasBeenSet = true;
85 m_lastSync = std::forward<LastSyncT>(value);
86 }
87 template <typename LastSyncT = LastSync>
89 SetLastSync(std::forward<LastSyncT>(value));
90 return *this;
91 }
93 private:
95
96 SourceConnectionParameters m_connectionParameters;
97
98 LastSync m_lastSync;
99 bool m_typeHasBeenSet = false;
100 bool m_connectionParametersHasBeenSet = false;
101 bool m_lastSyncHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace ServiceCatalog
106} // namespace Aws
AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
SourceConnectionDetail & WithConnectionParameters(ConnectionParametersT &&value)
AWS_SERVICECATALOG_API SourceConnectionDetail()=default
AWS_SERVICECATALOG_API SourceConnectionDetail & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SourceConnectionDetail & WithLastSync(LastSyncT &&value)
SourceConnectionDetail & WithType(SourceType value)
void SetConnectionParameters(ConnectionParametersT &&value)
const SourceConnectionParameters & GetConnectionParameters() const
AWS_SERVICECATALOG_API SourceConnectionDetail(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)