AWS SDK for C++  1.9.159
AWS SDK for C++
UpdateLocationNfsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DataSync
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateLocationNfs"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
43 
47  inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
48 
52  inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; }
53 
57  inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); }
58 
62  inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); }
63 
67  inline UpdateLocationNfsRequest& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
68 
72  inline UpdateLocationNfsRequest& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
73 
77  inline UpdateLocationNfsRequest& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
78 
79 
102  inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
103 
126  inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
127 
150  inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
151 
174  inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
175 
198  inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
199 
222  inline UpdateLocationNfsRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
223 
246  inline UpdateLocationNfsRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
247 
270  inline UpdateLocationNfsRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
271 
272 
273 
274  inline const OnPremConfig& GetOnPremConfig() const{ return m_onPremConfig; }
275 
276 
277  inline bool OnPremConfigHasBeenSet() const { return m_onPremConfigHasBeenSet; }
278 
279 
280  inline void SetOnPremConfig(const OnPremConfig& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = value; }
281 
282 
283  inline void SetOnPremConfig(OnPremConfig&& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = std::move(value); }
284 
285 
286  inline UpdateLocationNfsRequest& WithOnPremConfig(const OnPremConfig& value) { SetOnPremConfig(value); return *this;}
287 
288 
289  inline UpdateLocationNfsRequest& WithOnPremConfig(OnPremConfig&& value) { SetOnPremConfig(std::move(value)); return *this;}
290 
291 
292 
293  inline const NfsMountOptions& GetMountOptions() const{ return m_mountOptions; }
294 
295 
296  inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
297 
298 
299  inline void SetMountOptions(const NfsMountOptions& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = value; }
300 
301 
302  inline void SetMountOptions(NfsMountOptions&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::move(value); }
303 
304 
305  inline UpdateLocationNfsRequest& WithMountOptions(const NfsMountOptions& value) { SetMountOptions(value); return *this;}
306 
307 
308  inline UpdateLocationNfsRequest& WithMountOptions(NfsMountOptions&& value) { SetMountOptions(std::move(value)); return *this;}
309 
310  private:
311 
312  Aws::String m_locationArn;
313  bool m_locationArnHasBeenSet;
314 
315  Aws::String m_subdirectory;
316  bool m_subdirectoryHasBeenSet;
317 
318  OnPremConfig m_onPremConfig;
319  bool m_onPremConfigHasBeenSet;
320 
321  NfsMountOptions m_mountOptions;
322  bool m_mountOptionsHasBeenSet;
323  };
324 
325 } // namespace Model
326 } // namespace DataSync
327 } // namespace Aws
Aws::DataSync::Model::UpdateLocationNfsRequest::SubdirectoryHasBeenSet
bool SubdirectoryHasBeenSet() const
Definition: UpdateLocationNfsRequest.h:126
Aws::DataSync::Model::UpdateLocationNfsRequest::GetMountOptions
const NfsMountOptions & GetMountOptions() const
Definition: UpdateLocationNfsRequest.h:293
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::UpdateLocationNfsRequest::WithLocationArn
UpdateLocationNfsRequest & WithLocationArn(const char *value)
Definition: UpdateLocationNfsRequest.h:77
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::UpdateLocationNfsRequest::WithLocationArn
UpdateLocationNfsRequest & WithLocationArn(const Aws::String &value)
Definition: UpdateLocationNfsRequest.h:67
Aws::DataSync::Model::UpdateLocationNfsRequest::WithSubdirectory
UpdateLocationNfsRequest & WithSubdirectory(const Aws::String &value)
Definition: UpdateLocationNfsRequest.h:222
Aws::DataSync::Model::UpdateLocationNfsRequest::GetOnPremConfig
const OnPremConfig & GetOnPremConfig() const
Definition: UpdateLocationNfsRequest.h:274
DataSyncRequest.h
Aws::DataSync::Model::UpdateLocationNfsRequest::SetMountOptions
void SetMountOptions(const NfsMountOptions &value)
Definition: UpdateLocationNfsRequest.h:299
Aws::DataSync::Model::OnPremConfig
Definition: OnPremConfig.h:34
Aws::DataSync::Model::UpdateLocationNfsRequest::MountOptionsHasBeenSet
bool MountOptionsHasBeenSet() const
Definition: UpdateLocationNfsRequest.h:296
Aws::DataSync::Model::UpdateLocationNfsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::UpdateLocationNfsRequest::SetOnPremConfig
void SetOnPremConfig(const OnPremConfig &value)
Definition: UpdateLocationNfsRequest.h:280
Aws::DataSync::Model::UpdateLocationNfsRequest::WithSubdirectory
UpdateLocationNfsRequest & WithSubdirectory(Aws::String &&value)
Definition: UpdateLocationNfsRequest.h:246
NfsMountOptions.h
Aws::DataSync::Model::UpdateLocationNfsRequest::SetLocationArn
void SetLocationArn(const char *value)
Definition: UpdateLocationNfsRequest.h:62
Aws::DataSync::Model::UpdateLocationNfsRequest::SetMountOptions
void SetMountOptions(NfsMountOptions &&value)
Definition: UpdateLocationNfsRequest.h:302
Aws::DataSync::Model::UpdateLocationNfsRequest
Definition: UpdateLocationNfsRequest.h:24
Aws::DataSync::Model::UpdateLocationNfsRequest::WithOnPremConfig
UpdateLocationNfsRequest & WithOnPremConfig(OnPremConfig &&value)
Definition: UpdateLocationNfsRequest.h:289
Aws::DataSync::Model::UpdateLocationNfsRequest::SetLocationArn
void SetLocationArn(Aws::String &&value)
Definition: UpdateLocationNfsRequest.h:57
Aws::DataSync::Model::UpdateLocationNfsRequest::WithLocationArn
UpdateLocationNfsRequest & WithLocationArn(Aws::String &&value)
Definition: UpdateLocationNfsRequest.h:72
OnPremConfig.h
Aws::DataSync::Model::NfsMountOptions
Definition: NfsMountOptions.h:33
Aws::DataSync::Model::UpdateLocationNfsRequest::SetLocationArn
void SetLocationArn(const Aws::String &value)
Definition: UpdateLocationNfsRequest.h:52
AWSString.h
DataSync_EXPORTS.h
Aws::DataSync::Model::UpdateLocationNfsRequest::GetSubdirectory
const Aws::String & GetSubdirectory() const
Definition: UpdateLocationNfsRequest.h:102
Aws::DataSync::Model::UpdateLocationNfsRequest::WithOnPremConfig
UpdateLocationNfsRequest & WithOnPremConfig(const OnPremConfig &value)
Definition: UpdateLocationNfsRequest.h:286
Aws::DataSync::Model::UpdateLocationNfsRequest::SetSubdirectory
void SetSubdirectory(Aws::String &&value)
Definition: UpdateLocationNfsRequest.h:174
Aws::DataSync::Model::UpdateLocationNfsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateLocationNfsRequest.h:32
Aws::DataSync::Model::UpdateLocationNfsRequest::SetSubdirectory
void SetSubdirectory(const Aws::String &value)
Definition: UpdateLocationNfsRequest.h:150
Aws::DataSync::Model::UpdateLocationNfsRequest::WithMountOptions
UpdateLocationNfsRequest & WithMountOptions(NfsMountOptions &&value)
Definition: UpdateLocationNfsRequest.h:308
Aws::DataSync::Model::UpdateLocationNfsRequest::GetLocationArn
const Aws::String & GetLocationArn() const
Definition: UpdateLocationNfsRequest.h:42
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::UpdateLocationNfsRequest::WithSubdirectory
UpdateLocationNfsRequest & WithSubdirectory(const char *value)
Definition: UpdateLocationNfsRequest.h:270
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::UpdateLocationNfsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataSync::Model::UpdateLocationNfsRequest::SetOnPremConfig
void SetOnPremConfig(OnPremConfig &&value)
Definition: UpdateLocationNfsRequest.h:283
Aws::DataSync::Model::UpdateLocationNfsRequest::LocationArnHasBeenSet
bool LocationArnHasBeenSet() const
Definition: UpdateLocationNfsRequest.h:47
Aws::DataSync::Model::UpdateLocationNfsRequest::SetSubdirectory
void SetSubdirectory(const char *value)
Definition: UpdateLocationNfsRequest.h:198
Aws::DataSync::Model::UpdateLocationNfsRequest::WithMountOptions
UpdateLocationNfsRequest & WithMountOptions(const NfsMountOptions &value)
Definition: UpdateLocationNfsRequest.h:305
Aws::DataSync::Model::UpdateLocationNfsRequest::OnPremConfigHasBeenSet
bool OnPremConfigHasBeenSet() const
Definition: UpdateLocationNfsRequest.h:277
Aws::DataSync::Model::UpdateLocationNfsRequest::UpdateLocationNfsRequest
UpdateLocationNfsRequest()