AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeTapesRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace StorageGateway
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
40  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
41 
42 
43  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
44 
45 
46  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
47 
48 
49  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
50 
51 
52  inline DescribeTapesRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
53 
54 
55  inline DescribeTapesRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(value); return *this;}
56 
57 
58  inline DescribeTapesRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
59 
66  inline const Aws::Vector<Aws::String>& GetTapeARNs() const{ return m_tapeARNs; }
67 
74  inline void SetTapeARNs(const Aws::Vector<Aws::String>& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs = value; }
75 
82  inline void SetTapeARNs(Aws::Vector<Aws::String>&& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs = value; }
83 
90  inline DescribeTapesRequest& WithTapeARNs(const Aws::Vector<Aws::String>& value) { SetTapeARNs(value); return *this;}
91 
98  inline DescribeTapesRequest& WithTapeARNs(Aws::Vector<Aws::String>&& value) { SetTapeARNs(value); return *this;}
99 
106  inline DescribeTapesRequest& AddTapeARNs(const Aws::String& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs.push_back(value); return *this; }
107 
114  inline DescribeTapesRequest& AddTapeARNs(Aws::String&& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs.push_back(value); return *this; }
115 
122  inline DescribeTapesRequest& AddTapeARNs(const char* value) { m_tapeARNsHasBeenSet = true; m_tapeARNs.push_back(value); return *this; }
123 
129  inline const Aws::String& GetMarker() const{ return m_marker; }
130 
136  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
137 
143  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
144 
150  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
151 
157  inline DescribeTapesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
158 
164  inline DescribeTapesRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
165 
171  inline DescribeTapesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
172 
178  inline int GetLimit() const{ return m_limit; }
179 
185  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
186 
192  inline DescribeTapesRequest& WithLimit(int value) { SetLimit(value); return *this;}
193 
194  private:
195  Aws::String m_gatewayARN;
196  bool m_gatewayARNHasBeenSet;
197  Aws::Vector<Aws::String> m_tapeARNs;
198  bool m_tapeARNsHasBeenSet;
199  Aws::String m_marker;
200  bool m_markerHasBeenSet;
201  int m_limit;
202  bool m_limitHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace StorageGateway
207 } // namespace Aws
const Aws::Vector< Aws::String > & GetTapeARNs() const
DescribeTapesRequest & WithTapeARNs(const Aws::Vector< Aws::String > &value)
DescribeTapesRequest & WithMarker(const char *value)
DescribeTapesRequest & AddTapeARNs(const Aws::String &value)
DescribeTapesRequest & WithMarker(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DescribeTapesRequest & WithGatewayARN(Aws::String &&value)
void SetTapeARNs(Aws::Vector< Aws::String > &&value)
DescribeTapesRequest & AddTapeARNs(Aws::String &&value)
void SetTapeARNs(const Aws::Vector< Aws::String > &value)
DescribeTapesRequest & WithGatewayARN(const char *value)
DescribeTapesRequest & WithTapeARNs(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeTapesRequest & AddTapeARNs(const char *value)
DescribeTapesRequest & WithMarker(const Aws::String &value)
DescribeTapesRequest & WithGatewayARN(const Aws::String &value)
#define AWS_STORAGEGATEWAY_API
JSON (JavaScript Object Notation).