AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateLocationObjectStorageRequest.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/ObjectStorageServerProtocol.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/Array.h>
13#include <utility>
14
15namespace Aws
16{
17namespace DataSync
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateLocationObjectStorage"; }
34
35 AWS_DATASYNC_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
46 inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
47 inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; }
48 inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); }
49 inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); }
51 inline UpdateLocationObjectStorageRequest& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
52 inline UpdateLocationObjectStorageRequest& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
54
56
60 inline int GetServerPort() const{ return m_serverPort; }
61 inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; }
62 inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; }
63 inline UpdateLocationObjectStorageRequest& WithServerPort(int value) { SetServerPort(value); return *this;}
65
67
71 inline const ObjectStorageServerProtocol& GetServerProtocol() const{ return m_serverProtocol; }
72 inline bool ServerProtocolHasBeenSet() const { return m_serverProtocolHasBeenSet; }
73 inline void SetServerProtocol(const ObjectStorageServerProtocol& value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = value; }
74 inline void SetServerProtocol(ObjectStorageServerProtocol&& value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = std::move(value); }
78
80
85 inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
86 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
87 inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
88 inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
89 inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
91 inline UpdateLocationObjectStorageRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
92 inline UpdateLocationObjectStorageRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
94
96
100 inline const Aws::String& GetAccessKey() const{ return m_accessKey; }
101 inline bool AccessKeyHasBeenSet() const { return m_accessKeyHasBeenSet; }
102 inline void SetAccessKey(const Aws::String& value) { m_accessKeyHasBeenSet = true; m_accessKey = value; }
103 inline void SetAccessKey(Aws::String&& value) { m_accessKeyHasBeenSet = true; m_accessKey = std::move(value); }
104 inline void SetAccessKey(const char* value) { m_accessKeyHasBeenSet = true; m_accessKey.assign(value); }
105 inline UpdateLocationObjectStorageRequest& WithAccessKey(const Aws::String& value) { SetAccessKey(value); return *this;}
106 inline UpdateLocationObjectStorageRequest& WithAccessKey(Aws::String&& value) { SetAccessKey(std::move(value)); return *this;}
107 inline UpdateLocationObjectStorageRequest& WithAccessKey(const char* value) { SetAccessKey(value); return *this;}
109
111
115 inline const Aws::String& GetSecretKey() const{ return m_secretKey; }
116 inline bool SecretKeyHasBeenSet() const { return m_secretKeyHasBeenSet; }
117 inline void SetSecretKey(const Aws::String& value) { m_secretKeyHasBeenSet = true; m_secretKey = value; }
118 inline void SetSecretKey(Aws::String&& value) { m_secretKeyHasBeenSet = true; m_secretKey = std::move(value); }
119 inline void SetSecretKey(const char* value) { m_secretKeyHasBeenSet = true; m_secretKey.assign(value); }
120 inline UpdateLocationObjectStorageRequest& WithSecretKey(const Aws::String& value) { SetSecretKey(value); return *this;}
121 inline UpdateLocationObjectStorageRequest& WithSecretKey(Aws::String&& value) { SetSecretKey(std::move(value)); return *this;}
122 inline UpdateLocationObjectStorageRequest& WithSecretKey(const char* value) { SetSecretKey(value); return *this;}
124
126
130 inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
131 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
132 inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
133 inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
136 inline UpdateLocationObjectStorageRequest& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
137 inline UpdateLocationObjectStorageRequest& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
138 inline UpdateLocationObjectStorageRequest& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
140
142
161 inline const Aws::Utils::ByteBuffer& GetServerCertificate() const{ return m_serverCertificate; }
162 inline bool ServerCertificateHasBeenSet() const { return m_serverCertificateHasBeenSet; }
163 inline void SetServerCertificate(const Aws::Utils::ByteBuffer& value) { m_serverCertificateHasBeenSet = true; m_serverCertificate = value; }
164 inline void SetServerCertificate(Aws::Utils::ByteBuffer&& value) { m_serverCertificateHasBeenSet = true; m_serverCertificate = std::move(value); }
168 private:
169
170 Aws::String m_locationArn;
171 bool m_locationArnHasBeenSet = false;
172
173 int m_serverPort;
174 bool m_serverPortHasBeenSet = false;
175
176 ObjectStorageServerProtocol m_serverProtocol;
177 bool m_serverProtocolHasBeenSet = false;
178
179 Aws::String m_subdirectory;
180 bool m_subdirectoryHasBeenSet = false;
181
182 Aws::String m_accessKey;
183 bool m_accessKeyHasBeenSet = false;
184
185 Aws::String m_secretKey;
186 bool m_secretKeyHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_agentArns;
189 bool m_agentArnsHasBeenSet = false;
190
191 Aws::Utils::ByteBuffer m_serverCertificate;
192 bool m_serverCertificateHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace DataSync
197} // namespace Aws
UpdateLocationObjectStorageRequest & WithServerProtocol(ObjectStorageServerProtocol &&value)
UpdateLocationObjectStorageRequest & WithSecretKey(const Aws::String &value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
UpdateLocationObjectStorageRequest & WithSubdirectory(const char *value)
UpdateLocationObjectStorageRequest & WithSubdirectory(const Aws::String &value)
UpdateLocationObjectStorageRequest & AddAgentArns(const Aws::String &value)
UpdateLocationObjectStorageRequest & WithSecretKey(const char *value)
UpdateLocationObjectStorageRequest & WithAccessKey(const char *value)
UpdateLocationObjectStorageRequest & WithAgentArns(const Aws::Vector< Aws::String > &value)
UpdateLocationObjectStorageRequest & WithSubdirectory(Aws::String &&value)
UpdateLocationObjectStorageRequest & WithServerProtocol(const ObjectStorageServerProtocol &value)
UpdateLocationObjectStorageRequest & WithAccessKey(const Aws::String &value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateLocationObjectStorageRequest & AddAgentArns(Aws::String &&value)
UpdateLocationObjectStorageRequest & WithServerCertificate(const Aws::Utils::ByteBuffer &value)
UpdateLocationObjectStorageRequest & WithAccessKey(Aws::String &&value)
UpdateLocationObjectStorageRequest & WithAgentArns(Aws::Vector< Aws::String > &&value)
UpdateLocationObjectStorageRequest & WithServerCertificate(Aws::Utils::ByteBuffer &&value)
UpdateLocationObjectStorageRequest & WithLocationArn(Aws::String &&value)
UpdateLocationObjectStorageRequest & WithSecretKey(Aws::String &&value)
UpdateLocationObjectStorageRequest & WithLocationArn(const char *value)
UpdateLocationObjectStorageRequest & WithLocationArn(const Aws::String &value)
UpdateLocationObjectStorageRequest & AddAgentArns(const char *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