AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeLocationObjectStorageResult.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datasync/model/ObjectStorageServerProtocol.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/Array.h>
13#include <aws/datasync/model/ManagedSecretConfig.h>
14#include <aws/datasync/model/CmkSecretConfig.h>
15#include <aws/datasync/model/CustomSecretConfig.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace DataSync
31{
32namespace Model
33{
40 {
41 public:
42 AWS_DATASYNC_API DescribeLocationObjectStorageResult() = default;
45
46
48
51 inline const Aws::String& GetLocationArn() const { return m_locationArn; }
52 template<typename LocationArnT = Aws::String>
53 void SetLocationArn(LocationArnT&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::forward<LocationArnT>(value); }
54 template<typename LocationArnT = Aws::String>
55 DescribeLocationObjectStorageResult& WithLocationArn(LocationArnT&& value) { SetLocationArn(std::forward<LocationArnT>(value)); return *this;}
57
59
62 inline const Aws::String& GetLocationUri() const { return m_locationUri; }
63 template<typename LocationUriT = Aws::String>
64 void SetLocationUri(LocationUriT&& value) { m_locationUriHasBeenSet = true; m_locationUri = std::forward<LocationUriT>(value); }
65 template<typename LocationUriT = Aws::String>
66 DescribeLocationObjectStorageResult& WithLocationUri(LocationUriT&& value) { SetLocationUri(std::forward<LocationUriT>(value)); return *this;}
68
70
74 inline const Aws::String& GetAccessKey() const { return m_accessKey; }
75 template<typename AccessKeyT = Aws::String>
76 void SetAccessKey(AccessKeyT&& value) { m_accessKeyHasBeenSet = true; m_accessKey = std::forward<AccessKeyT>(value); }
77 template<typename AccessKeyT = Aws::String>
78 DescribeLocationObjectStorageResult& WithAccessKey(AccessKeyT&& value) { SetAccessKey(std::forward<AccessKeyT>(value)); return *this;}
80
82
86 inline int GetServerPort() const { return m_serverPort; }
87 inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; }
88 inline DescribeLocationObjectStorageResult& WithServerPort(int value) { SetServerPort(value); return *this;}
90
92
95 inline ObjectStorageServerProtocol GetServerProtocol() const { return m_serverProtocol; }
96 inline void SetServerProtocol(ObjectStorageServerProtocol value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = value; }
99
101
105 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
106 template<typename AgentArnsT = Aws::Vector<Aws::String>>
107 void SetAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::forward<AgentArnsT>(value); }
108 template<typename AgentArnsT = Aws::Vector<Aws::String>>
109 DescribeLocationObjectStorageResult& WithAgentArns(AgentArnsT&& value) { SetAgentArns(std::forward<AgentArnsT>(value)); return *this;}
110 template<typename AgentArnsT = Aws::String>
111 DescribeLocationObjectStorageResult& AddAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns.emplace_back(std::forward<AgentArnsT>(value)); return *this; }
113
115
118 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
119 template<typename CreationTimeT = Aws::Utils::DateTime>
120 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
121 template<typename CreationTimeT = Aws::Utils::DateTime>
122 DescribeLocationObjectStorageResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
124
126
131 inline const Aws::Utils::ByteBuffer& GetServerCertificate() const { return m_serverCertificate; }
132 template<typename ServerCertificateT = Aws::Utils::ByteBuffer>
133 void SetServerCertificate(ServerCertificateT&& value) { m_serverCertificateHasBeenSet = true; m_serverCertificate = std::forward<ServerCertificateT>(value); }
134 template<typename ServerCertificateT = Aws::Utils::ByteBuffer>
135 DescribeLocationObjectStorageResult& WithServerCertificate(ServerCertificateT&& value) { SetServerCertificate(std::forward<ServerCertificateT>(value)); return *this;}
137
139
145 inline const ManagedSecretConfig& GetManagedSecretConfig() const { return m_managedSecretConfig; }
146 template<typename ManagedSecretConfigT = ManagedSecretConfig>
147 void SetManagedSecretConfig(ManagedSecretConfigT&& value) { m_managedSecretConfigHasBeenSet = true; m_managedSecretConfig = std::forward<ManagedSecretConfigT>(value); }
148 template<typename ManagedSecretConfigT = ManagedSecretConfig>
149 DescribeLocationObjectStorageResult& WithManagedSecretConfig(ManagedSecretConfigT&& value) { SetManagedSecretConfig(std::forward<ManagedSecretConfigT>(value)); return *this;}
151
153
158 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
159 template<typename CmkSecretConfigT = CmkSecretConfig>
160 void SetCmkSecretConfig(CmkSecretConfigT&& value) { m_cmkSecretConfigHasBeenSet = true; m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value); }
161 template<typename CmkSecretConfigT = CmkSecretConfig>
162 DescribeLocationObjectStorageResult& WithCmkSecretConfig(CmkSecretConfigT&& value) { SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value)); return *this;}
164
166
171 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
172 template<typename CustomSecretConfigT = CustomSecretConfig>
173 void SetCustomSecretConfig(CustomSecretConfigT&& value) { m_customSecretConfigHasBeenSet = true; m_customSecretConfig = std::forward<CustomSecretConfigT>(value); }
174 template<typename CustomSecretConfigT = CustomSecretConfig>
175 DescribeLocationObjectStorageResult& WithCustomSecretConfig(CustomSecretConfigT&& value) { SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value)); return *this;}
177
179
180 inline const Aws::String& GetRequestId() const { return m_requestId; }
181 template<typename RequestIdT = Aws::String>
182 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
183 template<typename RequestIdT = Aws::String>
184 DescribeLocationObjectStorageResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
186 private:
187
188 Aws::String m_locationArn;
189 bool m_locationArnHasBeenSet = false;
190
191 Aws::String m_locationUri;
192 bool m_locationUriHasBeenSet = false;
193
194 Aws::String m_accessKey;
195 bool m_accessKeyHasBeenSet = false;
196
197 int m_serverPort{0};
198 bool m_serverPortHasBeenSet = false;
199
201 bool m_serverProtocolHasBeenSet = false;
202
203 Aws::Vector<Aws::String> m_agentArns;
204 bool m_agentArnsHasBeenSet = false;
205
206 Aws::Utils::DateTime m_creationTime{};
207 bool m_creationTimeHasBeenSet = false;
208
209 Aws::Utils::ByteBuffer m_serverCertificate{};
210 bool m_serverCertificateHasBeenSet = false;
211
212 ManagedSecretConfig m_managedSecretConfig;
213 bool m_managedSecretConfigHasBeenSet = false;
214
215 CmkSecretConfig m_cmkSecretConfig;
216 bool m_cmkSecretConfigHasBeenSet = false;
217
218 CustomSecretConfig m_customSecretConfig;
219 bool m_customSecretConfigHasBeenSet = false;
220
221 Aws::String m_requestId;
222 bool m_requestIdHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace DataSync
227} // namespace Aws
DescribeLocationObjectStorageResult & WithLocationUri(LocationUriT &&value)
DescribeLocationObjectStorageResult & WithRequestId(RequestIdT &&value)
DescribeLocationObjectStorageResult & WithCreationTime(CreationTimeT &&value)
DescribeLocationObjectStorageResult & WithServerProtocol(ObjectStorageServerProtocol value)
DescribeLocationObjectStorageResult & WithAccessKey(AccessKeyT &&value)
DescribeLocationObjectStorageResult & WithCmkSecretConfig(CmkSecretConfigT &&value)
AWS_DATASYNC_API DescribeLocationObjectStorageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeLocationObjectStorageResult & WithManagedSecretConfig(ManagedSecretConfigT &&value)
DescribeLocationObjectStorageResult & WithAgentArns(AgentArnsT &&value)
DescribeLocationObjectStorageResult & WithServerCertificate(ServerCertificateT &&value)
AWS_DATASYNC_API DescribeLocationObjectStorageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeLocationObjectStorageResult & WithCustomSecretConfig(CustomSecretConfigT &&value)
DescribeLocationObjectStorageResult & AddAgentArns(AgentArnsT &&value)
DescribeLocationObjectStorageResult & WithLocationArn(LocationArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue