AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateLocationNfsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/datasync/DataSync_EXPORTS.h>
10#include <aws/datasync/model/NfsMountOptions.h>
11#include <aws/datasync/model/OnPremConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataSync {
17namespace Model {
18
22 public:
23 AWS_DATASYNC_API UpdateLocationNfsRequest() = 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 "UpdateLocationNfs"; }
30
31 AWS_DATASYNC_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetLocationArn() const { return m_locationArn; }
41 inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
42 template <typename LocationArnT = Aws::String>
43 void SetLocationArn(LocationArnT&& value) {
44 m_locationArnHasBeenSet = true;
45 m_locationArn = std::forward<LocationArnT>(value);
46 }
47 template <typename LocationArnT = Aws::String>
49 SetLocationArn(std::forward<LocationArnT>(value));
50 return *this;
51 }
53
55
63 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
64 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
65 template <typename SubdirectoryT = Aws::String>
66 void SetSubdirectory(SubdirectoryT&& value) {
67 m_subdirectoryHasBeenSet = true;
68 m_subdirectory = std::forward<SubdirectoryT>(value);
69 }
70 template <typename SubdirectoryT = Aws::String>
72 SetSubdirectory(std::forward<SubdirectoryT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetServerHostname() const { return m_serverHostname; }
83 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
84 template <typename ServerHostnameT = Aws::String>
85 void SetServerHostname(ServerHostnameT&& value) {
86 m_serverHostnameHasBeenSet = true;
87 m_serverHostname = std::forward<ServerHostnameT>(value);
88 }
89 template <typename ServerHostnameT = Aws::String>
90 UpdateLocationNfsRequest& WithServerHostname(ServerHostnameT&& value) {
91 SetServerHostname(std::forward<ServerHostnameT>(value));
92 return *this;
93 }
95
97
98 inline const OnPremConfig& GetOnPremConfig() const { return m_onPremConfig; }
99 inline bool OnPremConfigHasBeenSet() const { return m_onPremConfigHasBeenSet; }
100 template <typename OnPremConfigT = OnPremConfig>
101 void SetOnPremConfig(OnPremConfigT&& value) {
102 m_onPremConfigHasBeenSet = true;
103 m_onPremConfig = std::forward<OnPremConfigT>(value);
104 }
105 template <typename OnPremConfigT = OnPremConfig>
107 SetOnPremConfig(std::forward<OnPremConfigT>(value));
108 return *this;
109 }
111
113
114 inline const NfsMountOptions& GetMountOptions() const { return m_mountOptions; }
115 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
116 template <typename MountOptionsT = NfsMountOptions>
117 void SetMountOptions(MountOptionsT&& value) {
118 m_mountOptionsHasBeenSet = true;
119 m_mountOptions = std::forward<MountOptionsT>(value);
120 }
121 template <typename MountOptionsT = NfsMountOptions>
123 SetMountOptions(std::forward<MountOptionsT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_locationArn;
129
130 Aws::String m_subdirectory;
131
132 Aws::String m_serverHostname;
133
134 OnPremConfig m_onPremConfig;
135
136 NfsMountOptions m_mountOptions;
137 bool m_locationArnHasBeenSet = false;
138 bool m_subdirectoryHasBeenSet = false;
139 bool m_serverHostnameHasBeenSet = false;
140 bool m_onPremConfigHasBeenSet = false;
141 bool m_mountOptionsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace DataSync
146} // namespace Aws
AWS_DATASYNC_API Aws::String SerializePayload() const override
UpdateLocationNfsRequest & WithServerHostname(ServerHostnameT &&value)
UpdateLocationNfsRequest & WithLocationArn(LocationArnT &&value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
UpdateLocationNfsRequest & WithSubdirectory(SubdirectoryT &&value)
UpdateLocationNfsRequest & WithOnPremConfig(OnPremConfigT &&value)
AWS_DATASYNC_API UpdateLocationNfsRequest()=default
UpdateLocationNfsRequest & WithMountOptions(MountOptionsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String