AWS SDK for C++  0.12.9
AWS SDK for C++
ListTapesRequest.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 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
42 
43  inline const Aws::Vector<Aws::String>& GetTapeARNs() const{ return m_tapeARNs; }
44 
45 
46  inline void SetTapeARNs(const Aws::Vector<Aws::String>& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs = value; }
47 
48 
49  inline void SetTapeARNs(Aws::Vector<Aws::String>&& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs = value; }
50 
51 
52  inline ListTapesRequest& WithTapeARNs(const Aws::Vector<Aws::String>& value) { SetTapeARNs(value); return *this;}
53 
54 
55  inline ListTapesRequest& WithTapeARNs(Aws::Vector<Aws::String>&& value) { SetTapeARNs(value); return *this;}
56 
57 
58  inline ListTapesRequest& AddTapeARNs(const Aws::String& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs.push_back(value); return *this; }
59 
60 
61  inline ListTapesRequest& AddTapeARNs(Aws::String&& value) { m_tapeARNsHasBeenSet = true; m_tapeARNs.push_back(value); return *this; }
62 
63 
64  inline ListTapesRequest& AddTapeARNs(const char* value) { m_tapeARNsHasBeenSet = true; m_tapeARNs.push_back(value); return *this; }
65 
70  inline const Aws::String& GetMarker() const{ return m_marker; }
71 
76  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
77 
82  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
83 
88  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
89 
94  inline ListTapesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
95 
100  inline ListTapesRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
101 
106  inline ListTapesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
107 
111  inline long GetLimit() const{ return m_limit; }
112 
116  inline void SetLimit(long value) { m_limitHasBeenSet = true; m_limit = value; }
117 
121  inline ListTapesRequest& WithLimit(long value) { SetLimit(value); return *this;}
122 
123  private:
124  Aws::Vector<Aws::String> m_tapeARNs;
125  bool m_tapeARNsHasBeenSet;
126  Aws::String m_marker;
127  bool m_markerHasBeenSet;
128  long m_limit;
129  bool m_limitHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace StorageGateway
134 } // namespace Aws
ListTapesRequest & WithMarker(const char *value)
const Aws::Vector< Aws::String > & GetTapeARNs() const
ListTapesRequest & AddTapeARNs(Aws::String &&value)
ListTapesRequest & AddTapeARNs(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetTapeARNs(const Aws::Vector< Aws::String > &value)
ListTapesRequest & AddTapeARNs(const Aws::String &value)
ListTapesRequest & WithTapeARNs(const Aws::Vector< Aws::String > &value)
ListTapesRequest & WithTapeARNs(Aws::Vector< Aws::String > &&value)
void SetMarker(const Aws::String &value)
void SetTapeARNs(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListTapesRequest & WithMarker(Aws::String &&value)
ListTapesRequest & WithMarker(const Aws::String &value)
#define AWS_STORAGEGATEWAY_API
ListTapesRequest & WithLimit(long value)
JSON (JavaScript Object Notation).