AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
FsxUpdateProtocolSmb.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/SmbMountOptions.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataSync {
23namespace Model {
24
35 public:
36 AWS_DATASYNC_API FsxUpdateProtocolSmb() = default;
39 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
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 FsxUpdateProtocolSmb& 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 FsxUpdateProtocolSmb& 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 FsxUpdateProtocolSmb& 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>
113 SetUser(std::forward<UserT>(value));
114 return *this;
115 }
117
119
124 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
125 inline bool CmkSecretConfigHasBeenSet() const { return m_cmkSecretConfigHasBeenSet; }
126 template <typename CmkSecretConfigT = CmkSecretConfig>
127 void SetCmkSecretConfig(CmkSecretConfigT&& value) {
128 m_cmkSecretConfigHasBeenSet = true;
129 m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value);
130 }
131 template <typename CmkSecretConfigT = CmkSecretConfig>
132 FsxUpdateProtocolSmb& WithCmkSecretConfig(CmkSecretConfigT&& value) {
133 SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value));
134 return *this;
135 }
137
139
145 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
146 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
147 template <typename CustomSecretConfigT = CustomSecretConfig>
148 void SetCustomSecretConfig(CustomSecretConfigT&& value) {
149 m_customSecretConfigHasBeenSet = true;
150 m_customSecretConfig = std::forward<CustomSecretConfigT>(value);
151 }
152 template <typename CustomSecretConfigT = CustomSecretConfig>
153 FsxUpdateProtocolSmb& WithCustomSecretConfig(CustomSecretConfigT&& value) {
154 SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_domain;
160
161 SmbMountOptions m_mountOptions;
162
163 Aws::String m_password;
164
165 Aws::String m_user;
166
167 CmkSecretConfig m_cmkSecretConfig;
168
169 CustomSecretConfig m_customSecretConfig;
170 bool m_domainHasBeenSet = false;
171 bool m_mountOptionsHasBeenSet = false;
172 bool m_passwordHasBeenSet = false;
173 bool m_userHasBeenSet = false;
174 bool m_cmkSecretConfigHasBeenSet = false;
175 bool m_customSecretConfigHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace DataSync
180} // namespace Aws
const CmkSecretConfig & GetCmkSecretConfig() const
FsxUpdateProtocolSmb & WithCmkSecretConfig(CmkSecretConfigT &&value)
AWS_DATASYNC_API FsxUpdateProtocolSmb()=default
AWS_DATASYNC_API FsxUpdateProtocolSmb(Aws::Utils::Json::JsonView jsonValue)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
FsxUpdateProtocolSmb & WithPassword(PasswordT &&value)
const CustomSecretConfig & GetCustomSecretConfig() const
void SetCustomSecretConfig(CustomSecretConfigT &&value)
FsxUpdateProtocolSmb & WithMountOptions(MountOptionsT &&value)
AWS_DATASYNC_API FsxUpdateProtocolSmb & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCmkSecretConfig(CmkSecretConfigT &&value)
const SmbMountOptions & GetMountOptions() const
FsxUpdateProtocolSmb & WithCustomSecretConfig(CustomSecretConfigT &&value)
FsxUpdateProtocolSmb & WithUser(UserT &&value)
FsxUpdateProtocolSmb & WithDomain(DomainT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue