AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateLocationNfsRequest.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 <utility>
13
14namespace Aws
15{
16namespace DataSync
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DATASYNC_API UpdateLocationNfsRequest() = default;
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_DATASYNC_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetLocationArn() const { return m_locationArn; }
45 inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
46 template<typename LocationArnT = Aws::String>
47 void SetLocationArn(LocationArnT&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::forward<LocationArnT>(value); }
48 template<typename LocationArnT = Aws::String>
49 UpdateLocationNfsRequest& WithLocationArn(LocationArnT&& value) { SetLocationArn(std::forward<LocationArnT>(value)); return *this;}
51
53
61 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
62 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
63 template<typename SubdirectoryT = Aws::String>
64 void SetSubdirectory(SubdirectoryT&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::forward<SubdirectoryT>(value); }
65 template<typename SubdirectoryT = Aws::String>
66 UpdateLocationNfsRequest& WithSubdirectory(SubdirectoryT&& value) { SetSubdirectory(std::forward<SubdirectoryT>(value)); return *this;}
68
70
74 inline const Aws::String& GetServerHostname() const { return m_serverHostname; }
75 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
76 template<typename ServerHostnameT = Aws::String>
77 void SetServerHostname(ServerHostnameT&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::forward<ServerHostnameT>(value); }
78 template<typename ServerHostnameT = Aws::String>
79 UpdateLocationNfsRequest& WithServerHostname(ServerHostnameT&& value) { SetServerHostname(std::forward<ServerHostnameT>(value)); return *this;}
81
83
84 inline const OnPremConfig& GetOnPremConfig() const { return m_onPremConfig; }
85 inline bool OnPremConfigHasBeenSet() const { return m_onPremConfigHasBeenSet; }
86 template<typename OnPremConfigT = OnPremConfig>
87 void SetOnPremConfig(OnPremConfigT&& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = std::forward<OnPremConfigT>(value); }
88 template<typename OnPremConfigT = OnPremConfig>
89 UpdateLocationNfsRequest& WithOnPremConfig(OnPremConfigT&& value) { SetOnPremConfig(std::forward<OnPremConfigT>(value)); return *this;}
91
93
94 inline const NfsMountOptions& GetMountOptions() const { return m_mountOptions; }
95 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
96 template<typename MountOptionsT = NfsMountOptions>
97 void SetMountOptions(MountOptionsT&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::forward<MountOptionsT>(value); }
98 template<typename MountOptionsT = NfsMountOptions>
99 UpdateLocationNfsRequest& WithMountOptions(MountOptionsT&& value) { SetMountOptions(std::forward<MountOptionsT>(value)); return *this;}
101 private:
102
103 Aws::String m_locationArn;
104 bool m_locationArnHasBeenSet = false;
105
106 Aws::String m_subdirectory;
107 bool m_subdirectoryHasBeenSet = false;
108
109 Aws::String m_serverHostname;
110 bool m_serverHostnameHasBeenSet = false;
111
112 OnPremConfig m_onPremConfig;
113 bool m_onPremConfigHasBeenSet = false;
114
115 NfsMountOptions m_mountOptions;
116 bool m_mountOptionsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace DataSync
121} // 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