AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeTapeArchivesResult.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 {
41  {
42  public:
46 
54  inline const Aws::Vector<TapeArchive>& GetTapeArchives() const{ return m_tapeArchives; }
55 
63  inline void SetTapeArchives(const Aws::Vector<TapeArchive>& value) { m_tapeArchives = value; }
64 
72  inline void SetTapeArchives(Aws::Vector<TapeArchive>&& value) { m_tapeArchives = value; }
73 
81  inline DescribeTapeArchivesResult& WithTapeArchives(const Aws::Vector<TapeArchive>& value) { SetTapeArchives(value); return *this;}
82 
90  inline DescribeTapeArchivesResult& WithTapeArchives(Aws::Vector<TapeArchive>&& value) { SetTapeArchives(value); return *this;}
91 
99  inline DescribeTapeArchivesResult& AddTapeArchives(const TapeArchive& value) { m_tapeArchives.push_back(value); return *this; }
100 
108  inline DescribeTapeArchivesResult& AddTapeArchives(TapeArchive&& value) { m_tapeArchives.push_back(value); return *this; }
109 
117  inline const Aws::String& GetMarker() const{ return m_marker; }
118 
126  inline void SetMarker(const Aws::String& value) { m_marker = value; }
127 
135  inline void SetMarker(Aws::String&& value) { m_marker = value; }
136 
144  inline void SetMarker(const char* value) { m_marker.assign(value); }
145 
153  inline DescribeTapeArchivesResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
154 
162  inline DescribeTapeArchivesResult& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
163 
171  inline DescribeTapeArchivesResult& WithMarker(const char* value) { SetMarker(value); return *this;}
172 
173  private:
174  Aws::Vector<TapeArchive> m_tapeArchives;
175  Aws::String m_marker;
176  };
177 
178 } // namespace Model
179 } // namespace StorageGateway
180 } // namespace Aws
DescribeTapeArchivesResult & AddTapeArchives(TapeArchive &&value)
void SetTapeArchives(Aws::Vector< TapeArchive > &&value)
void SetTapeArchives(const Aws::Vector< TapeArchive > &value)
DescribeTapeArchivesResult & WithMarker(const Aws::String &value)
DescribeTapeArchivesResult & WithMarker(const char *value)
DescribeTapeArchivesResult & WithTapeArchives(const Aws::Vector< TapeArchive > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeTapeArchivesResult & WithTapeArchives(Aws::Vector< TapeArchive > &&value)
DescribeTapeArchivesResult & WithMarker(Aws::String &&value)
const Aws::Vector< TapeArchive > & GetTapeArchives() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeTapeArchivesResult & AddTapeArchives(const TapeArchive &value)
#define AWS_STORAGEGATEWAY_API
JSON (JavaScript Object Notation).