AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateLocationNfsRequest.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/NfsMountOptions.h>
12#include <aws/datasync/model/OnPremConfig.h>
13#include <aws/datasync/model/TagListEntry.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DataSync {
19namespace Model {
20
27 public:
28 AWS_DATASYNC_API CreateLocationNfsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateLocationNfs"; }
35
36 AWS_DATASYNC_API Aws::String SerializePayload() const override;
37
39
41
49 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
50 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
51 template <typename SubdirectoryT = Aws::String>
52 void SetSubdirectory(SubdirectoryT&& value) {
53 m_subdirectoryHasBeenSet = true;
54 m_subdirectory = std::forward<SubdirectoryT>(value);
55 }
56 template <typename SubdirectoryT = Aws::String>
58 SetSubdirectory(std::forward<SubdirectoryT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetServerHostname() const { return m_serverHostname; }
69 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
70 template <typename ServerHostnameT = Aws::String>
71 void SetServerHostname(ServerHostnameT&& value) {
72 m_serverHostnameHasBeenSet = true;
73 m_serverHostname = std::forward<ServerHostnameT>(value);
74 }
75 template <typename ServerHostnameT = Aws::String>
76 CreateLocationNfsRequest& WithServerHostname(ServerHostnameT&& value) {
77 SetServerHostname(std::forward<ServerHostnameT>(value));
78 return *this;
79 }
81
83
90 inline const OnPremConfig& GetOnPremConfig() const { return m_onPremConfig; }
91 inline bool OnPremConfigHasBeenSet() const { return m_onPremConfigHasBeenSet; }
92 template <typename OnPremConfigT = OnPremConfig>
93 void SetOnPremConfig(OnPremConfigT&& value) {
94 m_onPremConfigHasBeenSet = true;
95 m_onPremConfig = std::forward<OnPremConfigT>(value);
96 }
97 template <typename OnPremConfigT = OnPremConfig>
99 SetOnPremConfig(std::forward<OnPremConfigT>(value));
100 return *this;
101 }
103
105
109 inline const NfsMountOptions& GetMountOptions() const { return m_mountOptions; }
110 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
111 template <typename MountOptionsT = NfsMountOptions>
112 void SetMountOptions(MountOptionsT&& value) {
113 m_mountOptionsHasBeenSet = true;
114 m_mountOptions = std::forward<MountOptionsT>(value);
115 }
116 template <typename MountOptionsT = NfsMountOptions>
118 SetMountOptions(std::forward<MountOptionsT>(value));
119 return *this;
120 }
122
124
129 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template <typename TagsT = Aws::Vector<TagListEntry>>
132 void SetTags(TagsT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags = std::forward<TagsT>(value);
135 }
136 template <typename TagsT = Aws::Vector<TagListEntry>>
138 SetTags(std::forward<TagsT>(value));
139 return *this;
140 }
141 template <typename TagsT = TagListEntry>
143 m_tagsHasBeenSet = true;
144 m_tags.emplace_back(std::forward<TagsT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_subdirectory;
150
151 Aws::String m_serverHostname;
152
153 OnPremConfig m_onPremConfig;
154
155 NfsMountOptions m_mountOptions;
156
158 bool m_subdirectoryHasBeenSet = false;
159 bool m_serverHostnameHasBeenSet = false;
160 bool m_onPremConfigHasBeenSet = false;
161 bool m_mountOptionsHasBeenSet = false;
162 bool m_tagsHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace DataSync
167} // 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