AWS SDK for C++  1.9.102
AWS SDK for C++
ListTapesRequest.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 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "ListTapes"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
44 
45  inline const Aws::Vector<Aws::String>& GetTapeARNs() const{ return m_tapeARNs; }
46 
47 
48  inline bool TapeARNsHasBeenSet() const { return m_tapeARNsHasBeenSet; }
49 
50 
51  inline void SetTapeARNs(const Aws::Vector<Aws::String>& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs = value; }
52 
53 
54  inline void SetTapeARNs(Aws::Vector<Aws::String>&& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs = std::move(value); }
55 
56 
57  inline ListTapesRequest& WithTapeARNs(const Aws::Vector<Aws::String>& value) { SetTapeARNs(value); return *this;}
58 
59 
60  inline ListTapesRequest& WithTapeARNs(Aws::Vector<Aws::String>&& value) { SetTapeARNs(std::move(value)); return *this;}
61 
62 
63  inline ListTapesRequest& AddTapeARNs(const Aws::String& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs.push_back(value); return *this; }
64 
65 
66  inline ListTapesRequest& AddTapeARNs(Aws::String&& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs.push_back(std::move(value)); return *this; }
67 
68 
69  inline ListTapesRequest& AddTapeARNs(const char* value) { m_tapeARNsHasBeenSet = true; m_tapeARNs.push_back(value); return *this; }
70 
71 
76  inline const Aws::String& GetMarker() const{ return m_marker; }
77 
82  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
83 
88  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
89 
94  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
95 
100  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
101 
106  inline ListTapesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
107 
112  inline ListTapesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
113 
118  inline ListTapesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
119 
120 
124  inline int GetLimit() const{ return m_limit; }
125 
129  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
130 
134  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
135 
139  inline ListTapesRequest& WithLimit(int value) { SetLimit(value); return *this;}
140 
141  private:
142 
143  Aws::Vector<Aws::String> m_tapeARNs;
144  bool m_tapeARNsHasBeenSet;
145 
146  Aws::String m_marker;
147  bool m_markerHasBeenSet;
148 
149  int m_limit;
150  bool m_limitHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace StorageGateway
155 } // namespace Aws
Aws::StorageGateway::Model::ListTapesRequest::WithMarker
ListTapesRequest & WithMarker(const char *value)
Definition: ListTapesRequest.h:118
Aws::StorageGateway::Model::ListTapesRequest::SetLimit
void SetLimit(int value)
Definition: ListTapesRequest.h:134
Aws::StorageGateway::Model::ListTapesRequest::WithMarker
ListTapesRequest & WithMarker(Aws::String &&value)
Definition: ListTapesRequest.h:112
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::ListTapesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::ListTapesRequest::AddTapeARNs
ListTapesRequest & AddTapeARNs(const Aws::String &value)
Definition: ListTapesRequest.h:63
Aws::StorageGateway::Model::ListTapesRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: ListTapesRequest.h:129
Aws::StorageGateway::Model::ListTapesRequest::WithMarker
ListTapesRequest & WithMarker(const Aws::String &value)
Definition: ListTapesRequest.h:106
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::ListTapesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::ListTapesRequest::WithTapeARNs
ListTapesRequest & WithTapeARNs(Aws::Vector< Aws::String > &&value)
Definition: ListTapesRequest.h:60
Aws::StorageGateway::Model::ListTapesRequest::AddTapeARNs
ListTapesRequest & AddTapeARNs(Aws::String &&value)
Definition: ListTapesRequest.h:66
AWSVector.h
Aws::StorageGateway::Model::ListTapesRequest::GetMarker
const Aws::String & GetMarker() const
Definition: ListTapesRequest.h:76
Aws::StorageGateway::Model::ListTapesRequest::GetTapeARNs
const Aws::Vector< Aws::String > & GetTapeARNs() const
Definition: ListTapesRequest.h:45
Aws::StorageGateway::Model::ListTapesRequest::SetTapeARNs
void SetTapeARNs(Aws::Vector< Aws::String > &&value)
Definition: ListTapesRequest.h:54
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::ListTapesRequest::SetTapeARNs
void SetTapeARNs(const Aws::Vector< Aws::String > &value)
Definition: ListTapesRequest.h:51
Aws::StorageGateway::Model::ListTapesRequest::AddTapeARNs
ListTapesRequest & AddTapeARNs(const char *value)
Definition: ListTapesRequest.h:69
Aws::StorageGateway::Model::ListTapesRequest::GetLimit
int GetLimit() const
Definition: ListTapesRequest.h:124
AWSString.h
Aws::StorageGateway::Model::ListTapesRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListTapesRequest.h:94
Aws::StorageGateway::Model::ListTapesRequest::TapeARNsHasBeenSet
bool TapeARNsHasBeenSet() const
Definition: ListTapesRequest.h:48
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::ListTapesRequest::ListTapesRequest
ListTapesRequest()
Aws::StorageGateway::Model::ListTapesRequest::WithTapeARNs
ListTapesRequest & WithTapeARNs(const Aws::Vector< Aws::String > &value)
Definition: ListTapesRequest.h:57
Aws::StorageGateway::Model::ListTapesRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListTapesRequest.h:82
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::ListTapesRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListTapesRequest.h:88
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::ListTapesRequest::SetMarker
void SetMarker(const char *value)
Definition: ListTapesRequest.h:100
Aws::StorageGateway::Model::ListTapesRequest::WithLimit
ListTapesRequest & WithLimit(int value)
Definition: ListTapesRequest.h:139
Aws::StorageGateway::Model::ListTapesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTapesRequest.h:37
Aws::StorageGateway::Model::ListTapesRequest
Definition: ListTapesRequest.h:29