AWS SDK for C++  0.14.3
AWS SDK for C++
ListTapesResult.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 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace StorageGateway
34 {
35 namespace Model
36 {
43  {
44  public:
48 
49 
50  inline const Aws::Vector<TapeInfo>& GetTapeInfos() const{ return m_tapeInfos; }
51 
52 
53  inline void SetTapeInfos(const Aws::Vector<TapeInfo>& value) { m_tapeInfos = value; }
54 
55 
56  inline void SetTapeInfos(Aws::Vector<TapeInfo>&& value) { m_tapeInfos = value; }
57 
58 
59  inline ListTapesResult& WithTapeInfos(const Aws::Vector<TapeInfo>& value) { SetTapeInfos(value); return *this;}
60 
61 
62  inline ListTapesResult& WithTapeInfos(Aws::Vector<TapeInfo>&& value) { SetTapeInfos(value); return *this;}
63 
64 
65  inline ListTapesResult& AddTapeInfos(const TapeInfo& value) { m_tapeInfos.push_back(value); return *this; }
66 
67 
68  inline ListTapesResult& AddTapeInfos(TapeInfo&& value) { m_tapeInfos.push_back(value); return *this; }
69 
76  inline const Aws::String& GetMarker() const{ return m_marker; }
77 
84  inline void SetMarker(const Aws::String& value) { m_marker = value; }
85 
92  inline void SetMarker(Aws::String&& value) { m_marker = value; }
93 
100  inline void SetMarker(const char* value) { m_marker.assign(value); }
101 
108  inline ListTapesResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
109 
116  inline ListTapesResult& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
117 
124  inline ListTapesResult& WithMarker(const char* value) { SetMarker(value); return *this;}
125 
126  private:
127  Aws::Vector<TapeInfo> m_tapeInfos;
128  Aws::String m_marker;
129  };
130 
131 } // namespace Model
132 } // namespace StorageGateway
133 } // namespace Aws
void SetTapeInfos(const Aws::Vector< TapeInfo > &value)
ListTapesResult & WithTapeInfos(Aws::Vector< TapeInfo > &&value)
ListTapesResult & WithMarker(const Aws::String &value)
ListTapesResult & WithMarker(const char *value)
ListTapesResult & AddTapeInfos(TapeInfo &&value)
void SetMarker(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ListTapesResult & WithTapeInfos(const Aws::Vector< TapeInfo > &value)
const Aws::Vector< TapeInfo > & GetTapeInfos() const
void SetTapeInfos(Aws::Vector< TapeInfo > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_STORAGEGATEWAY_API
const Aws::String & GetMarker() const
JSON (JavaScript Object Notation).
ListTapesResult & AddTapeInfos(const TapeInfo &value)
ListTapesResult & WithMarker(Aws::String &&value)