AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeVolumesResponse.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
16 #include <aws/ec2/EC2_EXPORTS.h>
20 #include <aws/ec2/model/Volume.h>
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlDocument;
32 } // namespace Xml
33 } // namespace Utils
34 namespace EC2
35 {
36 namespace Model
37 {
42  {
43  public:
47 
51  inline const Aws::Vector<Volume>& GetVolumes() const{ return m_volumes; }
52 
56  inline void SetVolumes(const Aws::Vector<Volume>& value) { m_volumes = value; }
57 
61  inline void SetVolumes(Aws::Vector<Volume>&& value) { m_volumes = value; }
62 
66  inline DescribeVolumesResponse& WithVolumes(const Aws::Vector<Volume>& value) { SetVolumes(value); return *this;}
67 
71  inline DescribeVolumesResponse& WithVolumes(Aws::Vector<Volume>&& value) { SetVolumes(value); return *this;}
72 
76  inline DescribeVolumesResponse& AddVolumes(const Volume& value) { m_volumes.push_back(value); return *this; }
77 
81  inline DescribeVolumesResponse& AddVolumes(Volume&& value) { m_volumes.push_back(value); return *this; }
82 
90  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
91 
99  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
100 
108  inline void SetNextToken(Aws::String&& value) { m_nextToken = value; }
109 
117  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
118 
126  inline DescribeVolumesResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
127 
135  inline DescribeVolumesResponse& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
136 
144  inline DescribeVolumesResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
145 
146 
147  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
148 
149 
150  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
151 
152 
153  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
154 
155 
156  inline DescribeVolumesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
157 
158 
159  inline DescribeVolumesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
160 
161  private:
162  Aws::Vector<Volume> m_volumes;
163  Aws::String m_nextToken;
164  ResponseMetadata m_responseMetadata;
165  };
166 
167 } // namespace Model
168 } // namespace EC2
169 } // namespace Aws
void SetVolumes(const Aws::Vector< Volume > &value)
DescribeVolumesResponse & WithResponseMetadata(const ResponseMetadata &value)
void SetVolumes(Aws::Vector< Volume > &&value)
DescribeVolumesResponse & WithNextToken(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< Volume > & GetVolumes() const
DescribeVolumesResponse & WithNextToken(const char *value)
DescribeVolumesResponse & AddVolumes(const Volume &value)
DescribeVolumesResponse & WithResponseMetadata(ResponseMetadata &&value)
DescribeVolumesResponse & WithNextToken(Aws::String &&value)
const ResponseMetadata & GetResponseMetadata() const
void SetResponseMetadata(const ResponseMetadata &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetResponseMetadata(ResponseMetadata &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
DescribeVolumesResponse & WithVolumes(const Aws::Vector< Volume > &value)
DescribeVolumesResponse & AddVolumes(Volume &&value)
void SetNextToken(const Aws::String &value)
DescribeVolumesResponse & WithVolumes(Aws::Vector< Volume > &&value)
JSON (JavaScript Object Notation).