AWS SDK for C++  1.9.153
AWS SDK for C++
CreateLocationNfsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace DataSync
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateLocationNfs"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
65  inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
66 
88  inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
89 
111  inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
112 
134  inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
135 
157  inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
158 
180  inline CreateLocationNfsRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
181 
203  inline CreateLocationNfsRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
204 
226  inline CreateLocationNfsRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
227 
228 
238  inline const Aws::String& GetServerHostname() const{ return m_serverHostname; }
239 
249  inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
250 
260  inline void SetServerHostname(const Aws::String& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = value; }
261 
271  inline void SetServerHostname(Aws::String&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::move(value); }
272 
282  inline void SetServerHostname(const char* value) { m_serverHostnameHasBeenSet = true; m_serverHostname.assign(value); }
283 
293  inline CreateLocationNfsRequest& WithServerHostname(const Aws::String& value) { SetServerHostname(value); return *this;}
294 
304  inline CreateLocationNfsRequest& WithServerHostname(Aws::String&& value) { SetServerHostname(std::move(value)); return *this;}
305 
315  inline CreateLocationNfsRequest& WithServerHostname(const char* value) { SetServerHostname(value); return *this;}
316 
317 
325  inline const OnPremConfig& GetOnPremConfig() const{ return m_onPremConfig; }
326 
334  inline bool OnPremConfigHasBeenSet() const { return m_onPremConfigHasBeenSet; }
335 
343  inline void SetOnPremConfig(const OnPremConfig& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = value; }
344 
352  inline void SetOnPremConfig(OnPremConfig&& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = std::move(value); }
353 
361  inline CreateLocationNfsRequest& WithOnPremConfig(const OnPremConfig& value) { SetOnPremConfig(value); return *this;}
362 
370  inline CreateLocationNfsRequest& WithOnPremConfig(OnPremConfig&& value) { SetOnPremConfig(std::move(value)); return *this;}
371 
372 
376  inline const NfsMountOptions& GetMountOptions() const{ return m_mountOptions; }
377 
381  inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
382 
386  inline void SetMountOptions(const NfsMountOptions& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = value; }
387 
391  inline void SetMountOptions(NfsMountOptions&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::move(value); }
392 
396  inline CreateLocationNfsRequest& WithMountOptions(const NfsMountOptions& value) { SetMountOptions(value); return *this;}
397 
401  inline CreateLocationNfsRequest& WithMountOptions(NfsMountOptions&& value) { SetMountOptions(std::move(value)); return *this;}
402 
403 
409  inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
410 
416  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
417 
423  inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
424 
430  inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
431 
437  inline CreateLocationNfsRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
438 
444  inline CreateLocationNfsRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
445 
451  inline CreateLocationNfsRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
452 
458  inline CreateLocationNfsRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
459 
460  private:
461 
462  Aws::String m_subdirectory;
463  bool m_subdirectoryHasBeenSet;
464 
465  Aws::String m_serverHostname;
466  bool m_serverHostnameHasBeenSet;
467 
468  OnPremConfig m_onPremConfig;
469  bool m_onPremConfigHasBeenSet;
470 
471  NfsMountOptions m_mountOptions;
472  bool m_mountOptionsHasBeenSet;
473 
475  bool m_tagsHasBeenSet;
476  };
477 
478 } // namespace Model
479 } // namespace DataSync
480 } // namespace Aws
Aws::DataSync::Model::CreateLocationNfsRequest::SetSubdirectory
void SetSubdirectory(const Aws::String &value)
Definition: CreateLocationNfsRequest.h:111
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::CreateLocationNfsRequest::WithSubdirectory
CreateLocationNfsRequest & WithSubdirectory(Aws::String &&value)
Definition: CreateLocationNfsRequest.h:203
Aws::DataSync::Model::CreateLocationNfsRequest::AddTags
CreateLocationNfsRequest & AddTags(const TagListEntry &value)
Definition: CreateLocationNfsRequest.h:451
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::TagListEntry
Definition: TagListEntry.h:36
Aws::DataSync::Model::CreateLocationNfsRequest::SetMountOptions
void SetMountOptions(const NfsMountOptions &value)
Definition: CreateLocationNfsRequest.h:386
Aws::DataSync::Model::CreateLocationNfsRequest::SetOnPremConfig
void SetOnPremConfig(OnPremConfig &&value)
Definition: CreateLocationNfsRequest.h:352
Aws::DataSync::Model::CreateLocationNfsRequest::SetTags
void SetTags(Aws::Vector< TagListEntry > &&value)
Definition: CreateLocationNfsRequest.h:430
Aws::DataSync::Model::CreateLocationNfsRequest::WithServerHostname
CreateLocationNfsRequest & WithServerHostname(const Aws::String &value)
Definition: CreateLocationNfsRequest.h:293
Aws::DataSync::Model::CreateLocationNfsRequest::GetServerHostname
const Aws::String & GetServerHostname() const
Definition: CreateLocationNfsRequest.h:238
Aws::DataSync::Model::CreateLocationNfsRequest::WithOnPremConfig
CreateLocationNfsRequest & WithOnPremConfig(OnPremConfig &&value)
Definition: CreateLocationNfsRequest.h:370
Aws::DataSync::Model::CreateLocationNfsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLocationNfsRequest.h:37
Aws::DataSync::Model::CreateLocationNfsRequest::WithOnPremConfig
CreateLocationNfsRequest & WithOnPremConfig(const OnPremConfig &value)
Definition: CreateLocationNfsRequest.h:361
Aws::DataSync::Model::CreateLocationNfsRequest::WithMountOptions
CreateLocationNfsRequest & WithMountOptions(NfsMountOptions &&value)
Definition: CreateLocationNfsRequest.h:401
Aws::DataSync::Model::CreateLocationNfsRequest::AddTags
CreateLocationNfsRequest & AddTags(TagListEntry &&value)
Definition: CreateLocationNfsRequest.h:458
Aws::DataSync::Model::CreateLocationNfsRequest
Definition: CreateLocationNfsRequest.h:29
Aws::DataSync::Model::CreateLocationNfsRequest::SetSubdirectory
void SetSubdirectory(const char *value)
Definition: CreateLocationNfsRequest.h:157
DataSyncRequest.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataSync::Model::CreateLocationNfsRequest::SetTags
void SetTags(const Aws::Vector< TagListEntry > &value)
Definition: CreateLocationNfsRequest.h:423
Aws::DataSync::Model::OnPremConfig
Definition: OnPremConfig.h:34
AWSVector.h
Aws::DataSync::Model::CreateLocationNfsRequest::SubdirectoryHasBeenSet
bool SubdirectoryHasBeenSet() const
Definition: CreateLocationNfsRequest.h:88
Aws::DataSync::Model::CreateLocationNfsRequest::CreateLocationNfsRequest
CreateLocationNfsRequest()
Aws::DataSync::Model::CreateLocationNfsRequest::WithSubdirectory
CreateLocationNfsRequest & WithSubdirectory(const Aws::String &value)
Definition: CreateLocationNfsRequest.h:180
NfsMountOptions.h
Aws::DataSync::Model::CreateLocationNfsRequest::SetServerHostname
void SetServerHostname(Aws::String &&value)
Definition: CreateLocationNfsRequest.h:271
Aws::DataSync::Model::CreateLocationNfsRequest::SetSubdirectory
void SetSubdirectory(Aws::String &&value)
Definition: CreateLocationNfsRequest.h:134
Aws::DataSync::Model::CreateLocationNfsRequest::ServerHostnameHasBeenSet
bool ServerHostnameHasBeenSet() const
Definition: CreateLocationNfsRequest.h:249
Aws::DataSync::Model::CreateLocationNfsRequest::SetMountOptions
void SetMountOptions(NfsMountOptions &&value)
Definition: CreateLocationNfsRequest.h:391
Aws::DataSync::Model::CreateLocationNfsRequest::OnPremConfigHasBeenSet
bool OnPremConfigHasBeenSet() const
Definition: CreateLocationNfsRequest.h:334
TagListEntry.h
OnPremConfig.h
Aws::DataSync::Model::NfsMountOptions
Definition: NfsMountOptions.h:33
Aws::DataSync::Model::CreateLocationNfsRequest::GetMountOptions
const NfsMountOptions & GetMountOptions() const
Definition: CreateLocationNfsRequest.h:376
Aws::DataSync::Model::CreateLocationNfsRequest::SetServerHostname
void SetServerHostname(const Aws::String &value)
Definition: CreateLocationNfsRequest.h:260
AWSString.h
DataSync_EXPORTS.h
Aws::DataSync::Model::CreateLocationNfsRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateLocationNfsRequest.h:416
Aws::DataSync::Model::CreateLocationNfsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataSync::Model::CreateLocationNfsRequest::SetOnPremConfig
void SetOnPremConfig(const OnPremConfig &value)
Definition: CreateLocationNfsRequest.h:343
Aws::DataSync::Model::CreateLocationNfsRequest::WithTags
CreateLocationNfsRequest & WithTags(Aws::Vector< TagListEntry > &&value)
Definition: CreateLocationNfsRequest.h:444
Aws::DataSync::Model::CreateLocationNfsRequest::WithSubdirectory
CreateLocationNfsRequest & WithSubdirectory(const char *value)
Definition: CreateLocationNfsRequest.h:226
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::CreateLocationNfsRequest::WithTags
CreateLocationNfsRequest & WithTags(const Aws::Vector< TagListEntry > &value)
Definition: CreateLocationNfsRequest.h:437
Aws::DataSync::Model::CreateLocationNfsRequest::WithServerHostname
CreateLocationNfsRequest & WithServerHostname(Aws::String &&value)
Definition: CreateLocationNfsRequest.h:304
Aws::DataSync::Model::CreateLocationNfsRequest::SetServerHostname
void SetServerHostname(const char *value)
Definition: CreateLocationNfsRequest.h:282
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::CreateLocationNfsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::CreateLocationNfsRequest::GetTags
const Aws::Vector< TagListEntry > & GetTags() const
Definition: CreateLocationNfsRequest.h:409
Aws::DataSync::Model::CreateLocationNfsRequest::WithMountOptions
CreateLocationNfsRequest & WithMountOptions(const NfsMountOptions &value)
Definition: CreateLocationNfsRequest.h:396
Aws::DataSync::Model::CreateLocationNfsRequest::WithServerHostname
CreateLocationNfsRequest & WithServerHostname(const char *value)
Definition: CreateLocationNfsRequest.h:315
Aws::DataSync::Model::CreateLocationNfsRequest::MountOptionsHasBeenSet
bool MountOptionsHasBeenSet() const
Definition: CreateLocationNfsRequest.h:381
Aws::DataSync::Model::CreateLocationNfsRequest::GetSubdirectory
const Aws::String & GetSubdirectory() const
Definition: CreateLocationNfsRequest.h:65
Aws::DataSync::Model::CreateLocationNfsRequest::GetOnPremConfig
const OnPremConfig & GetOnPremConfig() const
Definition: CreateLocationNfsRequest.h:325