AWS SDK for C++  1.9.102
AWS SDK for C++
ListTapePoolsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace StorageGateway
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ListTapePools"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::Vector<Aws::String>& GetPoolARNs() const{ return m_poolARNs; }
44 
50  inline bool PoolARNsHasBeenSet() const { return m_poolARNsHasBeenSet; }
51 
57  inline void SetPoolARNs(const Aws::Vector<Aws::String>& value) { m_poolARNsHasBeenSet = true; m_poolARNs = value; }
58 
64  inline void SetPoolARNs(Aws::Vector<Aws::String>&& value) { m_poolARNsHasBeenSet = true; m_poolARNs = std::move(value); }
65 
71  inline ListTapePoolsRequest& WithPoolARNs(const Aws::Vector<Aws::String>& value) { SetPoolARNs(value); return *this;}
72 
78  inline ListTapePoolsRequest& WithPoolARNs(Aws::Vector<Aws::String>&& value) { SetPoolARNs(std::move(value)); return *this;}
79 
85  inline ListTapePoolsRequest& AddPoolARNs(const Aws::String& value) { m_poolARNsHasBeenSet = true; m_poolARNs.push_back(value); return *this; }
86 
92  inline ListTapePoolsRequest& AddPoolARNs(Aws::String&& value) { m_poolARNsHasBeenSet = true; m_poolARNs.push_back(std::move(value)); return *this; }
93 
99  inline ListTapePoolsRequest& AddPoolARNs(const char* value) { m_poolARNsHasBeenSet = true; m_poolARNs.push_back(value); return *this; }
100 
101 
106  inline const Aws::String& GetMarker() const{ return m_marker; }
107 
112  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
113 
118  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
119 
124  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
125 
130  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
131 
136  inline ListTapePoolsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
137 
142  inline ListTapePoolsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
143 
148  inline ListTapePoolsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
149 
150 
155  inline int GetLimit() const{ return m_limit; }
156 
161  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
162 
167  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
168 
173  inline ListTapePoolsRequest& WithLimit(int value) { SetLimit(value); return *this;}
174 
175  private:
176 
177  Aws::Vector<Aws::String> m_poolARNs;
178  bool m_poolARNsHasBeenSet;
179 
180  Aws::String m_marker;
181  bool m_markerHasBeenSet;
182 
183  int m_limit;
184  bool m_limitHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace StorageGateway
189 } // namespace Aws
Aws::StorageGateway::Model::ListTapePoolsRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListTapePoolsRequest.h:112
Aws::StorageGateway::Model::ListTapePoolsRequest::WithPoolARNs
ListTapePoolsRequest & WithPoolARNs(Aws::Vector< Aws::String > &&value)
Definition: ListTapePoolsRequest.h:78
Aws::StorageGateway::Model::ListTapePoolsRequest::WithPoolARNs
ListTapePoolsRequest & WithPoolARNs(const Aws::Vector< Aws::String > &value)
Definition: ListTapePoolsRequest.h:71
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::ListTapePoolsRequest::GetLimit
int GetLimit() const
Definition: ListTapePoolsRequest.h:155
Aws::StorageGateway::Model::ListTapePoolsRequest::ListTapePoolsRequest
ListTapePoolsRequest()
Aws::StorageGateway::Model::ListTapePoolsRequest::SetPoolARNs
void SetPoolARNs(Aws::Vector< Aws::String > &&value)
Definition: ListTapePoolsRequest.h:64
Aws::StorageGateway::Model::ListTapePoolsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::ListTapePoolsRequest::WithMarker
ListTapePoolsRequest & WithMarker(const Aws::String &value)
Definition: ListTapePoolsRequest.h:136
Aws::StorageGateway::Model::ListTapePoolsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTapePoolsRequest.h:31
Aws::StorageGateway::Model::ListTapePoolsRequest::WithMarker
ListTapePoolsRequest & WithMarker(Aws::String &&value)
Definition: ListTapePoolsRequest.h:142
Aws::StorageGateway::Model::ListTapePoolsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::ListTapePoolsRequest::GetPoolARNs
const Aws::Vector< Aws::String > & GetPoolARNs() const
Definition: ListTapePoolsRequest.h:43
Aws::StorageGateway::Model::ListTapePoolsRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: ListTapePoolsRequest.h:161
AWSVector.h
Aws::StorageGateway::Model::ListTapePoolsRequest::SetMarker
void SetMarker(const char *value)
Definition: ListTapePoolsRequest.h:130
Aws::StorageGateway::Model::ListTapePoolsRequest::WithLimit
ListTapePoolsRequest & WithLimit(int value)
Definition: ListTapePoolsRequest.h:173
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::ListTapePoolsRequest::WithMarker
ListTapePoolsRequest & WithMarker(const char *value)
Definition: ListTapePoolsRequest.h:148
Aws::StorageGateway::Model::ListTapePoolsRequest::SetPoolARNs
void SetPoolARNs(const Aws::Vector< Aws::String > &value)
Definition: ListTapePoolsRequest.h:57
Aws::StorageGateway::Model::ListTapePoolsRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListTapePoolsRequest.h:118
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::ListTapePoolsRequest::PoolARNsHasBeenSet
bool PoolARNsHasBeenSet() const
Definition: ListTapePoolsRequest.h:50
Aws::StorageGateway::Model::ListTapePoolsRequest::GetMarker
const Aws::String & GetMarker() const
Definition: ListTapePoolsRequest.h:106
StorageGatewayRequest.h
Aws::StorageGateway::Model::ListTapePoolsRequest
Definition: ListTapePoolsRequest.h:23
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::ListTapePoolsRequest::AddPoolARNs
ListTapePoolsRequest & AddPoolARNs(Aws::String &&value)
Definition: ListTapePoolsRequest.h:92
Aws::StorageGateway::Model::ListTapePoolsRequest::AddPoolARNs
ListTapePoolsRequest & AddPoolARNs(const Aws::String &value)
Definition: ListTapePoolsRequest.h:85
Aws::StorageGateway::Model::ListTapePoolsRequest::AddPoolARNs
ListTapePoolsRequest & AddPoolARNs(const char *value)
Definition: ListTapePoolsRequest.h:99
Aws::StorageGateway::Model::ListTapePoolsRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListTapePoolsRequest.h:124
Aws::StorageGateway::Model::ListTapePoolsRequest::SetLimit
void SetLimit(int value)
Definition: ListTapePoolsRequest.h:167