AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
AssociateFileSystemRequest.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/storagegateway/StorageGatewayRequest.h>
10#include <aws/storagegateway/StorageGateway_EXPORTS.h>
11#include <aws/storagegateway/model/CacheAttributes.h>
12#include <aws/storagegateway/model/EndpointNetworkConfiguration.h>
13#include <aws/storagegateway/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace StorageGateway {
19namespace Model {
20
24 public:
25 AWS_STORAGEGATEWAY_API AssociateFileSystemRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AssociateFileSystem"; }
32
33 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
34
35 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
43 inline const Aws::String& GetUserName() const { return m_userName; }
44 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
45 template <typename UserNameT = Aws::String>
46 void SetUserName(UserNameT&& value) {
47 m_userNameHasBeenSet = true;
48 m_userName = std::forward<UserNameT>(value);
49 }
50 template <typename UserNameT = Aws::String>
52 SetUserName(std::forward<UserNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetPassword() const { return m_password; }
62 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
63 template <typename PasswordT = Aws::String>
64 void SetPassword(PasswordT&& value) {
65 m_passwordHasBeenSet = true;
66 m_password = std::forward<PasswordT>(value);
67 }
68 template <typename PasswordT = Aws::String>
70 SetPassword(std::forward<PasswordT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetClientToken() const { return m_clientToken; }
81 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
82 template <typename ClientTokenT = Aws::String>
83 void SetClientToken(ClientTokenT&& value) {
84 m_clientTokenHasBeenSet = true;
85 m_clientToken = std::forward<ClientTokenT>(value);
86 }
87 template <typename ClientTokenT = Aws::String>
89 SetClientToken(std::forward<ClientTokenT>(value));
90 return *this;
91 }
93
95
96 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
97 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
98 template <typename GatewayARNT = Aws::String>
99 void SetGatewayARN(GatewayARNT&& value) {
100 m_gatewayARNHasBeenSet = true;
101 m_gatewayARN = std::forward<GatewayARNT>(value);
102 }
103 template <typename GatewayARNT = Aws::String>
105 SetGatewayARN(std::forward<GatewayARNT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetLocationARN() const { return m_locationARN; }
116 inline bool LocationARNHasBeenSet() const { return m_locationARNHasBeenSet; }
117 template <typename LocationARNT = Aws::String>
118 void SetLocationARN(LocationARNT&& value) {
119 m_locationARNHasBeenSet = true;
120 m_locationARN = std::forward<LocationARNT>(value);
121 }
122 template <typename LocationARNT = Aws::String>
124 SetLocationARN(std::forward<LocationARNT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 template <typename TagsT = Aws::Vector<Tag>>
137 void SetTags(TagsT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags = std::forward<TagsT>(value);
140 }
141 template <typename TagsT = Aws::Vector<Tag>>
143 SetTags(std::forward<TagsT>(value));
144 return *this;
145 }
146 template <typename TagsT = Tag>
148 m_tagsHasBeenSet = true;
149 m_tags.emplace_back(std::forward<TagsT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetAuditDestinationARN() const { return m_auditDestinationARN; }
159 inline bool AuditDestinationARNHasBeenSet() const { return m_auditDestinationARNHasBeenSet; }
160 template <typename AuditDestinationARNT = Aws::String>
161 void SetAuditDestinationARN(AuditDestinationARNT&& value) {
162 m_auditDestinationARNHasBeenSet = true;
163 m_auditDestinationARN = std::forward<AuditDestinationARNT>(value);
164 }
165 template <typename AuditDestinationARNT = Aws::String>
167 SetAuditDestinationARN(std::forward<AuditDestinationARNT>(value));
168 return *this;
169 }
171
173
174 inline const CacheAttributes& GetCacheAttributes() const { return m_cacheAttributes; }
175 inline bool CacheAttributesHasBeenSet() const { return m_cacheAttributesHasBeenSet; }
176 template <typename CacheAttributesT = CacheAttributes>
177 void SetCacheAttributes(CacheAttributesT&& value) {
178 m_cacheAttributesHasBeenSet = true;
179 m_cacheAttributes = std::forward<CacheAttributesT>(value);
180 }
181 template <typename CacheAttributesT = CacheAttributes>
183 SetCacheAttributes(std::forward<CacheAttributesT>(value));
184 return *this;
185 }
187
189
195 inline const EndpointNetworkConfiguration& GetEndpointNetworkConfiguration() const { return m_endpointNetworkConfiguration; }
196 inline bool EndpointNetworkConfigurationHasBeenSet() const { return m_endpointNetworkConfigurationHasBeenSet; }
197 template <typename EndpointNetworkConfigurationT = EndpointNetworkConfiguration>
198 void SetEndpointNetworkConfiguration(EndpointNetworkConfigurationT&& value) {
199 m_endpointNetworkConfigurationHasBeenSet = true;
200 m_endpointNetworkConfiguration = std::forward<EndpointNetworkConfigurationT>(value);
201 }
202 template <typename EndpointNetworkConfigurationT = EndpointNetworkConfiguration>
203 AssociateFileSystemRequest& WithEndpointNetworkConfiguration(EndpointNetworkConfigurationT&& value) {
204 SetEndpointNetworkConfiguration(std::forward<EndpointNetworkConfigurationT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_userName;
210
211 Aws::String m_password;
212
213 Aws::String m_clientToken;
214
215 Aws::String m_gatewayARN;
216
217 Aws::String m_locationARN;
218
219 Aws::Vector<Tag> m_tags;
220
221 Aws::String m_auditDestinationARN;
222
223 CacheAttributes m_cacheAttributes;
224
225 EndpointNetworkConfiguration m_endpointNetworkConfiguration;
226 bool m_userNameHasBeenSet = false;
227 bool m_passwordHasBeenSet = false;
228 bool m_clientTokenHasBeenSet = false;
229 bool m_gatewayARNHasBeenSet = false;
230 bool m_locationARNHasBeenSet = false;
231 bool m_tagsHasBeenSet = false;
232 bool m_auditDestinationARNHasBeenSet = false;
233 bool m_cacheAttributesHasBeenSet = false;
234 bool m_endpointNetworkConfigurationHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace StorageGateway
239} // namespace Aws
const EndpointNetworkConfiguration & GetEndpointNetworkConfiguration() const
AssociateFileSystemRequest & WithAuditDestinationARN(AuditDestinationARNT &&value)
AssociateFileSystemRequest & WithEndpointNetworkConfiguration(EndpointNetworkConfigurationT &&value)
AWS_STORAGEGATEWAY_API AssociateFileSystemRequest()=default
AssociateFileSystemRequest & WithPassword(PasswordT &&value)
void SetEndpointNetworkConfiguration(EndpointNetworkConfigurationT &&value)
AssociateFileSystemRequest & WithUserName(UserNameT &&value)
AssociateFileSystemRequest & WithCacheAttributes(CacheAttributesT &&value)
AssociateFileSystemRequest & WithGatewayARN(GatewayARNT &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AssociateFileSystemRequest & WithClientToken(ClientTokenT &&value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateFileSystemRequest & WithLocationARN(LocationARNT &&value)
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