AWS SDK for C++  1.9.70
AWS SDK for C++
DescribeVolumesResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <aws/ec2/model/Volume.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::Vector<Volume>& GetVolumes() const{ return m_volumes; }
42 
46  inline void SetVolumes(const Aws::Vector<Volume>& value) { m_volumes = value; }
47 
51  inline void SetVolumes(Aws::Vector<Volume>&& value) { m_volumes = std::move(value); }
52 
56  inline DescribeVolumesResponse& WithVolumes(const Aws::Vector<Volume>& value) { SetVolumes(value); return *this;}
57 
61  inline DescribeVolumesResponse& WithVolumes(Aws::Vector<Volume>&& value) { SetVolumes(std::move(value)); return *this;}
62 
66  inline DescribeVolumesResponse& AddVolumes(const Volume& value) { m_volumes.push_back(value); return *this; }
67 
71  inline DescribeVolumesResponse& AddVolumes(Volume&& value) { m_volumes.push_back(std::move(value)); return *this; }
72 
73 
81  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 
90  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
91 
99  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
100 
108  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
109 
117  inline DescribeVolumesResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
118 
126  inline DescribeVolumesResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
127 
135  inline DescribeVolumesResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
136 
137 
138 
139  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
140 
141 
142  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
143 
144 
145  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
146 
147 
148  inline DescribeVolumesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
149 
150 
151  inline DescribeVolumesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
152 
153  private:
154 
155  Aws::Vector<Volume> m_volumes;
156 
157  Aws::String m_nextToken;
158 
159  ResponseMetadata m_responseMetadata;
160  };
161 
162 } // namespace Model
163 } // namespace EC2
164 } // namespace Aws
Aws::EC2::Model::DescribeVolumesResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeVolumesResponse.h:90
Aws::EC2::Model::DescribeVolumesResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeVolumesResponse.h:108
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::Volume
Definition: Volume.h:39
Aws::EC2::Model::DescribeVolumesResponse::GetVolumes
const Aws::Vector< Volume > & GetVolumes() const
Definition: DescribeVolumesResponse.h:41
Aws::EC2::Model::DescribeVolumesResponse::WithVolumes
DescribeVolumesResponse & WithVolumes(const Aws::Vector< Volume > &value)
Definition: DescribeVolumesResponse.h:56
Aws::EC2::Model::DescribeVolumesResponse::DescribeVolumesResponse
DescribeVolumesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::DescribeVolumesResponse::operator=
DescribeVolumesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DescribeVolumesResponse::DescribeVolumesResponse
DescribeVolumesResponse()
Volume.h
Aws::EC2::Model::DescribeVolumesResponse::WithNextToken
DescribeVolumesResponse & WithNextToken(Aws::String &&value)
Definition: DescribeVolumesResponse.h:126
Aws::EC2::Model::DescribeVolumesResponse
Definition: DescribeVolumesResponse.h:31
Aws::EC2::Model::DescribeVolumesResponse::SetVolumes
void SetVolumes(Aws::Vector< Volume > &&value)
Definition: DescribeVolumesResponse.h:51
Aws::EC2::Model::DescribeVolumesResponse::AddVolumes
DescribeVolumesResponse & AddVolumes(const Volume &value)
Definition: DescribeVolumesResponse.h:66
Aws::EC2::Model::DescribeVolumesResponse::WithNextToken
DescribeVolumesResponse & WithNextToken(const Aws::String &value)
Definition: DescribeVolumesResponse.h:117
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::DescribeVolumesResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeVolumesResponse.h:81
Aws::EC2::Model::DescribeVolumesResponse::WithResponseMetadata
DescribeVolumesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeVolumesResponse.h:148
Aws::EC2::Model::DescribeVolumesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeVolumesResponse.h:142
Aws::EC2::Model::DescribeVolumesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeVolumesResponse.h:145
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeVolumesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeVolumesResponse.h:139
Aws::EC2::Model::DescribeVolumesResponse::WithVolumes
DescribeVolumesResponse & WithVolumes(Aws::Vector< Volume > &&value)
Definition: DescribeVolumesResponse.h:61
Aws::EC2::Model::DescribeVolumesResponse::AddVolumes
DescribeVolumesResponse & AddVolumes(Volume &&value)
Definition: DescribeVolumesResponse.h:71
Aws::EC2::Model::DescribeVolumesResponse::WithResponseMetadata
DescribeVolumesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeVolumesResponse.h:151
EC2_EXPORTS.h
Aws::EC2::Model::DescribeVolumesResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeVolumesResponse.h:99
Aws::EC2::Model::DescribeVolumesResponse::WithNextToken
DescribeVolumesResponse & WithNextToken(const char *value)
Definition: DescribeVolumesResponse.h:135
Aws::EC2::Model::DescribeVolumesResponse::SetVolumes
void SetVolumes(const Aws::Vector< Volume > &value)
Definition: DescribeVolumesResponse.h:46