AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLocationNfsRequest.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/datasync/model/OnPremConfig.h>
11#include <aws/datasync/model/NfsMountOptions.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/datasync/model/TagListEntry.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DataSync
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_DATASYNC_API CreateLocationNfsRequest() = default;
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_DATASYNC_API Aws::String SerializePayload() const override;
40
42
43
45
53 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
54 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
55 template<typename SubdirectoryT = Aws::String>
56 void SetSubdirectory(SubdirectoryT&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::forward<SubdirectoryT>(value); }
57 template<typename SubdirectoryT = Aws::String>
58 CreateLocationNfsRequest& WithSubdirectory(SubdirectoryT&& value) { SetSubdirectory(std::forward<SubdirectoryT>(value)); return *this;}
60
62
66 inline const Aws::String& GetServerHostname() const { return m_serverHostname; }
67 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
68 template<typename ServerHostnameT = Aws::String>
69 void SetServerHostname(ServerHostnameT&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::forward<ServerHostnameT>(value); }
70 template<typename ServerHostnameT = Aws::String>
71 CreateLocationNfsRequest& WithServerHostname(ServerHostnameT&& value) { SetServerHostname(std::forward<ServerHostnameT>(value)); return *this;}
73
75
82 inline const OnPremConfig& GetOnPremConfig() const { return m_onPremConfig; }
83 inline bool OnPremConfigHasBeenSet() const { return m_onPremConfigHasBeenSet; }
84 template<typename OnPremConfigT = OnPremConfig>
85 void SetOnPremConfig(OnPremConfigT&& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = std::forward<OnPremConfigT>(value); }
86 template<typename OnPremConfigT = OnPremConfig>
87 CreateLocationNfsRequest& WithOnPremConfig(OnPremConfigT&& value) { SetOnPremConfig(std::forward<OnPremConfigT>(value)); return *this;}
89
91
95 inline const NfsMountOptions& GetMountOptions() const { return m_mountOptions; }
96 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
97 template<typename MountOptionsT = NfsMountOptions>
98 void SetMountOptions(MountOptionsT&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::forward<MountOptionsT>(value); }
99 template<typename MountOptionsT = NfsMountOptions>
100 CreateLocationNfsRequest& WithMountOptions(MountOptionsT&& value) { SetMountOptions(std::forward<MountOptionsT>(value)); return *this;}
102
104
109 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template<typename TagsT = Aws::Vector<TagListEntry>>
112 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
113 template<typename TagsT = Aws::Vector<TagListEntry>>
114 CreateLocationNfsRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
115 template<typename TagsT = TagListEntry>
116 CreateLocationNfsRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
118 private:
119
120 Aws::String m_subdirectory;
121 bool m_subdirectoryHasBeenSet = false;
122
123 Aws::String m_serverHostname;
124 bool m_serverHostnameHasBeenSet = false;
125
126 OnPremConfig m_onPremConfig;
127 bool m_onPremConfigHasBeenSet = false;
128
129 NfsMountOptions m_mountOptions;
130 bool m_mountOptionsHasBeenSet = false;
131
133 bool m_tagsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace DataSync
138} // namespace Aws
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateLocationNfsRequest & WithServerHostname(ServerHostnameT &&value)
const Aws::Vector< TagListEntry > & GetTags() const
CreateLocationNfsRequest & WithSubdirectory(SubdirectoryT &&value)
CreateLocationNfsRequest & WithTags(TagsT &&value)
CreateLocationNfsRequest & WithOnPremConfig(OnPremConfigT &&value)
AWS_DATASYNC_API CreateLocationNfsRequest()=default
virtual const char * GetServiceRequestName() const override
CreateLocationNfsRequest & AddTags(TagsT &&value)
CreateLocationNfsRequest & WithMountOptions(MountOptionsT &&value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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