AWS SDK for C++  1.9.160
AWS SDK for C++
UpdateLocationObjectStorageRequest.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 "UpdateLocationObjectStorage"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
44 
49  inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
50 
55  inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; }
56 
61  inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); }
62 
67  inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); }
68 
73  inline UpdateLocationObjectStorageRequest& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
74 
79  inline UpdateLocationObjectStorageRequest& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
80 
85  inline UpdateLocationObjectStorageRequest& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
86 
87 
94  inline int GetServerPort() const{ return m_serverPort; }
95 
102  inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; }
103 
110  inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; }
111 
118  inline UpdateLocationObjectStorageRequest& WithServerPort(int value) { SetServerPort(value); return *this;}
119 
120 
125  inline const ObjectStorageServerProtocol& GetServerProtocol() const{ return m_serverProtocol; }
126 
131  inline bool ServerProtocolHasBeenSet() const { return m_serverProtocolHasBeenSet; }
132 
137  inline void SetServerProtocol(const ObjectStorageServerProtocol& value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = value; }
138 
143  inline void SetServerProtocol(ObjectStorageServerProtocol&& value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = std::move(value); }
144 
149  inline UpdateLocationObjectStorageRequest& WithServerProtocol(const ObjectStorageServerProtocol& value) { SetServerProtocol(value); return *this;}
150 
155  inline UpdateLocationObjectStorageRequest& WithServerProtocol(ObjectStorageServerProtocol&& value) { SetServerProtocol(std::move(value)); return *this;}
156 
157 
162  inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
163 
168  inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
169 
174  inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
175 
180  inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
181 
186  inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
187 
192  inline UpdateLocationObjectStorageRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
193 
198  inline UpdateLocationObjectStorageRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
199 
204  inline UpdateLocationObjectStorageRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
205 
206 
213  inline const Aws::String& GetAccessKey() const{ return m_accessKey; }
214 
221  inline bool AccessKeyHasBeenSet() const { return m_accessKeyHasBeenSet; }
222 
229  inline void SetAccessKey(const Aws::String& value) { m_accessKeyHasBeenSet = true; m_accessKey = value; }
230 
237  inline void SetAccessKey(Aws::String&& value) { m_accessKeyHasBeenSet = true; m_accessKey = std::move(value); }
238 
245  inline void SetAccessKey(const char* value) { m_accessKeyHasBeenSet = true; m_accessKey.assign(value); }
246 
253  inline UpdateLocationObjectStorageRequest& WithAccessKey(const Aws::String& value) { SetAccessKey(value); return *this;}
254 
261  inline UpdateLocationObjectStorageRequest& WithAccessKey(Aws::String&& value) { SetAccessKey(std::move(value)); return *this;}
262 
269  inline UpdateLocationObjectStorageRequest& WithAccessKey(const char* value) { SetAccessKey(value); return *this;}
270 
271 
278  inline const Aws::String& GetSecretKey() const{ return m_secretKey; }
279 
286  inline bool SecretKeyHasBeenSet() const { return m_secretKeyHasBeenSet; }
287 
294  inline void SetSecretKey(const Aws::String& value) { m_secretKeyHasBeenSet = true; m_secretKey = value; }
295 
302  inline void SetSecretKey(Aws::String&& value) { m_secretKeyHasBeenSet = true; m_secretKey = std::move(value); }
303 
310  inline void SetSecretKey(const char* value) { m_secretKeyHasBeenSet = true; m_secretKey.assign(value); }
311 
318  inline UpdateLocationObjectStorageRequest& WithSecretKey(const Aws::String& value) { SetSecretKey(value); return *this;}
319 
326  inline UpdateLocationObjectStorageRequest& WithSecretKey(Aws::String&& value) { SetSecretKey(std::move(value)); return *this;}
327 
334  inline UpdateLocationObjectStorageRequest& WithSecretKey(const char* value) { SetSecretKey(value); return *this;}
335 
336 
341  inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
342 
347  inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
348 
353  inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
354 
359  inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
360 
365  inline UpdateLocationObjectStorageRequest& WithAgentArns(const Aws::Vector<Aws::String>& value) { SetAgentArns(value); return *this;}
366 
371  inline UpdateLocationObjectStorageRequest& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
372 
377  inline UpdateLocationObjectStorageRequest& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
378 
383  inline UpdateLocationObjectStorageRequest& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
384 
389  inline UpdateLocationObjectStorageRequest& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
390 
391  private:
392 
393  Aws::String m_locationArn;
394  bool m_locationArnHasBeenSet;
395 
396  int m_serverPort;
397  bool m_serverPortHasBeenSet;
398 
399  ObjectStorageServerProtocol m_serverProtocol;
400  bool m_serverProtocolHasBeenSet;
401 
402  Aws::String m_subdirectory;
403  bool m_subdirectoryHasBeenSet;
404 
405  Aws::String m_accessKey;
406  bool m_accessKeyHasBeenSet;
407 
408  Aws::String m_secretKey;
409  bool m_secretKeyHasBeenSet;
410 
411  Aws::Vector<Aws::String> m_agentArns;
412  bool m_agentArnsHasBeenSet;
413  };
414 
415 } // namespace Model
416 } // namespace DataSync
417 } // namespace Aws
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetServerProtocol
void SetServerProtocol(ObjectStorageServerProtocol &&value)
Definition: UpdateLocationObjectStorageRequest.h:143
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SubdirectoryHasBeenSet
bool SubdirectoryHasBeenSet() const
Definition: UpdateLocationObjectStorageRequest.h:168
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetLocationArn
void SetLocationArn(const Aws::String &value)
Definition: UpdateLocationObjectStorageRequest.h:55
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithAccessKey
UpdateLocationObjectStorageRequest & WithAccessKey(const char *value)
Definition: UpdateLocationObjectStorageRequest.h:269
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetLocationArn
void SetLocationArn(Aws::String &&value)
Definition: UpdateLocationObjectStorageRequest.h:61
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::AgentArnsHasBeenSet
bool AgentArnsHasBeenSet() const
Definition: UpdateLocationObjectStorageRequest.h:347
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetAccessKey
void SetAccessKey(const char *value)
Definition: UpdateLocationObjectStorageRequest.h:245
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithSecretKey
UpdateLocationObjectStorageRequest & WithSecretKey(const Aws::String &value)
Definition: UpdateLocationObjectStorageRequest.h:318
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::GetAgentArns
const Aws::Vector< Aws::String > & GetAgentArns() const
Definition: UpdateLocationObjectStorageRequest.h:341
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithServerProtocol
UpdateLocationObjectStorageRequest & WithServerProtocol(const ObjectStorageServerProtocol &value)
Definition: UpdateLocationObjectStorageRequest.h:149
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetAgentArns
void SetAgentArns(Aws::Vector< Aws::String > &&value)
Definition: UpdateLocationObjectStorageRequest.h:359
Aws::DataSync::Model::ObjectStorageServerProtocol
ObjectStorageServerProtocol
Definition: ObjectStorageServerProtocol.h:17
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::GetSubdirectory
const Aws::String & GetSubdirectory() const
Definition: UpdateLocationObjectStorageRequest.h:162
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithLocationArn
UpdateLocationObjectStorageRequest & WithLocationArn(Aws::String &&value)
Definition: UpdateLocationObjectStorageRequest.h:79
DataSyncRequest.h
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetSubdirectory
void SetSubdirectory(const Aws::String &value)
Definition: UpdateLocationObjectStorageRequest.h:174
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetSecretKey
void SetSecretKey(const Aws::String &value)
Definition: UpdateLocationObjectStorageRequest.h:294
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::LocationArnHasBeenSet
bool LocationArnHasBeenSet() const
Definition: UpdateLocationObjectStorageRequest.h:49
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithServerPort
UpdateLocationObjectStorageRequest & WithServerPort(int value)
Definition: UpdateLocationObjectStorageRequest.h:118
AWSVector.h
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::AddAgentArns
UpdateLocationObjectStorageRequest & AddAgentArns(const Aws::String &value)
Definition: UpdateLocationObjectStorageRequest.h:377
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithSecretKey
UpdateLocationObjectStorageRequest & WithSecretKey(const char *value)
Definition: UpdateLocationObjectStorageRequest.h:334
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithSubdirectory
UpdateLocationObjectStorageRequest & WithSubdirectory(const char *value)
Definition: UpdateLocationObjectStorageRequest.h:204
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::AccessKeyHasBeenSet
bool AccessKeyHasBeenSet() const
Definition: UpdateLocationObjectStorageRequest.h:221
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithAgentArns
UpdateLocationObjectStorageRequest & WithAgentArns(const Aws::Vector< Aws::String > &value)
Definition: UpdateLocationObjectStorageRequest.h:365
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateLocationObjectStorageRequest.h:32
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithSubdirectory
UpdateLocationObjectStorageRequest & WithSubdirectory(const Aws::String &value)
Definition: UpdateLocationObjectStorageRequest.h:192
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetSubdirectory
void SetSubdirectory(Aws::String &&value)
Definition: UpdateLocationObjectStorageRequest.h:180
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithSecretKey
UpdateLocationObjectStorageRequest & WithSecretKey(Aws::String &&value)
Definition: UpdateLocationObjectStorageRequest.h:326
Aws::DataSync::Model::UpdateLocationObjectStorageRequest
Definition: UpdateLocationObjectStorageRequest.h:24
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetServerPort
void SetServerPort(int value)
Definition: UpdateLocationObjectStorageRequest.h:110
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetSecretKey
void SetSecretKey(const char *value)
Definition: UpdateLocationObjectStorageRequest.h:310
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithAgentArns
UpdateLocationObjectStorageRequest & WithAgentArns(Aws::Vector< Aws::String > &&value)
Definition: UpdateLocationObjectStorageRequest.h:371
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithLocationArn
UpdateLocationObjectStorageRequest & WithLocationArn(const char *value)
Definition: UpdateLocationObjectStorageRequest.h:85
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::GetServerProtocol
const ObjectStorageServerProtocol & GetServerProtocol() const
Definition: UpdateLocationObjectStorageRequest.h:125
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SecretKeyHasBeenSet
bool SecretKeyHasBeenSet() const
Definition: UpdateLocationObjectStorageRequest.h:286
AWSString.h
DataSync_EXPORTS.h
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::GetAccessKey
const Aws::String & GetAccessKey() const
Definition: UpdateLocationObjectStorageRequest.h:213
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetAccessKey
void SetAccessKey(const Aws::String &value)
Definition: UpdateLocationObjectStorageRequest.h:229
ObjectStorageServerProtocol.h
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::GetSecretKey
const Aws::String & GetSecretKey() const
Definition: UpdateLocationObjectStorageRequest.h:278
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::AddAgentArns
UpdateLocationObjectStorageRequest & AddAgentArns(const char *value)
Definition: UpdateLocationObjectStorageRequest.h:389
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetLocationArn
void SetLocationArn(const char *value)
Definition: UpdateLocationObjectStorageRequest.h:67
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetSecretKey
void SetSecretKey(Aws::String &&value)
Definition: UpdateLocationObjectStorageRequest.h:302
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::GetLocationArn
const Aws::String & GetLocationArn() const
Definition: UpdateLocationObjectStorageRequest.h:43
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithAccessKey
UpdateLocationObjectStorageRequest & WithAccessKey(const Aws::String &value)
Definition: UpdateLocationObjectStorageRequest.h:253
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithServerProtocol
UpdateLocationObjectStorageRequest & WithServerProtocol(ObjectStorageServerProtocol &&value)
Definition: UpdateLocationObjectStorageRequest.h:155
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::ServerProtocolHasBeenSet
bool ServerProtocolHasBeenSet() const
Definition: UpdateLocationObjectStorageRequest.h:131
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetAgentArns
void SetAgentArns(const Aws::Vector< Aws::String > &value)
Definition: UpdateLocationObjectStorageRequest.h:353
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetServerProtocol
void SetServerProtocol(const ObjectStorageServerProtocol &value)
Definition: UpdateLocationObjectStorageRequest.h:137
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::UpdateLocationObjectStorageRequest
UpdateLocationObjectStorageRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetAccessKey
void SetAccessKey(Aws::String &&value)
Definition: UpdateLocationObjectStorageRequest.h:237
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::GetServerPort
int GetServerPort() const
Definition: UpdateLocationObjectStorageRequest.h:94
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithSubdirectory
UpdateLocationObjectStorageRequest & WithSubdirectory(Aws::String &&value)
Definition: UpdateLocationObjectStorageRequest.h:198
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::ServerPortHasBeenSet
bool ServerPortHasBeenSet() const
Definition: UpdateLocationObjectStorageRequest.h:102
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::AddAgentArns
UpdateLocationObjectStorageRequest & AddAgentArns(Aws::String &&value)
Definition: UpdateLocationObjectStorageRequest.h:383
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithLocationArn
UpdateLocationObjectStorageRequest & WithLocationArn(const Aws::String &value)
Definition: UpdateLocationObjectStorageRequest.h:73
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::WithAccessKey
UpdateLocationObjectStorageRequest & WithAccessKey(Aws::String &&value)
Definition: UpdateLocationObjectStorageRequest.h:261
Aws::DataSync::Model::UpdateLocationObjectStorageRequest::SetSubdirectory
void SetSubdirectory(const char *value)
Definition: UpdateLocationObjectStorageRequest.h:186