AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
FsxProtocol.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/datasync/DataSync_EXPORTS.h>
9#include <aws/datasync/model/FsxProtocolNfs.h>
10#include <aws/datasync/model/FsxProtocolSmb.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace DataSync {
21namespace Model {
22
30 public:
31 AWS_DATASYNC_API FsxProtocol() = default;
32 AWS_DATASYNC_API FsxProtocol(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_DATASYNC_API FsxProtocol& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_DATASYNC_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
42 inline const FsxProtocolNfs& GetNFS() const { return m_nFS; }
43 inline bool NFSHasBeenSet() const { return m_nFSHasBeenSet; }
44 template <typename NFST = FsxProtocolNfs>
45 void SetNFS(NFST&& value) {
46 m_nFSHasBeenSet = true;
47 m_nFS = std::forward<NFST>(value);
48 }
49 template <typename NFST = FsxProtocolNfs>
50 FsxProtocol& WithNFS(NFST&& value) {
51 SetNFS(std::forward<NFST>(value));
52 return *this;
53 }
55
57
61 inline const FsxProtocolSmb& GetSMB() const { return m_sMB; }
62 inline bool SMBHasBeenSet() const { return m_sMBHasBeenSet; }
63 template <typename SMBT = FsxProtocolSmb>
64 void SetSMB(SMBT&& value) {
65 m_sMBHasBeenSet = true;
66 m_sMB = std::forward<SMBT>(value);
67 }
68 template <typename SMBT = FsxProtocolSmb>
69 FsxProtocol& WithSMB(SMBT&& value) {
70 SetSMB(std::forward<SMBT>(value));
71 return *this;
72 }
74 private:
75 FsxProtocolNfs m_nFS;
76
77 FsxProtocolSmb m_sMB;
78 bool m_nFSHasBeenSet = false;
79 bool m_sMBHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace DataSync
84} // namespace Aws
FsxProtocol & WithSMB(SMBT &&value)
Definition FsxProtocol.h:69
AWS_DATASYNC_API FsxProtocol & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
FsxProtocol & WithNFS(NFST &&value)
Definition FsxProtocol.h:50
const FsxProtocolNfs & GetNFS() const
Definition FsxProtocol.h:42
const FsxProtocolSmb & GetSMB() const
Definition FsxProtocol.h:61
AWS_DATASYNC_API FsxProtocol(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_DATASYNC_API FsxProtocol()=default
AWS_DATASYNC_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const