AWS SDK for C++

AWS SDK for C++ Version 1.11.782

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/CmkSecretConfig.h>
10#include <aws/datasync/model/CustomSecretConfig.h>
11#include <aws/datasync/model/ManagedSecretConfig.h>
12#include <aws/datasync/model/SmbMountOptions.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataSync {
24namespace Model {
25
36 public:
37 AWS_DATASYNC_API FsxProtocolSmb() = default;
38 AWS_DATASYNC_API FsxProtocolSmb(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
51 inline const Aws::String& GetDomain() const { return m_domain; }
52 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
53 template <typename DomainT = Aws::String>
54 void SetDomain(DomainT&& value) {
55 m_domainHasBeenSet = true;
56 m_domain = std::forward<DomainT>(value);
57 }
58 template <typename DomainT = Aws::String>
59 FsxProtocolSmb& WithDomain(DomainT&& value) {
60 SetDomain(std::forward<DomainT>(value));
61 return *this;
62 }
64
66
67 inline const SmbMountOptions& GetMountOptions() const { return m_mountOptions; }
68 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
69 template <typename MountOptionsT = SmbMountOptions>
70 void SetMountOptions(MountOptionsT&& value) {
71 m_mountOptionsHasBeenSet = true;
72 m_mountOptions = std::forward<MountOptionsT>(value);
73 }
74 template <typename MountOptionsT = SmbMountOptions>
75 FsxProtocolSmb& WithMountOptions(MountOptionsT&& value) {
76 SetMountOptions(std::forward<MountOptionsT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetPassword() const { return m_password; }
86 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
87 template <typename PasswordT = Aws::String>
88 void SetPassword(PasswordT&& value) {
89 m_passwordHasBeenSet = true;
90 m_password = std::forward<PasswordT>(value);
91 }
92 template <typename PasswordT = Aws::String>
93 FsxProtocolSmb& WithPassword(PasswordT&& value) {
94 SetPassword(std::forward<PasswordT>(value));
95 return *this;
96 }
98
100
107 inline const Aws::String& GetUser() const { return m_user; }
108 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
109 template <typename UserT = Aws::String>
110 void SetUser(UserT&& value) {
111 m_userHasBeenSet = true;
112 m_user = std::forward<UserT>(value);
113 }
114 template <typename UserT = Aws::String>
115 FsxProtocolSmb& WithUser(UserT&& value) {
116 SetUser(std::forward<UserT>(value));
117 return *this;
118 }
120
122
131 inline const ManagedSecretConfig& GetManagedSecretConfig() const { return m_managedSecretConfig; }
132 inline bool ManagedSecretConfigHasBeenSet() const { return m_managedSecretConfigHasBeenSet; }
133 template <typename ManagedSecretConfigT = ManagedSecretConfig>
134 void SetManagedSecretConfig(ManagedSecretConfigT&& value) {
135 m_managedSecretConfigHasBeenSet = true;
136 m_managedSecretConfig = std::forward<ManagedSecretConfigT>(value);
137 }
138 template <typename ManagedSecretConfigT = ManagedSecretConfig>
139 FsxProtocolSmb& WithManagedSecretConfig(ManagedSecretConfigT&& value) {
140 SetManagedSecretConfig(std::forward<ManagedSecretConfigT>(value));
141 return *this;
142 }
144
146
162 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
163 inline bool CmkSecretConfigHasBeenSet() const { return m_cmkSecretConfigHasBeenSet; }
164 template <typename CmkSecretConfigT = CmkSecretConfig>
165 void SetCmkSecretConfig(CmkSecretConfigT&& value) {
166 m_cmkSecretConfigHasBeenSet = true;
167 m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value);
168 }
169 template <typename CmkSecretConfigT = CmkSecretConfig>
170 FsxProtocolSmb& WithCmkSecretConfig(CmkSecretConfigT&& value) {
171 SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value));
172 return *this;
173 }
175
177
190 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
191 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
192 template <typename CustomSecretConfigT = CustomSecretConfig>
193 void SetCustomSecretConfig(CustomSecretConfigT&& value) {
194 m_customSecretConfigHasBeenSet = true;
195 m_customSecretConfig = std::forward<CustomSecretConfigT>(value);
196 }
197 template <typename CustomSecretConfigT = CustomSecretConfig>
198 FsxProtocolSmb& WithCustomSecretConfig(CustomSecretConfigT&& value) {
199 SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_domain;
205
206 SmbMountOptions m_mountOptions;
207
208 Aws::String m_password;
209
210 Aws::String m_user;
211
212 ManagedSecretConfig m_managedSecretConfig;
213
214 CmkSecretConfig m_cmkSecretConfig;
215
216 CustomSecretConfig m_customSecretConfig;
217 bool m_domainHasBeenSet = false;
218 bool m_mountOptionsHasBeenSet = false;
219 bool m_passwordHasBeenSet = false;
220 bool m_userHasBeenSet = false;
221 bool m_managedSecretConfigHasBeenSet = false;
222 bool m_cmkSecretConfigHasBeenSet = false;
223 bool m_customSecretConfigHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace DataSync
228} // namespace Aws
FsxProtocolSmb & WithManagedSecretConfig(ManagedSecretConfigT &&value)
FsxProtocolSmb & WithCmkSecretConfig(CmkSecretConfigT &&value)
const CmkSecretConfig & GetCmkSecretConfig() const
AWS_DATASYNC_API FsxProtocolSmb & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCmkSecretConfig(CmkSecretConfigT &&value)
const Aws::String & GetDomain() const
FsxProtocolSmb & WithCustomSecretConfig(CustomSecretConfigT &&value)
AWS_DATASYNC_API FsxProtocolSmb()=default
FsxProtocolSmb & WithUser(UserT &&value)
const Aws::String & GetPassword() const
void SetPassword(PasswordT &&value)
const CustomSecretConfig & GetCustomSecretConfig() const
FsxProtocolSmb & WithPassword(PasswordT &&value)
void SetCustomSecretConfig(CustomSecretConfigT &&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 SetManagedSecretConfig(ManagedSecretConfigT &&value)
const ManagedSecretConfig & GetManagedSecretConfig() 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