AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLocationObjectStorageRequest.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 <aws/datasync/model/TagListEntry.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DataSync
19{
20namespace Model
21{
22
29 {
30 public:
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 "CreateLocationObjectStorage"; }
38
39 AWS_DATASYNC_API Aws::String SerializePayload() const override;
40
42
43
45
50 inline const Aws::String& GetServerHostname() const{ return m_serverHostname; }
51 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
52 inline void SetServerHostname(const Aws::String& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = value; }
53 inline void SetServerHostname(Aws::String&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::move(value); }
54 inline void SetServerHostname(const char* value) { m_serverHostnameHasBeenSet = true; m_serverHostname.assign(value); }
56 inline CreateLocationObjectStorageRequest& WithServerHostname(Aws::String&& value) { SetServerHostname(std::move(value)); return *this;}
57 inline CreateLocationObjectStorageRequest& WithServerHostname(const char* value) { SetServerHostname(value); return *this;}
59
61
65 inline int GetServerPort() const{ return m_serverPort; }
66 inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; }
67 inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; }
68 inline CreateLocationObjectStorageRequest& WithServerPort(int value) { SetServerPort(value); return *this;}
70
72
76 inline const ObjectStorageServerProtocol& GetServerProtocol() const{ return m_serverProtocol; }
77 inline bool ServerProtocolHasBeenSet() const { return m_serverProtocolHasBeenSet; }
78 inline void SetServerProtocol(const ObjectStorageServerProtocol& value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = value; }
79 inline void SetServerProtocol(ObjectStorageServerProtocol&& value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = std::move(value); }
83
85
90 inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
91 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
92 inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
93 inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
94 inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
96 inline CreateLocationObjectStorageRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
97 inline CreateLocationObjectStorageRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
99
101
104 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
105 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
106 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
107 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
108 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
109 inline CreateLocationObjectStorageRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
110 inline CreateLocationObjectStorageRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
111 inline CreateLocationObjectStorageRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
113
115
119 inline const Aws::String& GetAccessKey() const{ return m_accessKey; }
120 inline bool AccessKeyHasBeenSet() const { return m_accessKeyHasBeenSet; }
121 inline void SetAccessKey(const Aws::String& value) { m_accessKeyHasBeenSet = true; m_accessKey = value; }
122 inline void SetAccessKey(Aws::String&& value) { m_accessKeyHasBeenSet = true; m_accessKey = std::move(value); }
123 inline void SetAccessKey(const char* value) { m_accessKeyHasBeenSet = true; m_accessKey.assign(value); }
124 inline CreateLocationObjectStorageRequest& WithAccessKey(const Aws::String& value) { SetAccessKey(value); return *this;}
125 inline CreateLocationObjectStorageRequest& WithAccessKey(Aws::String&& value) { SetAccessKey(std::move(value)); return *this;}
126 inline CreateLocationObjectStorageRequest& WithAccessKey(const char* value) { SetAccessKey(value); return *this;}
128
130
134 inline const Aws::String& GetSecretKey() const{ return m_secretKey; }
135 inline bool SecretKeyHasBeenSet() const { return m_secretKeyHasBeenSet; }
136 inline void SetSecretKey(const Aws::String& value) { m_secretKeyHasBeenSet = true; m_secretKey = value; }
137 inline void SetSecretKey(Aws::String&& value) { m_secretKeyHasBeenSet = true; m_secretKey = std::move(value); }
138 inline void SetSecretKey(const char* value) { m_secretKeyHasBeenSet = true; m_secretKey.assign(value); }
139 inline CreateLocationObjectStorageRequest& WithSecretKey(const Aws::String& value) { SetSecretKey(value); return *this;}
140 inline CreateLocationObjectStorageRequest& WithSecretKey(Aws::String&& value) { SetSecretKey(std::move(value)); return *this;}
141 inline CreateLocationObjectStorageRequest& WithSecretKey(const char* value) { SetSecretKey(value); return *this;}
143
145
149 inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
150 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
151 inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
152 inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
155 inline CreateLocationObjectStorageRequest& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
156 inline CreateLocationObjectStorageRequest& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
157 inline CreateLocationObjectStorageRequest& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
159
161
166 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
167 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
168 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
169 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
171 inline CreateLocationObjectStorageRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
172 inline CreateLocationObjectStorageRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
173 inline CreateLocationObjectStorageRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
175
177
195 inline const Aws::Utils::ByteBuffer& GetServerCertificate() const{ return m_serverCertificate; }
196 inline bool ServerCertificateHasBeenSet() const { return m_serverCertificateHasBeenSet; }
197 inline void SetServerCertificate(const Aws::Utils::ByteBuffer& value) { m_serverCertificateHasBeenSet = true; m_serverCertificate = value; }
198 inline void SetServerCertificate(Aws::Utils::ByteBuffer&& value) { m_serverCertificateHasBeenSet = true; m_serverCertificate = std::move(value); }
202 private:
203
204 Aws::String m_serverHostname;
205 bool m_serverHostnameHasBeenSet = false;
206
207 int m_serverPort;
208 bool m_serverPortHasBeenSet = false;
209
210 ObjectStorageServerProtocol m_serverProtocol;
211 bool m_serverProtocolHasBeenSet = false;
212
213 Aws::String m_subdirectory;
214 bool m_subdirectoryHasBeenSet = false;
215
216 Aws::String m_bucketName;
217 bool m_bucketNameHasBeenSet = false;
218
219 Aws::String m_accessKey;
220 bool m_accessKeyHasBeenSet = false;
221
222 Aws::String m_secretKey;
223 bool m_secretKeyHasBeenSet = false;
224
225 Aws::Vector<Aws::String> m_agentArns;
226 bool m_agentArnsHasBeenSet = false;
227
229 bool m_tagsHasBeenSet = false;
230
231 Aws::Utils::ByteBuffer m_serverCertificate;
232 bool m_serverCertificateHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace DataSync
237} // namespace Aws
CreateLocationObjectStorageRequest & WithServerCertificate(Aws::Utils::ByteBuffer &&value)
CreateLocationObjectStorageRequest & AddAgentArns(const char *value)
CreateLocationObjectStorageRequest & WithSubdirectory(const Aws::String &value)
CreateLocationObjectStorageRequest & WithAgentArns(Aws::Vector< Aws::String > &&value)
CreateLocationObjectStorageRequest & WithSecretKey(const char *value)
CreateLocationObjectStorageRequest & WithAccessKey(const Aws::String &value)
CreateLocationObjectStorageRequest & WithAgentArns(const Aws::Vector< Aws::String > &value)
CreateLocationObjectStorageRequest & AddTags(TagListEntry &&value)
CreateLocationObjectStorageRequest & WithBucketName(Aws::String &&value)
CreateLocationObjectStorageRequest & WithBucketName(const char *value)
CreateLocationObjectStorageRequest & AddAgentArns(Aws::String &&value)
CreateLocationObjectStorageRequest & WithServerHostname(const Aws::String &value)
CreateLocationObjectStorageRequest & WithServerHostname(Aws::String &&value)
CreateLocationObjectStorageRequest & WithTags(const Aws::Vector< TagListEntry > &value)
CreateLocationObjectStorageRequest & AddTags(const TagListEntry &value)
CreateLocationObjectStorageRequest & WithSubdirectory(Aws::String &&value)
CreateLocationObjectStorageRequest & AddAgentArns(const Aws::String &value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationObjectStorageRequest & WithSubdirectory(const char *value)
CreateLocationObjectStorageRequest & WithSecretKey(const Aws::String &value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateLocationObjectStorageRequest & WithSecretKey(Aws::String &&value)
CreateLocationObjectStorageRequest & WithServerHostname(const char *value)
CreateLocationObjectStorageRequest & WithServerProtocol(ObjectStorageServerProtocol &&value)
CreateLocationObjectStorageRequest & WithBucketName(const Aws::String &value)
CreateLocationObjectStorageRequest & WithTags(Aws::Vector< TagListEntry > &&value)
CreateLocationObjectStorageRequest & WithAccessKey(Aws::String &&value)
CreateLocationObjectStorageRequest & WithServerCertificate(const Aws::Utils::ByteBuffer &value)
CreateLocationObjectStorageRequest & WithServerProtocol(const ObjectStorageServerProtocol &value)
CreateLocationObjectStorageRequest & WithAccessKey(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