AWS SDK for C++  1.9.154
AWS SDK for C++
DescribeLocationObjectStorageResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace DataSync
27 {
28 namespace Model
29 {
36  {
37  public:
41 
42 
47  inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
48 
53  inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
54 
59  inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
60 
65  inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
66 
71  inline DescribeLocationObjectStorageResult& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
72 
77  inline DescribeLocationObjectStorageResult& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
78 
83  inline DescribeLocationObjectStorageResult& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
84 
85 
90  inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
91 
96  inline void SetLocationUri(const Aws::String& value) { m_locationUri = value; }
97 
102  inline void SetLocationUri(Aws::String&& value) { m_locationUri = std::move(value); }
103 
108  inline void SetLocationUri(const char* value) { m_locationUri.assign(value); }
109 
114  inline DescribeLocationObjectStorageResult& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
115 
120  inline DescribeLocationObjectStorageResult& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
121 
126  inline DescribeLocationObjectStorageResult& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
127 
128 
135  inline const Aws::String& GetAccessKey() const{ return m_accessKey; }
136 
143  inline void SetAccessKey(const Aws::String& value) { m_accessKey = value; }
144 
151  inline void SetAccessKey(Aws::String&& value) { m_accessKey = std::move(value); }
152 
159  inline void SetAccessKey(const char* value) { m_accessKey.assign(value); }
160 
167  inline DescribeLocationObjectStorageResult& WithAccessKey(const Aws::String& value) { SetAccessKey(value); return *this;}
168 
175  inline DescribeLocationObjectStorageResult& WithAccessKey(Aws::String&& value) { SetAccessKey(std::move(value)); return *this;}
176 
183  inline DescribeLocationObjectStorageResult& WithAccessKey(const char* value) { SetAccessKey(value); return *this;}
184 
185 
191  inline int GetServerPort() const{ return m_serverPort; }
192 
198  inline void SetServerPort(int value) { m_serverPort = value; }
199 
205  inline DescribeLocationObjectStorageResult& WithServerPort(int value) { SetServerPort(value); return *this;}
206 
207 
212  inline const ObjectStorageServerProtocol& GetServerProtocol() const{ return m_serverProtocol; }
213 
218  inline void SetServerProtocol(const ObjectStorageServerProtocol& value) { m_serverProtocol = value; }
219 
224  inline void SetServerProtocol(ObjectStorageServerProtocol&& value) { m_serverProtocol = std::move(value); }
225 
230  inline DescribeLocationObjectStorageResult& WithServerProtocol(const ObjectStorageServerProtocol& value) { SetServerProtocol(value); return *this;}
231 
236  inline DescribeLocationObjectStorageResult& WithServerProtocol(ObjectStorageServerProtocol&& value) { SetServerProtocol(std::move(value)); return *this;}
237 
238 
243  inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
244 
249  inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArns = value; }
250 
255  inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArns = std::move(value); }
256 
261  inline DescribeLocationObjectStorageResult& WithAgentArns(const Aws::Vector<Aws::String>& value) { SetAgentArns(value); return *this;}
262 
267  inline DescribeLocationObjectStorageResult& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
268 
273  inline DescribeLocationObjectStorageResult& AddAgentArns(const Aws::String& value) { m_agentArns.push_back(value); return *this; }
274 
279  inline DescribeLocationObjectStorageResult& AddAgentArns(Aws::String&& value) { m_agentArns.push_back(std::move(value)); return *this; }
280 
285  inline DescribeLocationObjectStorageResult& AddAgentArns(const char* value) { m_agentArns.push_back(value); return *this; }
286 
287 
291  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
292 
296  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
297 
301  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
302 
306  inline DescribeLocationObjectStorageResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
307 
311  inline DescribeLocationObjectStorageResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
312 
313  private:
314 
315  Aws::String m_locationArn;
316 
317  Aws::String m_locationUri;
318 
319  Aws::String m_accessKey;
320 
321  int m_serverPort;
322 
323  ObjectStorageServerProtocol m_serverProtocol;
324 
325  Aws::Vector<Aws::String> m_agentArns;
326 
327  Aws::Utils::DateTime m_creationTime;
328  };
329 
330 } // namespace Model
331 } // namespace DataSync
332 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DataSync::Model::DescribeLocationObjectStorageResult::GetAccessKey
const Aws::String & GetAccessKey() const
Definition: DescribeLocationObjectStorageResult.h:135
Aws::DataSync::Model::DescribeLocationObjectStorageResult::AddAgentArns
DescribeLocationObjectStorageResult & AddAgentArns(const Aws::String &value)
Definition: DescribeLocationObjectStorageResult.h:273
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetAgentArns
void SetAgentArns(const Aws::Vector< Aws::String > &value)
Definition: DescribeLocationObjectStorageResult.h:249
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetServerProtocol
void SetServerProtocol(ObjectStorageServerProtocol &&value)
Definition: DescribeLocationObjectStorageResult.h:224
Aws::DataSync::Model::DescribeLocationObjectStorageResult::DescribeLocationObjectStorageResult
DescribeLocationObjectStorageResult()
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetLocationArn
void SetLocationArn(Aws::String &&value)
Definition: DescribeLocationObjectStorageResult.h:59
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetAgentArns
void SetAgentArns(Aws::Vector< Aws::String > &&value)
Definition: DescribeLocationObjectStorageResult.h:255
DateTime.h
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithLocationArn
DescribeLocationObjectStorageResult & WithLocationArn(const char *value)
Definition: DescribeLocationObjectStorageResult.h:83
Aws::DataSync::Model::ObjectStorageServerProtocol
ObjectStorageServerProtocol
Definition: ObjectStorageServerProtocol.h:17
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithLocationArn
DescribeLocationObjectStorageResult & WithLocationArn(const Aws::String &value)
Definition: DescribeLocationObjectStorageResult.h:71
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetLocationUri
void SetLocationUri(Aws::String &&value)
Definition: DescribeLocationObjectStorageResult.h:102
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetServerPort
void SetServerPort(int value)
Definition: DescribeLocationObjectStorageResult.h:198
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithLocationUri
DescribeLocationObjectStorageResult & WithLocationUri(const Aws::String &value)
Definition: DescribeLocationObjectStorageResult.h:114
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: DescribeLocationObjectStorageResult.h:296
AWSVector.h
Aws::DataSync::Model::DescribeLocationObjectStorageResult::GetAgentArns
const Aws::Vector< Aws::String > & GetAgentArns() const
Definition: DescribeLocationObjectStorageResult.h:243
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithLocationUri
DescribeLocationObjectStorageResult & WithLocationUri(const char *value)
Definition: DescribeLocationObjectStorageResult.h:126
Aws::DataSync::Model::DescribeLocationObjectStorageResult::DescribeLocationObjectStorageResult
DescribeLocationObjectStorageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DataSync::Model::DescribeLocationObjectStorageResult::AddAgentArns
DescribeLocationObjectStorageResult & AddAgentArns(const char *value)
Definition: DescribeLocationObjectStorageResult.h:285
Aws::DataSync::Model::DescribeLocationObjectStorageResult::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: DescribeLocationObjectStorageResult.h:291
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithServerProtocol
DescribeLocationObjectStorageResult & WithServerProtocol(const ObjectStorageServerProtocol &value)
Definition: DescribeLocationObjectStorageResult.h:230
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithAccessKey
DescribeLocationObjectStorageResult & WithAccessKey(const char *value)
Definition: DescribeLocationObjectStorageResult.h:183
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithCreationTime
DescribeLocationObjectStorageResult & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: DescribeLocationObjectStorageResult.h:306
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithServerPort
DescribeLocationObjectStorageResult & WithServerPort(int value)
Definition: DescribeLocationObjectStorageResult.h:205
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: DescribeLocationObjectStorageResult.h:301
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithAccessKey
DescribeLocationObjectStorageResult & WithAccessKey(const Aws::String &value)
Definition: DescribeLocationObjectStorageResult.h:167
AWSString.h
DataSync_EXPORTS.h
ObjectStorageServerProtocol.h
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithLocationArn
DescribeLocationObjectStorageResult & WithLocationArn(Aws::String &&value)
Definition: DescribeLocationObjectStorageResult.h:77
Aws::DataSync::Model::DescribeLocationObjectStorageResult::GetServerProtocol
const ObjectStorageServerProtocol & GetServerProtocol() const
Definition: DescribeLocationObjectStorageResult.h:212
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithServerProtocol
DescribeLocationObjectStorageResult & WithServerProtocol(ObjectStorageServerProtocol &&value)
Definition: DescribeLocationObjectStorageResult.h:236
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetServerProtocol
void SetServerProtocol(const ObjectStorageServerProtocol &value)
Definition: DescribeLocationObjectStorageResult.h:218
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetAccessKey
void SetAccessKey(Aws::String &&value)
Definition: DescribeLocationObjectStorageResult.h:151
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetAccessKey
void SetAccessKey(const Aws::String &value)
Definition: DescribeLocationObjectStorageResult.h:143
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetLocationUri
void SetLocationUri(const char *value)
Definition: DescribeLocationObjectStorageResult.h:108
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetLocationArn
void SetLocationArn(const char *value)
Definition: DescribeLocationObjectStorageResult.h:65
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetLocationUri
void SetLocationUri(const Aws::String &value)
Definition: DescribeLocationObjectStorageResult.h:96
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithLocationUri
DescribeLocationObjectStorageResult & WithLocationUri(Aws::String &&value)
Definition: DescribeLocationObjectStorageResult.h:120
Aws::DataSync::Model::DescribeLocationObjectStorageResult::AddAgentArns
DescribeLocationObjectStorageResult & AddAgentArns(Aws::String &&value)
Definition: DescribeLocationObjectStorageResult.h:279
Aws::DataSync::Model::DescribeLocationObjectStorageResult::GetLocationUri
const Aws::String & GetLocationUri() const
Definition: DescribeLocationObjectStorageResult.h:90
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetLocationArn
void SetLocationArn(const Aws::String &value)
Definition: DescribeLocationObjectStorageResult.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithAccessKey
DescribeLocationObjectStorageResult & WithAccessKey(Aws::String &&value)
Definition: DescribeLocationObjectStorageResult.h:175
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithAgentArns
DescribeLocationObjectStorageResult & WithAgentArns(Aws::Vector< Aws::String > &&value)
Definition: DescribeLocationObjectStorageResult.h:267
Aws::DataSync::Model::DescribeLocationObjectStorageResult::operator=
DescribeLocationObjectStorageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithCreationTime
DescribeLocationObjectStorageResult & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: DescribeLocationObjectStorageResult.h:311
Aws::DataSync::Model::DescribeLocationObjectStorageResult::GetLocationArn
const Aws::String & GetLocationArn() const
Definition: DescribeLocationObjectStorageResult.h:47
Aws::DataSync::Model::DescribeLocationObjectStorageResult::WithAgentArns
DescribeLocationObjectStorageResult & WithAgentArns(const Aws::Vector< Aws::String > &value)
Definition: DescribeLocationObjectStorageResult.h:261
Aws::DataSync::Model::DescribeLocationObjectStorageResult::GetServerPort
int GetServerPort() const
Definition: DescribeLocationObjectStorageResult.h:191
Aws::DataSync::Model::DescribeLocationObjectStorageResult::SetAccessKey
void SetAccessKey(const char *value)
Definition: DescribeLocationObjectStorageResult.h:159
Aws::DataSync::Model::DescribeLocationObjectStorageResult
Definition: DescribeLocationObjectStorageResult.h:36