AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
FsxProtocol.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/model/FsxProtocolNfs.h>
9#include <aws/datasync/model/FsxProtocolSmb.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataSync
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DATASYNC_API FsxProtocol() = default;
37 AWS_DATASYNC_API FsxProtocol(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATASYNC_API FsxProtocol& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const FsxProtocolNfs& GetNFS() const { return m_nFS; }
49 inline bool NFSHasBeenSet() const { return m_nFSHasBeenSet; }
50 template<typename NFST = FsxProtocolNfs>
51 void SetNFS(NFST&& value) { m_nFSHasBeenSet = true; m_nFS = std::forward<NFST>(value); }
52 template<typename NFST = FsxProtocolNfs>
53 FsxProtocol& WithNFS(NFST&& value) { SetNFS(std::forward<NFST>(value)); return *this;}
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) { m_sMBHasBeenSet = true; m_sMB = std::forward<SMBT>(value); }
65 template<typename SMBT = FsxProtocolSmb>
66 FsxProtocol& WithSMB(SMBT&& value) { SetSMB(std::forward<SMBT>(value)); return *this;}
68 private:
69
70 FsxProtocolNfs m_nFS;
71 bool m_nFSHasBeenSet = false;
72
73 FsxProtocolSmb m_sMB;
74 bool m_sMBHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace DataSync
79} // namespace Aws
FsxProtocol & WithSMB(SMBT &&value)
Definition FsxProtocol.h:66
FsxProtocol & WithNFS(NFST &&value)
Definition FsxProtocol.h:53
const FsxProtocolNfs & GetNFS() const
Definition FsxProtocol.h:48
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
const FsxProtocolSmb & GetSMB() const
Definition FsxProtocol.h:61
AWS_DATASYNC_API FsxProtocol()=default
AWS_DATASYNC_API FsxProtocol(Aws::Utils::Json::JsonView jsonValue)
AWS_DATASYNC_API FsxProtocol & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue