AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeImportSnapshotTasksResponse.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>
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 
52  inline const Aws::Vector<ImportSnapshotTask>& GetImportSnapshotTasks() const{ return m_importSnapshotTasks; }
53 
58  inline void SetImportSnapshotTasks(const Aws::Vector<ImportSnapshotTask>& value) { m_importSnapshotTasks = value; }
59 
64  inline void SetImportSnapshotTasks(Aws::Vector<ImportSnapshotTask>&& value) { m_importSnapshotTasks = value; }
65 
70  inline DescribeImportSnapshotTasksResponse& WithImportSnapshotTasks(const Aws::Vector<ImportSnapshotTask>& value) { SetImportSnapshotTasks(value); return *this;}
71 
76  inline DescribeImportSnapshotTasksResponse& WithImportSnapshotTasks(Aws::Vector<ImportSnapshotTask>&& value) { SetImportSnapshotTasks(value); return *this;}
77 
82  inline DescribeImportSnapshotTasksResponse& AddImportSnapshotTasks(const ImportSnapshotTask& value) { m_importSnapshotTasks.push_back(value); return *this; }
83 
88  inline DescribeImportSnapshotTasksResponse& AddImportSnapshotTasks(ImportSnapshotTask&& value) { m_importSnapshotTasks.push_back(value); return *this; }
89 
94  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
95 
100  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
101 
106  inline void SetNextToken(Aws::String&& value) { m_nextToken = value; }
107 
112  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
113 
118  inline DescribeImportSnapshotTasksResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
119 
124  inline DescribeImportSnapshotTasksResponse& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
125 
130  inline DescribeImportSnapshotTasksResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
131 
132 
133  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
134 
135 
136  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
137 
138 
139  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
140 
141 
142  inline DescribeImportSnapshotTasksResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
143 
144 
145  inline DescribeImportSnapshotTasksResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
146 
147  private:
148  Aws::Vector<ImportSnapshotTask> m_importSnapshotTasks;
149  Aws::String m_nextToken;
150  ResponseMetadata m_responseMetadata;
151  };
152 
153 } // namespace Model
154 } // namespace EC2
155 } // namespace Aws
DescribeImportSnapshotTasksResponse & WithResponseMetadata(ResponseMetadata &&value)
void SetImportSnapshotTasks(Aws::Vector< ImportSnapshotTask > &&value)
DescribeImportSnapshotTasksResponse & AddImportSnapshotTasks(const ImportSnapshotTask &value)
void SetImportSnapshotTasks(const Aws::Vector< ImportSnapshotTask > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeImportSnapshotTasksResponse & WithNextToken(const char *value)
DescribeImportSnapshotTasksResponse & WithImportSnapshotTasks(Aws::Vector< ImportSnapshotTask > &&value)
DescribeImportSnapshotTasksResponse & WithNextToken(const Aws::String &value)
const Aws::Vector< ImportSnapshotTask > & GetImportSnapshotTasks() const
DescribeImportSnapshotTasksResponse & WithNextToken(Aws::String &&value)
DescribeImportSnapshotTasksResponse & WithImportSnapshotTasks(const Aws::Vector< ImportSnapshotTask > &value)
DescribeImportSnapshotTasksResponse & AddImportSnapshotTasks(ImportSnapshotTask &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeImportSnapshotTasksResponse & WithResponseMetadata(const ResponseMetadata &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
JSON (JavaScript Object Notation).