AWS SDK for C++  1.9.66
AWS SDK for C++
DescribeSnapshotsResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <aws/ec2/model/Snapshot.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<Snapshot>& GetSnapshots() const{ return m_snapshots; }
42 
46  inline void SetSnapshots(const Aws::Vector<Snapshot>& value) { m_snapshots = value; }
47 
51  inline void SetSnapshots(Aws::Vector<Snapshot>&& value) { m_snapshots = std::move(value); }
52 
56  inline DescribeSnapshotsResponse& WithSnapshots(const Aws::Vector<Snapshot>& value) { SetSnapshots(value); return *this;}
57 
61  inline DescribeSnapshotsResponse& WithSnapshots(Aws::Vector<Snapshot>&& value) { SetSnapshots(std::move(value)); return *this;}
62 
66  inline DescribeSnapshotsResponse& AddSnapshots(const Snapshot& value) { m_snapshots.push_back(value); return *this; }
67 
71  inline DescribeSnapshotsResponse& AddSnapshots(Snapshot&& value) { m_snapshots.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 DescribeSnapshotsResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
118 
126  inline DescribeSnapshotsResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
127 
135  inline DescribeSnapshotsResponse& 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 DescribeSnapshotsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
149 
150 
151  inline DescribeSnapshotsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
152 
153  private:
154 
155  Aws::Vector<Snapshot> m_snapshots;
156 
157  Aws::String m_nextToken;
158 
159  ResponseMetadata m_responseMetadata;
160  };
161 
162 } // namespace Model
163 } // namespace EC2
164 } // namespace Aws
Snapshot.h
Aws::EC2::Model::DescribeSnapshotsResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeSnapshotsResponse.h:142
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeSnapshotsResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeSnapshotsResponse.h:81
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::DescribeSnapshotsResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeSnapshotsResponse.h:139
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DescribeSnapshotsResponse::WithSnapshots
DescribeSnapshotsResponse & WithSnapshots(const Aws::Vector< Snapshot > &value)
Definition: DescribeSnapshotsResponse.h:56
Aws::EC2::Model::DescribeSnapshotsResponse::WithSnapshots
DescribeSnapshotsResponse & WithSnapshots(Aws::Vector< Snapshot > &&value)
Definition: DescribeSnapshotsResponse.h:61
Aws::EC2::Model::DescribeSnapshotsResponse::WithResponseMetadata
DescribeSnapshotsResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeSnapshotsResponse.h:151
Aws::EC2::Model::DescribeSnapshotsResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeSnapshotsResponse.h:145
Aws::EC2::Model::DescribeSnapshotsResponse::SetSnapshots
void SetSnapshots(Aws::Vector< Snapshot > &&value)
Definition: DescribeSnapshotsResponse.h:51
Aws::EC2::Model::DescribeSnapshotsResponse::DescribeSnapshotsResponse
DescribeSnapshotsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeSnapshotsResponse::AddSnapshots
DescribeSnapshotsResponse & AddSnapshots(Snapshot &&value)
Definition: DescribeSnapshotsResponse.h:71
Aws::EC2::Model::DescribeSnapshotsResponse::GetSnapshots
const Aws::Vector< Snapshot > & GetSnapshots() const
Definition: DescribeSnapshotsResponse.h:41
Aws::EC2::Model::DescribeSnapshotsResponse::WithNextToken
DescribeSnapshotsResponse & WithNextToken(const char *value)
Definition: DescribeSnapshotsResponse.h:135
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::DescribeSnapshotsResponse::WithNextToken
DescribeSnapshotsResponse & WithNextToken(Aws::String &&value)
Definition: DescribeSnapshotsResponse.h:126
Aws::EC2::Model::DescribeSnapshotsResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeSnapshotsResponse.h:90
Aws::EC2::Model::DescribeSnapshotsResponse::WithNextToken
DescribeSnapshotsResponse & WithNextToken(const Aws::String &value)
Definition: DescribeSnapshotsResponse.h:117
Aws::EC2::Model::DescribeSnapshotsResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeSnapshotsResponse.h:108
Aws::EC2::Model::DescribeSnapshotsResponse::DescribeSnapshotsResponse
DescribeSnapshotsResponse()
Aws::EC2::Model::DescribeSnapshotsResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeSnapshotsResponse.h:99
Aws::EC2::Model::DescribeSnapshotsResponse::WithResponseMetadata
DescribeSnapshotsResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeSnapshotsResponse.h:148
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeSnapshotsResponse::SetSnapshots
void SetSnapshots(const Aws::Vector< Snapshot > &value)
Definition: DescribeSnapshotsResponse.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeSnapshotsResponse::operator=
DescribeSnapshotsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
EC2_EXPORTS.h
Aws::EC2::Model::Snapshot
Definition: Snapshot.h:37
Aws::EC2::Model::DescribeSnapshotsResponse
Definition: DescribeSnapshotsResponse.h:31
Aws::EC2::Model::DescribeSnapshotsResponse::AddSnapshots
DescribeSnapshotsResponse & AddSnapshots(const Snapshot &value)
Definition: DescribeSnapshotsResponse.h:66