AWS SDK for C++  1.9.107
AWS SDK for C++
DescribeTapesRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DescribeTapes"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
41 
42  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
43 
44 
45  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
46 
47 
48  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
49 
50 
51  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
52 
53 
54  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
55 
56 
57  inline DescribeTapesRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
58 
59 
60  inline DescribeTapesRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
61 
62 
63  inline DescribeTapesRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
64 
65 
72  inline const Aws::Vector<Aws::String>& GetTapeARNs() const{ return m_tapeARNs; }
73 
80  inline bool TapeARNsHasBeenSet() const { return m_tapeARNsHasBeenSet; }
81 
88  inline void SetTapeARNs(const Aws::Vector<Aws::String>& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs = value; }
89 
96  inline void SetTapeARNs(Aws::Vector<Aws::String>&& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs = std::move(value); }
97 
104  inline DescribeTapesRequest& WithTapeARNs(const Aws::Vector<Aws::String>& value) { SetTapeARNs(value); return *this;}
105 
112  inline DescribeTapesRequest& WithTapeARNs(Aws::Vector<Aws::String>&& value) { SetTapeARNs(std::move(value)); return *this;}
113 
120  inline DescribeTapesRequest& AddTapeARNs(const Aws::String& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs.push_back(value); return *this; }
121 
128  inline DescribeTapesRequest& AddTapeARNs(Aws::String&& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs.push_back(std::move(value)); return *this; }
129 
136  inline DescribeTapesRequest& AddTapeARNs(const char* value) { m_tapeARNsHasBeenSet = true; m_tapeARNs.push_back(value); return *this; }
137 
138 
144  inline const Aws::String& GetMarker() const{ return m_marker; }
145 
151  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
152 
158  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
159 
165  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
166 
172  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
173 
179  inline DescribeTapesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
180 
186  inline DescribeTapesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
187 
193  inline DescribeTapesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
194 
195 
201  inline int GetLimit() const{ return m_limit; }
202 
208  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
209 
215  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
216 
222  inline DescribeTapesRequest& WithLimit(int value) { SetLimit(value); return *this;}
223 
224  private:
225 
226  Aws::String m_gatewayARN;
227  bool m_gatewayARNHasBeenSet;
228 
229  Aws::Vector<Aws::String> m_tapeARNs;
230  bool m_tapeARNsHasBeenSet;
231 
232  Aws::String m_marker;
233  bool m_markerHasBeenSet;
234 
235  int m_limit;
236  bool m_limitHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace StorageGateway
241 } // namespace Aws
Aws::StorageGateway::Model::DescribeTapesRequest::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: DescribeTapesRequest.h:48
Aws::StorageGateway::Model::DescribeTapesRequest::TapeARNsHasBeenSet
bool TapeARNsHasBeenSet() const
Definition: DescribeTapesRequest.h:80
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::DescribeTapesRequest::WithGatewayARN
DescribeTapesRequest & WithGatewayARN(const char *value)
Definition: DescribeTapesRequest.h:63
Aws::StorageGateway::Model::DescribeTapesRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: DescribeTapesRequest.h:158
Aws::StorageGateway::Model::DescribeTapesRequest::SetMarker
void SetMarker(const char *value)
Definition: DescribeTapesRequest.h:172
Aws::StorageGateway::Model::DescribeTapesRequest::GetLimit
int GetLimit() const
Definition: DescribeTapesRequest.h:201
Aws::StorageGateway::Model::DescribeTapesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTapesRequest.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::StorageGateway::Model::DescribeTapesRequest::WithTapeARNs
DescribeTapesRequest & WithTapeARNs(Aws::Vector< Aws::String > &&value)
Definition: DescribeTapesRequest.h:112
Aws::StorageGateway::Model::DescribeTapesRequest::GetTapeARNs
const Aws::Vector< Aws::String > & GetTapeARNs() const
Definition: DescribeTapesRequest.h:72
Aws::StorageGateway::Model::DescribeTapesRequest::WithMarker
DescribeTapesRequest & WithMarker(const char *value)
Definition: DescribeTapesRequest.h:193
Aws::StorageGateway::Model::DescribeTapesRequest
Definition: DescribeTapesRequest.h:26
Aws::StorageGateway::Model::DescribeTapesRequest::AddTapeARNs
DescribeTapesRequest & AddTapeARNs(Aws::String &&value)
Definition: DescribeTapesRequest.h:128
Aws::StorageGateway::Model::DescribeTapesRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: DescribeTapesRequest.h:165
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::DescribeTapesRequest::DescribeTapesRequest
DescribeTapesRequest()
Aws::StorageGateway::Model::DescribeTapesRequest::GatewayARNHasBeenSet
bool GatewayARNHasBeenSet() const
Definition: DescribeTapesRequest.h:45
Aws::StorageGateway::Model::DescribeTapesRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: DescribeTapesRequest.h:151
Aws::StorageGateway::Model::DescribeTapesRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::DescribeTapesRequest::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: DescribeTapesRequest.h:54
Aws::StorageGateway::Model::DescribeTapesRequest::AddTapeARNs
DescribeTapesRequest & AddTapeARNs(const char *value)
Definition: DescribeTapesRequest.h:136
Aws::StorageGateway::Model::DescribeTapesRequest::SetTapeARNs
void SetTapeARNs(Aws::Vector< Aws::String > &&value)
Definition: DescribeTapesRequest.h:96
Aws::StorageGateway::Model::DescribeTapesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::DescribeTapesRequest::WithGatewayARN
DescribeTapesRequest & WithGatewayARN(const Aws::String &value)
Definition: DescribeTapesRequest.h:57
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::DescribeTapesRequest::WithLimit
DescribeTapesRequest & WithLimit(int value)
Definition: DescribeTapesRequest.h:222
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::DescribeTapesRequest::WithMarker
DescribeTapesRequest & WithMarker(Aws::String &&value)
Definition: DescribeTapesRequest.h:186
Aws::StorageGateway::Model::DescribeTapesRequest::WithMarker
DescribeTapesRequest & WithMarker(const Aws::String &value)
Definition: DescribeTapesRequest.h:179
Aws::StorageGateway::Model::DescribeTapesRequest::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: DescribeTapesRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::DescribeTapesRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: DescribeTapesRequest.h:208
Aws::StorageGateway::Model::DescribeTapesRequest::AddTapeARNs
DescribeTapesRequest & AddTapeARNs(const Aws::String &value)
Definition: DescribeTapesRequest.h:120
Aws::StorageGateway::Model::DescribeTapesRequest::WithTapeARNs
DescribeTapesRequest & WithTapeARNs(const Aws::Vector< Aws::String > &value)
Definition: DescribeTapesRequest.h:104
Aws::StorageGateway::Model::DescribeTapesRequest::GetMarker
const Aws::String & GetMarker() const
Definition: DescribeTapesRequest.h:144
Aws::StorageGateway::Model::DescribeTapesRequest::SetLimit
void SetLimit(int value)
Definition: DescribeTapesRequest.h:215
Aws::StorageGateway::Model::DescribeTapesRequest::SetTapeARNs
void SetTapeARNs(const Aws::Vector< Aws::String > &value)
Definition: DescribeTapesRequest.h:88
Aws::StorageGateway::Model::DescribeTapesRequest::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: DescribeTapesRequest.h:42
Aws::StorageGateway::Model::DescribeTapesRequest::WithGatewayARN
DescribeTapesRequest & WithGatewayARN(Aws::String &&value)
Definition: DescribeTapesRequest.h:60