AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/TagListEntry.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataSync {
17namespace Model {
18
22 public:
23 AWS_DATASYNC_API CreateLocationFsxWindowsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateLocationFsxWindows"; }
30
31 AWS_DATASYNC_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
42 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
43 template <typename SubdirectoryT = Aws::String>
44 void SetSubdirectory(SubdirectoryT&& value) {
45 m_subdirectoryHasBeenSet = true;
46 m_subdirectory = std::forward<SubdirectoryT>(value);
47 }
48 template <typename SubdirectoryT = Aws::String>
50 SetSubdirectory(std::forward<SubdirectoryT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetFsxFilesystemArn() const { return m_fsxFilesystemArn; }
61 inline bool FsxFilesystemArnHasBeenSet() const { return m_fsxFilesystemArnHasBeenSet; }
62 template <typename FsxFilesystemArnT = Aws::String>
63 void SetFsxFilesystemArn(FsxFilesystemArnT&& value) {
64 m_fsxFilesystemArnHasBeenSet = true;
65 m_fsxFilesystemArn = std::forward<FsxFilesystemArnT>(value);
66 }
67 template <typename FsxFilesystemArnT = Aws::String>
69 SetFsxFilesystemArn(std::forward<FsxFilesystemArnT>(value));
70 return *this;
71 }
73
75
88 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const { return m_securityGroupArns; }
89 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
90 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
91 void SetSecurityGroupArns(SecurityGroupArnsT&& value) {
92 m_securityGroupArnsHasBeenSet = true;
93 m_securityGroupArns = std::forward<SecurityGroupArnsT>(value);
94 }
95 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
97 SetSecurityGroupArns(std::forward<SecurityGroupArnsT>(value));
98 return *this;
99 }
100 template <typename SecurityGroupArnsT = Aws::String>
102 m_securityGroupArnsHasBeenSet = true;
103 m_securityGroupArns.emplace_back(std::forward<SecurityGroupArnsT>(value));
104 return *this;
105 }
107
109
114 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template <typename TagsT = Aws::Vector<TagListEntry>>
117 void SetTags(TagsT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags = std::forward<TagsT>(value);
120 }
121 template <typename TagsT = Aws::Vector<TagListEntry>>
123 SetTags(std::forward<TagsT>(value));
124 return *this;
125 }
126 template <typename TagsT = TagListEntry>
128 m_tagsHasBeenSet = true;
129 m_tags.emplace_back(std::forward<TagsT>(value));
130 return *this;
131 }
133
135
143 inline const Aws::String& GetUser() const { return m_user; }
144 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
145 template <typename UserT = Aws::String>
146 void SetUser(UserT&& value) {
147 m_userHasBeenSet = true;
148 m_user = std::forward<UserT>(value);
149 }
150 template <typename UserT = Aws::String>
152 SetUser(std::forward<UserT>(value));
153 return *this;
154 }
156
158
164 inline const Aws::String& GetDomain() const { return m_domain; }
165 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
166 template <typename DomainT = Aws::String>
167 void SetDomain(DomainT&& value) {
168 m_domainHasBeenSet = true;
169 m_domain = std::forward<DomainT>(value);
170 }
171 template <typename DomainT = Aws::String>
173 SetDomain(std::forward<DomainT>(value));
174 return *this;
175 }
177
179
184 inline const Aws::String& GetPassword() const { return m_password; }
185 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
186 template <typename PasswordT = Aws::String>
187 void SetPassword(PasswordT&& value) {
188 m_passwordHasBeenSet = true;
189 m_password = std::forward<PasswordT>(value);
190 }
191 template <typename PasswordT = Aws::String>
193 SetPassword(std::forward<PasswordT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_subdirectory;
199
200 Aws::String m_fsxFilesystemArn;
201
202 Aws::Vector<Aws::String> m_securityGroupArns;
203
205
206 Aws::String m_user;
207
208 Aws::String m_domain;
209
210 Aws::String m_password;
211 bool m_subdirectoryHasBeenSet = false;
212 bool m_fsxFilesystemArnHasBeenSet = false;
213 bool m_securityGroupArnsHasBeenSet = false;
214 bool m_tagsHasBeenSet = false;
215 bool m_userHasBeenSet = false;
216 bool m_domainHasBeenSet = false;
217 bool m_passwordHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace DataSync
222} // namespace Aws
CreateLocationFsxWindowsRequest & WithSecurityGroupArns(SecurityGroupArnsT &&value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationFsxWindowsRequest & WithTags(TagsT &&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