AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
FsxProtocolSmb.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datasync/DataSync_EXPORTS.h>
9#include <aws/datasync/model/SmbMountOptions.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataSync {
21namespace Model {
22
33 public:
34 AWS_DATASYNC_API FsxProtocolSmb() = default;
35 AWS_DATASYNC_API FsxProtocolSmb(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
48 inline const Aws::String& GetDomain() const { return m_domain; }
49 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
50 template <typename DomainT = Aws::String>
51 void SetDomain(DomainT&& value) {
52 m_domainHasBeenSet = true;
53 m_domain = std::forward<DomainT>(value);
54 }
55 template <typename DomainT = Aws::String>
56 FsxProtocolSmb& WithDomain(DomainT&& value) {
57 SetDomain(std::forward<DomainT>(value));
58 return *this;
59 }
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) {
68 m_mountOptionsHasBeenSet = true;
69 m_mountOptions = std::forward<MountOptionsT>(value);
70 }
71 template <typename MountOptionsT = SmbMountOptions>
72 FsxProtocolSmb& WithMountOptions(MountOptionsT&& value) {
73 SetMountOptions(std::forward<MountOptionsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetPassword() const { return m_password; }
83 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
84 template <typename PasswordT = Aws::String>
85 void SetPassword(PasswordT&& value) {
86 m_passwordHasBeenSet = true;
87 m_password = std::forward<PasswordT>(value);
88 }
89 template <typename PasswordT = Aws::String>
90 FsxProtocolSmb& WithPassword(PasswordT&& value) {
91 SetPassword(std::forward<PasswordT>(value));
92 return *this;
93 }
95
97
104 inline const Aws::String& GetUser() const { return m_user; }
105 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
106 template <typename UserT = Aws::String>
107 void SetUser(UserT&& value) {
108 m_userHasBeenSet = true;
109 m_user = std::forward<UserT>(value);
110 }
111 template <typename UserT = Aws::String>
112 FsxProtocolSmb& WithUser(UserT&& value) {
113 SetUser(std::forward<UserT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_domain;
119
120 SmbMountOptions m_mountOptions;
121
122 Aws::String m_password;
123
124 Aws::String m_user;
125 bool m_domainHasBeenSet = false;
126 bool m_mountOptionsHasBeenSet = false;
127 bool m_passwordHasBeenSet = false;
128 bool m_userHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace DataSync
133} // 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