AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
FsxUpdateProtocol.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/FsxUpdateProtocolSmb.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
33 public:
34 AWS_DATASYNC_API FsxUpdateProtocol() = default;
35 AWS_DATASYNC_API FsxUpdateProtocol(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_DATASYNC_API FsxUpdateProtocol& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_DATASYNC_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
41 inline const FsxProtocolNfs& GetNFS() const { return m_nFS; }
42 inline bool NFSHasBeenSet() const { return m_nFSHasBeenSet; }
43 template <typename NFST = FsxProtocolNfs>
44 void SetNFS(NFST&& value) {
45 m_nFSHasBeenSet = true;
46 m_nFS = std::forward<NFST>(value);
47 }
48 template <typename NFST = FsxProtocolNfs>
49 FsxUpdateProtocol& WithNFS(NFST&& value) {
50 SetNFS(std::forward<NFST>(value));
51 return *this;
52 }
54
56
61 inline const FsxUpdateProtocolSmb& GetSMB() const { return m_sMB; }
62 inline bool SMBHasBeenSet() const { return m_sMBHasBeenSet; }
63 template <typename SMBT = FsxUpdateProtocolSmb>
64 void SetSMB(SMBT&& value) {
65 m_sMBHasBeenSet = true;
66 m_sMB = std::forward<SMBT>(value);
67 }
68 template <typename SMBT = FsxUpdateProtocolSmb>
69 FsxUpdateProtocol& WithSMB(SMBT&& value) {
70 SetSMB(std::forward<SMBT>(value));
71 return *this;
72 }
74 private:
75 FsxProtocolNfs m_nFS;
76
78 bool m_nFSHasBeenSet = false;
79 bool m_sMBHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace DataSync
84} // namespace Aws
FsxUpdateProtocol & WithSMB(SMBT &&value)
FsxUpdateProtocol & WithNFS(NFST &&value)
AWS_DATASYNC_API FsxUpdateProtocol & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const FsxUpdateProtocolSmb & GetSMB() const
const FsxProtocolNfs & GetNFS() const
AWS_DATASYNC_API FsxUpdateProtocol(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_DATASYNC_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_DATASYNC_API FsxUpdateProtocol()=default