AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
SourceConnection.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
9#include <aws/servicecatalog/model/SourceConnectionParameters.h>
10#include <aws/servicecatalog/model/SourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ServiceCatalog {
21namespace Model {
22
35 public:
36 AWS_SERVICECATALOG_API SourceConnection() = default;
37 AWS_SERVICECATALOG_API SourceConnection(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_SERVICECATALOG_API SourceConnection& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
45 inline SourceType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(SourceType value) {
48 m_typeHasBeenSet = true;
49 m_type = value;
50 }
52 SetType(value);
53 return *this;
54 }
56
58
61 inline const SourceConnectionParameters& GetConnectionParameters() const { return m_connectionParameters; }
62 inline bool ConnectionParametersHasBeenSet() const { return m_connectionParametersHasBeenSet; }
63 template <typename ConnectionParametersT = SourceConnectionParameters>
64 void SetConnectionParameters(ConnectionParametersT&& value) {
65 m_connectionParametersHasBeenSet = true;
66 m_connectionParameters = std::forward<ConnectionParametersT>(value);
67 }
68 template <typename ConnectionParametersT = SourceConnectionParameters>
69 SourceConnection& WithConnectionParameters(ConnectionParametersT&& value) {
70 SetConnectionParameters(std::forward<ConnectionParametersT>(value));
71 return *this;
72 }
74 private:
76
77 SourceConnectionParameters m_connectionParameters;
78 bool m_typeHasBeenSet = false;
79 bool m_connectionParametersHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace ServiceCatalog
84} // namespace Aws
AWS_SERVICECATALOG_API SourceConnection(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const SourceConnectionParameters & GetConnectionParameters() const
SourceConnection & WithConnectionParameters(ConnectionParametersT &&value)
void SetConnectionParameters(ConnectionParametersT &&value)
AWS_SERVICECATALOG_API SourceConnection & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SourceConnection & WithType(SourceType value)
AWS_SERVICECATALOG_API SourceConnection()=default