AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
56 inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
57 inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
58 inline CreateLocationNfsRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
59 inline CreateLocationNfsRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
60 inline CreateLocationNfsRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
62
64
68 inline const Aws::String& GetServerHostname() const{ return m_serverHostname; }
69 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
70 inline void SetServerHostname(const Aws::String& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = value; }
71 inline void SetServerHostname(Aws::String&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::move(value); }
72 inline void SetServerHostname(const char* value) { m_serverHostnameHasBeenSet = true; m_serverHostname.assign(value); }
73 inline CreateLocationNfsRequest& WithServerHostname(const Aws::String& value) { SetServerHostname(value); return *this;}
74 inline CreateLocationNfsRequest& WithServerHostname(Aws::String&& value) { SetServerHostname(std::move(value)); return *this;}
75 inline CreateLocationNfsRequest& WithServerHostname(const char* value) { SetServerHostname(value); return *this;}
77
79
86 inline const OnPremConfig& GetOnPremConfig() const{ return m_onPremConfig; }
87 inline bool OnPremConfigHasBeenSet() const { return m_onPremConfigHasBeenSet; }
88 inline void SetOnPremConfig(const OnPremConfig& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = value; }
89 inline void SetOnPremConfig(OnPremConfig&& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = std::move(value); }
90 inline CreateLocationNfsRequest& WithOnPremConfig(const OnPremConfig& value) { SetOnPremConfig(value); return *this;}
91 inline CreateLocationNfsRequest& WithOnPremConfig(OnPremConfig&& value) { SetOnPremConfig(std::move(value)); return *this;}
93
95
99 inline const NfsMountOptions& GetMountOptions() const{ return m_mountOptions; }
100 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
101 inline void SetMountOptions(const NfsMountOptions& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = value; }
102 inline void SetMountOptions(NfsMountOptions&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::move(value); }
103 inline CreateLocationNfsRequest& WithMountOptions(const NfsMountOptions& value) { SetMountOptions(value); return *this;}
104 inline CreateLocationNfsRequest& WithMountOptions(NfsMountOptions&& value) { SetMountOptions(std::move(value)); return *this;}
106
108
113 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
116 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
117 inline CreateLocationNfsRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
118 inline CreateLocationNfsRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
119 inline CreateLocationNfsRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
120 inline CreateLocationNfsRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
122 private:
123
124 Aws::String m_subdirectory;
125 bool m_subdirectoryHasBeenSet = false;
126
127 Aws::String m_serverHostname;
128 bool m_serverHostnameHasBeenSet = false;
129
130 OnPremConfig m_onPremConfig;
131 bool m_onPremConfigHasBeenSet = false;
132
133 NfsMountOptions m_mountOptions;
134 bool m_mountOptionsHasBeenSet = false;
135
137 bool m_tagsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace DataSync
142} // namespace Aws
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateLocationNfsRequest & WithSubdirectory(Aws::String &&value)
CreateLocationNfsRequest & WithMountOptions(NfsMountOptions &&value)
const Aws::Vector< TagListEntry > & GetTags() const
CreateLocationNfsRequest & WithTags(Aws::Vector< TagListEntry > &&value)
CreateLocationNfsRequest & WithServerHostname(const char *value)
CreateLocationNfsRequest & WithServerHostname(Aws::String &&value)
CreateLocationNfsRequest & WithOnPremConfig(OnPremConfig &&value)
CreateLocationNfsRequest & WithServerHostname(const Aws::String &value)
void SetTags(const Aws::Vector< TagListEntry > &value)
virtual const char * GetServiceRequestName() const override
CreateLocationNfsRequest & WithSubdirectory(const Aws::String &value)
void SetTags(Aws::Vector< TagListEntry > &&value)
CreateLocationNfsRequest & AddTags(TagListEntry &&value)
CreateLocationNfsRequest & WithOnPremConfig(const OnPremConfig &value)
CreateLocationNfsRequest & WithMountOptions(const NfsMountOptions &value)
CreateLocationNfsRequest & WithSubdirectory(const char *value)
CreateLocationNfsRequest & WithTags(const Aws::Vector< TagListEntry > &value)
CreateLocationNfsRequest & AddTags(const TagListEntry &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