AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLocationSmbRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datasync/model/SmbMountOptions.h>
12#include <aws/datasync/model/TagListEntry.h>
13#include <utility>
14
15namespace Aws
16{
17namespace DataSync
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_DATASYNC_API CreateLocationSmbRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateLocationSmb"; }
37
38 AWS_DATASYNC_API Aws::String SerializePayload() const override;
39
41
42
44
54 inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
55 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
56 inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
57 inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
58 inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
59 inline CreateLocationSmbRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
60 inline CreateLocationSmbRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
61 inline CreateLocationSmbRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
63
65
70 inline const Aws::String& GetServerHostname() const{ return m_serverHostname; }
71 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
72 inline void SetServerHostname(const Aws::String& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = value; }
73 inline void SetServerHostname(Aws::String&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::move(value); }
74 inline void SetServerHostname(const char* value) { m_serverHostnameHasBeenSet = true; m_serverHostname.assign(value); }
75 inline CreateLocationSmbRequest& WithServerHostname(const Aws::String& value) { SetServerHostname(value); return *this;}
76 inline CreateLocationSmbRequest& WithServerHostname(Aws::String&& value) { SetServerHostname(std::move(value)); return *this;}
77 inline CreateLocationSmbRequest& WithServerHostname(const char* value) { SetServerHostname(value); return *this;}
79
81
88 inline const Aws::String& GetUser() const{ return m_user; }
89 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
90 inline void SetUser(const Aws::String& value) { m_userHasBeenSet = true; m_user = value; }
91 inline void SetUser(Aws::String&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
92 inline void SetUser(const char* value) { m_userHasBeenSet = true; m_user.assign(value); }
93 inline CreateLocationSmbRequest& WithUser(const Aws::String& value) { SetUser(value); return *this;}
94 inline CreateLocationSmbRequest& WithUser(Aws::String&& value) { SetUser(std::move(value)); return *this;}
95 inline CreateLocationSmbRequest& WithUser(const char* value) { SetUser(value); return *this;}
97
99
105 inline const Aws::String& GetDomain() const{ return m_domain; }
106 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
107 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
108 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
109 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
110 inline CreateLocationSmbRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
111 inline CreateLocationSmbRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
112 inline CreateLocationSmbRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
114
116
123 inline const Aws::String& GetPassword() const{ return m_password; }
124 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
125 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
126 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
127 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
128 inline CreateLocationSmbRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
129 inline CreateLocationSmbRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
130 inline CreateLocationSmbRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
132
134
138 inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
139 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
140 inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
141 inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
143 inline CreateLocationSmbRequest& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
144 inline CreateLocationSmbRequest& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
145 inline CreateLocationSmbRequest& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
146 inline CreateLocationSmbRequest& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
148
150
154 inline const SmbMountOptions& GetMountOptions() const{ return m_mountOptions; }
155 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
156 inline void SetMountOptions(const SmbMountOptions& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = value; }
157 inline void SetMountOptions(SmbMountOptions&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::move(value); }
158 inline CreateLocationSmbRequest& WithMountOptions(const SmbMountOptions& value) { SetMountOptions(value); return *this;}
159 inline CreateLocationSmbRequest& WithMountOptions(SmbMountOptions&& value) { SetMountOptions(std::move(value)); return *this;}
161
163
168 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
169 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
170 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
171 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
172 inline CreateLocationSmbRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
173 inline CreateLocationSmbRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
174 inline CreateLocationSmbRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
175 inline CreateLocationSmbRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
177 private:
178
179 Aws::String m_subdirectory;
180 bool m_subdirectoryHasBeenSet = false;
181
182 Aws::String m_serverHostname;
183 bool m_serverHostnameHasBeenSet = false;
184
185 Aws::String m_user;
186 bool m_userHasBeenSet = false;
187
188 Aws::String m_domain;
189 bool m_domainHasBeenSet = false;
190
191 Aws::String m_password;
192 bool m_passwordHasBeenSet = false;
193
194 Aws::Vector<Aws::String> m_agentArns;
195 bool m_agentArnsHasBeenSet = false;
196
197 SmbMountOptions m_mountOptions;
198 bool m_mountOptionsHasBeenSet = false;
199
201 bool m_tagsHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace DataSync
206} // namespace Aws
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationSmbRequest & WithAgentArns(Aws::Vector< Aws::String > &&value)
CreateLocationSmbRequest & WithTags(Aws::Vector< TagListEntry > &&value)
CreateLocationSmbRequest & WithSubdirectory(const Aws::String &value)
CreateLocationSmbRequest & WithTags(const Aws::Vector< TagListEntry > &value)
CreateLocationSmbRequest & AddAgentArns(const char *value)
void SetAgentArns(const Aws::Vector< Aws::String > &value)
CreateLocationSmbRequest & WithDomain(const char *value)
void SetTags(const Aws::Vector< TagListEntry > &value)
CreateLocationSmbRequest & AddTags(const TagListEntry &value)
CreateLocationSmbRequest & WithMountOptions(const SmbMountOptions &value)
void SetAgentArns(Aws::Vector< Aws::String > &&value)
CreateLocationSmbRequest & AddAgentArns(Aws::String &&value)
CreateLocationSmbRequest & WithPassword(const char *value)
virtual const char * GetServiceRequestName() const override
CreateLocationSmbRequest & WithAgentArns(const Aws::Vector< Aws::String > &value)
void SetTags(Aws::Vector< TagListEntry > &&value)
CreateLocationSmbRequest & WithUser(Aws::String &&value)
CreateLocationSmbRequest & WithUser(const char *value)
CreateLocationSmbRequest & WithDomain(const Aws::String &value)
const Aws::Vector< TagListEntry > & GetTags() const
CreateLocationSmbRequest & WithDomain(Aws::String &&value)
CreateLocationSmbRequest & WithPassword(const Aws::String &value)
CreateLocationSmbRequest & AddTags(TagListEntry &&value)
CreateLocationSmbRequest & WithPassword(Aws::String &&value)
CreateLocationSmbRequest & AddAgentArns(const Aws::String &value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateLocationSmbRequest & WithUser(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAgentArns() const
CreateLocationSmbRequest & WithMountOptions(SmbMountOptions &&value)
CreateLocationSmbRequest & WithServerHostname(const char *value)
CreateLocationSmbRequest & WithServerHostname(Aws::String &&value)
CreateLocationSmbRequest & WithServerHostname(const Aws::String &value)
CreateLocationSmbRequest & WithSubdirectory(const char *value)
CreateLocationSmbRequest & WithSubdirectory(Aws::String &&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