AWS SDK for C++  1.9.108
AWS SDK for C++
ListGatewaysResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace StorageGateway
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<GatewayInfo>& GetGateways() const{ return m_gateways; }
41 
45  inline void SetGateways(const Aws::Vector<GatewayInfo>& value) { m_gateways = value; }
46 
50  inline void SetGateways(Aws::Vector<GatewayInfo>&& value) { m_gateways = std::move(value); }
51 
55  inline ListGatewaysResult& WithGateways(const Aws::Vector<GatewayInfo>& value) { SetGateways(value); return *this;}
56 
60  inline ListGatewaysResult& WithGateways(Aws::Vector<GatewayInfo>&& value) { SetGateways(std::move(value)); return *this;}
61 
65  inline ListGatewaysResult& AddGateways(const GatewayInfo& value) { m_gateways.push_back(value); return *this; }
66 
70  inline ListGatewaysResult& AddGateways(GatewayInfo&& value) { m_gateways.push_back(std::move(value)); return *this; }
71 
72 
78  inline const Aws::String& GetMarker() const{ return m_marker; }
79 
85  inline void SetMarker(const Aws::String& value) { m_marker = value; }
86 
92  inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
93 
99  inline void SetMarker(const char* value) { m_marker.assign(value); }
100 
106  inline ListGatewaysResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
107 
113  inline ListGatewaysResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
114 
120  inline ListGatewaysResult& WithMarker(const char* value) { SetMarker(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<GatewayInfo> m_gateways;
125 
126  Aws::String m_marker;
127  };
128 
129 } // namespace Model
130 } // namespace StorageGateway
131 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::StorageGateway::Model::ListGatewaysResult::GetGateways
const Aws::Vector< GatewayInfo > & GetGateways() const
Definition: ListGatewaysResult.h:40
Aws::StorageGateway::Model::ListGatewaysResult::WithGateways
ListGatewaysResult & WithGateways(Aws::Vector< GatewayInfo > &&value)
Definition: ListGatewaysResult.h:60
Aws::StorageGateway::Model::ListGatewaysResult::AddGateways
ListGatewaysResult & AddGateways(GatewayInfo &&value)
Definition: ListGatewaysResult.h:70
Aws::StorageGateway::Model::ListGatewaysResult::ListGatewaysResult
ListGatewaysResult()
Aws::StorageGateway::Model::ListGatewaysResult::SetGateways
void SetGateways(Aws::Vector< GatewayInfo > &&value)
Definition: ListGatewaysResult.h:50
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::StorageGateway::Model::GatewayInfo
Definition: GatewayInfo.h:32
Aws::StorageGateway::Model::ListGatewaysResult::WithMarker
ListGatewaysResult & WithMarker(const Aws::String &value)
Definition: ListGatewaysResult.h:106
Aws::StorageGateway::Model::ListGatewaysResult::SetMarker
void SetMarker(const char *value)
Definition: ListGatewaysResult.h:99
GatewayInfo.h
Aws::StorageGateway::Model::ListGatewaysResult::WithMarker
ListGatewaysResult & WithMarker(const char *value)
Definition: ListGatewaysResult.h:120
Aws::StorageGateway::Model::ListGatewaysResult::WithGateways
ListGatewaysResult & WithGateways(const Aws::Vector< GatewayInfo > &value)
Definition: ListGatewaysResult.h:55
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::ListGatewaysResult::GetMarker
const Aws::String & GetMarker() const
Definition: ListGatewaysResult.h:78
Aws::StorageGateway::Model::ListGatewaysResult::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListGatewaysResult.h:85
Aws::StorageGateway::Model::ListGatewaysResult
Definition: ListGatewaysResult.h:30
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::ListGatewaysResult::WithMarker
ListGatewaysResult & WithMarker(Aws::String &&value)
Definition: ListGatewaysResult.h:113
Aws::StorageGateway::Model::ListGatewaysResult::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListGatewaysResult.h:92
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::ListGatewaysResult::ListGatewaysResult
ListGatewaysResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::StorageGateway::Model::ListGatewaysResult::SetGateways
void SetGateways(const Aws::Vector< GatewayInfo > &value)
Definition: ListGatewaysResult.h:45
Aws::StorageGateway::Model::ListGatewaysResult::AddGateways
ListGatewaysResult & AddGateways(const GatewayInfo &value)
Definition: ListGatewaysResult.h:65
Aws::StorageGateway::Model::ListGatewaysResult::operator=
ListGatewaysResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)