AWS SDK for C++  1.9.103
AWS SDK for C++
ListVolumesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace StorageGateway
15 {
16 namespace Model
17 {
18 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListVolumes"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
42 
43  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
44 
45 
46  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
47 
48 
49  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
50 
51 
52  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
53 
54 
55  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
56 
57 
58  inline ListVolumesRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
59 
60 
61  inline ListVolumesRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
62 
63 
64  inline ListVolumesRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
65 
66 
72  inline const Aws::String& GetMarker() const{ return m_marker; }
73 
79  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
80 
86  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
87 
93  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
94 
100  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
101 
107  inline ListVolumesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
108 
114  inline ListVolumesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
115 
121  inline ListVolumesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
122 
123 
128  inline int GetLimit() const{ return m_limit; }
129 
134  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
135 
140  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
141 
146  inline ListVolumesRequest& WithLimit(int value) { SetLimit(value); return *this;}
147 
148  private:
149 
150  Aws::String m_gatewayARN;
151  bool m_gatewayARNHasBeenSet;
152 
153  Aws::String m_marker;
154  bool m_markerHasBeenSet;
155 
156  int m_limit;
157  bool m_limitHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace StorageGateway
162 } // namespace Aws
Aws::StorageGateway::Model::ListVolumesRequest::WithMarker
ListVolumesRequest & WithMarker(Aws::String &&value)
Definition: ListVolumesRequest.h:114
Aws::StorageGateway::Model::ListVolumesRequest::WithLimit
ListVolumesRequest & WithLimit(int value)
Definition: ListVolumesRequest.h:146
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::ListVolumesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::ListVolumesRequest::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: ListVolumesRequest.h:52
Aws::StorageGateway::Model::ListVolumesRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: ListVolumesRequest.h:134
Aws::StorageGateway::Model::ListVolumesRequest::WithGatewayARN
ListVolumesRequest & WithGatewayARN(const Aws::String &value)
Definition: ListVolumesRequest.h:58
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::ListVolumesRequest::WithMarker
ListVolumesRequest & WithMarker(const Aws::String &value)
Definition: ListVolumesRequest.h:107
Aws::StorageGateway::Model::ListVolumesRequest::GatewayARNHasBeenSet
bool GatewayARNHasBeenSet() const
Definition: ListVolumesRequest.h:46
Aws::StorageGateway::Model::ListVolumesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListVolumesRequest.h:35
AWSString.h
Aws::StorageGateway::Model::ListVolumesRequest::WithGatewayARN
ListVolumesRequest & WithGatewayARN(Aws::String &&value)
Definition: ListVolumesRequest.h:61
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::ListVolumesRequest::GetLimit
int GetLimit() const
Definition: ListVolumesRequest.h:128
Aws::StorageGateway::Model::ListVolumesRequest::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: ListVolumesRequest.h:49
Aws::StorageGateway::Model::ListVolumesRequest::WithMarker
ListVolumesRequest & WithMarker(const char *value)
Definition: ListVolumesRequest.h:121
Aws::StorageGateway::Model::ListVolumesRequest::ListVolumesRequest
ListVolumesRequest()
Aws::StorageGateway::Model::ListVolumesRequest::WithGatewayARN
ListVolumesRequest & WithGatewayARN(const char *value)
Definition: ListVolumesRequest.h:64
Aws::StorageGateway::Model::ListVolumesRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListVolumesRequest.h:79
Aws::StorageGateway::Model::ListVolumesRequest::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: ListVolumesRequest.h:55
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::ListVolumesRequest::SetLimit
void SetLimit(int value)
Definition: ListVolumesRequest.h:140
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::ListVolumesRequest::SetMarker
void SetMarker(const char *value)
Definition: ListVolumesRequest.h:100
Aws::StorageGateway::Model::ListVolumesRequest
Definition: ListVolumesRequest.h:27
Aws::StorageGateway::Model::ListVolumesRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListVolumesRequest.h:93
Aws::StorageGateway::Model::ListVolumesRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListVolumesRequest.h:86
Aws::StorageGateway::Model::ListVolumesRequest::GetMarker
const Aws::String & GetMarker() const
Definition: ListVolumesRequest.h:72
Aws::StorageGateway::Model::ListVolumesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::ListVolumesRequest::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: ListVolumesRequest.h:43