AWS SDK for C++  1.9.153
AWS SDK for C++
DescribeImportSnapshotTasksResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.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 
42  inline const Aws::Vector<ImportSnapshotTask>& GetImportSnapshotTasks() const{ return m_importSnapshotTasks; }
43 
48  inline void SetImportSnapshotTasks(const Aws::Vector<ImportSnapshotTask>& value) { m_importSnapshotTasks = value; }
49 
54  inline void SetImportSnapshotTasks(Aws::Vector<ImportSnapshotTask>&& value) { m_importSnapshotTasks = std::move(value); }
55 
60  inline DescribeImportSnapshotTasksResponse& WithImportSnapshotTasks(const Aws::Vector<ImportSnapshotTask>& value) { SetImportSnapshotTasks(value); return *this;}
61 
66  inline DescribeImportSnapshotTasksResponse& WithImportSnapshotTasks(Aws::Vector<ImportSnapshotTask>&& value) { SetImportSnapshotTasks(std::move(value)); return *this;}
67 
72  inline DescribeImportSnapshotTasksResponse& AddImportSnapshotTasks(const ImportSnapshotTask& value) { m_importSnapshotTasks.push_back(value); return *this; }
73 
78  inline DescribeImportSnapshotTasksResponse& AddImportSnapshotTasks(ImportSnapshotTask&& value) { m_importSnapshotTasks.push_back(std::move(value)); return *this; }
79 
80 
85  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 
91  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
92 
97  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
98 
103  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
104 
109  inline DescribeImportSnapshotTasksResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
110 
115  inline DescribeImportSnapshotTasksResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
116 
121  inline DescribeImportSnapshotTasksResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
122 
123 
124 
125  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
126 
127 
128  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
129 
130 
131  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
132 
133 
134  inline DescribeImportSnapshotTasksResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
135 
136 
137  inline DescribeImportSnapshotTasksResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
138 
139  private:
140 
141  Aws::Vector<ImportSnapshotTask> m_importSnapshotTasks;
142 
143  Aws::String m_nextToken;
144 
145  ResponseMetadata m_responseMetadata;
146  };
147 
148 } // namespace Model
149 } // namespace EC2
150 } // namespace Aws
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeImportSnapshotTasksResponse.h:97
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeImportSnapshotTasksResponse.h:91
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::GetImportSnapshotTasks
const Aws::Vector< ImportSnapshotTask > & GetImportSnapshotTasks() const
Definition: DescribeImportSnapshotTasksResponse.h:42
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::WithNextToken
DescribeImportSnapshotTasksResponse & WithNextToken(Aws::String &&value)
Definition: DescribeImportSnapshotTasksResponse.h:115
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::operator=
DescribeImportSnapshotTasksResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::SetImportSnapshotTasks
void SetImportSnapshotTasks(Aws::Vector< ImportSnapshotTask > &&value)
Definition: DescribeImportSnapshotTasksResponse.h:54
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeImportSnapshotTasksResponse.h:128
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeImportSnapshotTasksResponse.h:103
AWSVector.h
Aws::EC2::Model::ImportSnapshotTask
Definition: ImportSnapshotTask.h:35
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::AddImportSnapshotTasks
DescribeImportSnapshotTasksResponse & AddImportSnapshotTasks(const ImportSnapshotTask &value)
Definition: DescribeImportSnapshotTasksResponse.h:72
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::AddImportSnapshotTasks
DescribeImportSnapshotTasksResponse & AddImportSnapshotTasks(ImportSnapshotTask &&value)
Definition: DescribeImportSnapshotTasksResponse.h:78
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::WithNextToken
DescribeImportSnapshotTasksResponse & WithNextToken(const Aws::String &value)
Definition: DescribeImportSnapshotTasksResponse.h:109
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::DescribeImportSnapshotTasksResponse
DescribeImportSnapshotTasksResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeImportSnapshotTasksResponse.h:131
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::DescribeImportSnapshotTasksResponse
DescribeImportSnapshotTasksResponse()
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::WithNextToken
DescribeImportSnapshotTasksResponse & WithNextToken(const char *value)
Definition: DescribeImportSnapshotTasksResponse.h:121
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
ImportSnapshotTask.h
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::WithImportSnapshotTasks
DescribeImportSnapshotTasksResponse & WithImportSnapshotTasks(const Aws::Vector< ImportSnapshotTask > &value)
Definition: DescribeImportSnapshotTasksResponse.h:60
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::WithResponseMetadata
DescribeImportSnapshotTasksResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeImportSnapshotTasksResponse.h:137
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeImportSnapshotTasksResponse.h:125
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeImportSnapshotTasksResponse.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::WithResponseMetadata
DescribeImportSnapshotTasksResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeImportSnapshotTasksResponse.h:134
Aws::EC2::Model::DescribeImportSnapshotTasksResponse
Definition: DescribeImportSnapshotTasksResponse.h:31
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::SetImportSnapshotTasks
void SetImportSnapshotTasks(const Aws::Vector< ImportSnapshotTask > &value)
Definition: DescribeImportSnapshotTasksResponse.h:48
EC2_EXPORTS.h
Aws::EC2::Model::DescribeImportSnapshotTasksResponse::WithImportSnapshotTasks
DescribeImportSnapshotTasksResponse & WithImportSnapshotTasks(Aws::Vector< ImportSnapshotTask > &&value)
Definition: DescribeImportSnapshotTasksResponse.h:66