AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
FsxProtocolSmb.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datasync/model/SmbMountOptions.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
37 {
38 public:
39 AWS_DATASYNC_API FsxProtocolSmb() = default;
40 AWS_DATASYNC_API FsxProtocolSmb(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
54 inline const Aws::String& GetDomain() const { return m_domain; }
55 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
56 template<typename DomainT = Aws::String>
57 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
58 template<typename DomainT = Aws::String>
59 FsxProtocolSmb& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
61
63
64 inline const SmbMountOptions& GetMountOptions() const { return m_mountOptions; }
65 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
66 template<typename MountOptionsT = SmbMountOptions>
67 void SetMountOptions(MountOptionsT&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::forward<MountOptionsT>(value); }
68 template<typename MountOptionsT = SmbMountOptions>
69 FsxProtocolSmb& WithMountOptions(MountOptionsT&& value) { SetMountOptions(std::forward<MountOptionsT>(value)); return *this;}
71
73
76 inline const Aws::String& GetPassword() const { return m_password; }
77 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
78 template<typename PasswordT = Aws::String>
79 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
80 template<typename PasswordT = Aws::String>
81 FsxProtocolSmb& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
83
85
92 inline const Aws::String& GetUser() const { return m_user; }
93 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
94 template<typename UserT = Aws::String>
95 void SetUser(UserT&& value) { m_userHasBeenSet = true; m_user = std::forward<UserT>(value); }
96 template<typename UserT = Aws::String>
97 FsxProtocolSmb& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
99 private:
100
101 Aws::String m_domain;
102 bool m_domainHasBeenSet = false;
103
104 SmbMountOptions m_mountOptions;
105 bool m_mountOptionsHasBeenSet = false;
106
107 Aws::String m_password;
108 bool m_passwordHasBeenSet = false;
109
110 Aws::String m_user;
111 bool m_userHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace DataSync
116} // namespace Aws
AWS_DATASYNC_API FsxProtocolSmb & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDomain() const
AWS_DATASYNC_API FsxProtocolSmb()=default
FsxProtocolSmb & WithUser(UserT &&value)
const Aws::String & GetPassword() const
void SetPassword(PasswordT &&value)
FsxProtocolSmb & WithPassword(PasswordT &&value)
const Aws::String & GetUser() const
AWS_DATASYNC_API FsxProtocolSmb(Aws::Utils::Json::JsonView jsonValue)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
const SmbMountOptions & GetMountOptions() const
void SetMountOptions(MountOptionsT &&value)
FsxProtocolSmb & WithMountOptions(MountOptionsT &&value)
FsxProtocolSmb & WithDomain(DomainT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue