AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateLocationFsxWindowsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datasync/DataSyncRequest.h>
10#include <aws/datasync/DataSync_EXPORTS.h>
11#include <aws/datasync/model/CmkSecretConfig.h>
12#include <aws/datasync/model/CustomSecretConfig.h>
13#include <aws/datasync/model/TagListEntry.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DataSync {
19namespace Model {
20
24 public:
25 AWS_DATASYNC_API CreateLocationFsxWindowsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateLocationFsxWindows"; }
32
33 AWS_DATASYNC_API Aws::String SerializePayload() const override;
34
36
38
43 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
44 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
45 template <typename SubdirectoryT = Aws::String>
46 void SetSubdirectory(SubdirectoryT&& value) {
47 m_subdirectoryHasBeenSet = true;
48 m_subdirectory = std::forward<SubdirectoryT>(value);
49 }
50 template <typename SubdirectoryT = Aws::String>
52 SetSubdirectory(std::forward<SubdirectoryT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetFsxFilesystemArn() const { return m_fsxFilesystemArn; }
63 inline bool FsxFilesystemArnHasBeenSet() const { return m_fsxFilesystemArnHasBeenSet; }
64 template <typename FsxFilesystemArnT = Aws::String>
65 void SetFsxFilesystemArn(FsxFilesystemArnT&& value) {
66 m_fsxFilesystemArnHasBeenSet = true;
67 m_fsxFilesystemArn = std::forward<FsxFilesystemArnT>(value);
68 }
69 template <typename FsxFilesystemArnT = Aws::String>
71 SetFsxFilesystemArn(std::forward<FsxFilesystemArnT>(value));
72 return *this;
73 }
75
77
90 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const { return m_securityGroupArns; }
91 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
92 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
93 void SetSecurityGroupArns(SecurityGroupArnsT&& value) {
94 m_securityGroupArnsHasBeenSet = true;
95 m_securityGroupArns = std::forward<SecurityGroupArnsT>(value);
96 }
97 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
99 SetSecurityGroupArns(std::forward<SecurityGroupArnsT>(value));
100 return *this;
101 }
102 template <typename SecurityGroupArnsT = Aws::String>
104 m_securityGroupArnsHasBeenSet = true;
105 m_securityGroupArns.emplace_back(std::forward<SecurityGroupArnsT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 template <typename TagsT = Aws::Vector<TagListEntry>>
119 void SetTags(TagsT&& value) {
120 m_tagsHasBeenSet = true;
121 m_tags = std::forward<TagsT>(value);
122 }
123 template <typename TagsT = Aws::Vector<TagListEntry>>
125 SetTags(std::forward<TagsT>(value));
126 return *this;
127 }
128 template <typename TagsT = TagListEntry>
130 m_tagsHasBeenSet = true;
131 m_tags.emplace_back(std::forward<TagsT>(value));
132 return *this;
133 }
135
137
145 inline const Aws::String& GetUser() const { return m_user; }
146 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
147 template <typename UserT = Aws::String>
148 void SetUser(UserT&& value) {
149 m_userHasBeenSet = true;
150 m_user = std::forward<UserT>(value);
151 }
152 template <typename UserT = Aws::String>
154 SetUser(std::forward<UserT>(value));
155 return *this;
156 }
158
160
166 inline const Aws::String& GetDomain() const { return m_domain; }
167 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
168 template <typename DomainT = Aws::String>
169 void SetDomain(DomainT&& value) {
170 m_domainHasBeenSet = true;
171 m_domain = std::forward<DomainT>(value);
172 }
173 template <typename DomainT = Aws::String>
175 SetDomain(std::forward<DomainT>(value));
176 return *this;
177 }
179
181
186 inline const Aws::String& GetPassword() const { return m_password; }
187 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
188 template <typename PasswordT = Aws::String>
189 void SetPassword(PasswordT&& value) {
190 m_passwordHasBeenSet = true;
191 m_password = std::forward<PasswordT>(value);
192 }
193 template <typename PasswordT = Aws::String>
195 SetPassword(std::forward<PasswordT>(value));
196 return *this;
197 }
199
201
217 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
218 inline bool CmkSecretConfigHasBeenSet() const { return m_cmkSecretConfigHasBeenSet; }
219 template <typename CmkSecretConfigT = CmkSecretConfig>
220 void SetCmkSecretConfig(CmkSecretConfigT&& value) {
221 m_cmkSecretConfigHasBeenSet = true;
222 m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value);
223 }
224 template <typename CmkSecretConfigT = CmkSecretConfig>
226 SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value));
227 return *this;
228 }
230
232
245 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
246 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
247 template <typename CustomSecretConfigT = CustomSecretConfig>
248 void SetCustomSecretConfig(CustomSecretConfigT&& value) {
249 m_customSecretConfigHasBeenSet = true;
250 m_customSecretConfig = std::forward<CustomSecretConfigT>(value);
251 }
252 template <typename CustomSecretConfigT = CustomSecretConfig>
254 SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value));
255 return *this;
256 }
258 private:
259 Aws::String m_subdirectory;
260
261 Aws::String m_fsxFilesystemArn;
262
263 Aws::Vector<Aws::String> m_securityGroupArns;
264
266
267 Aws::String m_user;
268
269 Aws::String m_domain;
270
271 Aws::String m_password;
272
273 CmkSecretConfig m_cmkSecretConfig;
274
275 CustomSecretConfig m_customSecretConfig;
276 bool m_subdirectoryHasBeenSet = false;
277 bool m_fsxFilesystemArnHasBeenSet = false;
278 bool m_securityGroupArnsHasBeenSet = false;
279 bool m_tagsHasBeenSet = false;
280 bool m_userHasBeenSet = false;
281 bool m_domainHasBeenSet = false;
282 bool m_passwordHasBeenSet = false;
283 bool m_cmkSecretConfigHasBeenSet = false;
284 bool m_customSecretConfigHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace DataSync
289} // namespace Aws
CreateLocationFsxWindowsRequest & WithSecurityGroupArns(SecurityGroupArnsT &&value)
CreateLocationFsxWindowsRequest & WithCustomSecretConfig(CustomSecretConfigT &&value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationFsxWindowsRequest & WithTags(TagsT &&value)
CreateLocationFsxWindowsRequest & WithCmkSecretConfig(CmkSecretConfigT &&value)
CreateLocationFsxWindowsRequest & WithUser(UserT &&value)
CreateLocationFsxWindowsRequest & AddTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
CreateLocationFsxWindowsRequest & WithDomain(DomainT &&value)
CreateLocationFsxWindowsRequest & WithSubdirectory(SubdirectoryT &&value)
CreateLocationFsxWindowsRequest & AddSecurityGroupArns(SecurityGroupArnsT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
AWS_DATASYNC_API CreateLocationFsxWindowsRequest()=default
CreateLocationFsxWindowsRequest & WithPassword(PasswordT &&value)
CreateLocationFsxWindowsRequest & WithFsxFilesystemArn(FsxFilesystemArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector