AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeImportSnapshotTasksRequest.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>
17 #include <aws/ec2/EC2Request.h>
20 #include <aws/ec2/model/Filter.h>
21 
22 namespace Aws
23 {
24 namespace EC2
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
44  inline bool GetDryRun() const{ return m_dryRun; }
45 
52  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 
60  inline DescribeImportSnapshotTasksRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
61 
65  inline const Aws::Vector<Aws::String>& GetImportTaskIds() const{ return m_importTaskIds; }
66 
70  inline void SetImportTaskIds(const Aws::Vector<Aws::String>& value) { m_importTaskIdsHasBeenSet = true; m_importTaskIds = value; }
71 
75  inline void SetImportTaskIds(Aws::Vector<Aws::String>&& value) { m_importTaskIdsHasBeenSet = true; m_importTaskIds = value; }
76 
80  inline DescribeImportSnapshotTasksRequest& WithImportTaskIds(const Aws::Vector<Aws::String>& value) { SetImportTaskIds(value); return *this;}
81 
85  inline DescribeImportSnapshotTasksRequest& WithImportTaskIds(Aws::Vector<Aws::String>&& value) { SetImportTaskIds(value); return *this;}
86 
90  inline DescribeImportSnapshotTasksRequest& AddImportTaskIds(const Aws::String& value) { m_importTaskIdsHasBeenSet = true; m_importTaskIds.push_back(value); return *this; }
91 
95  inline DescribeImportSnapshotTasksRequest& AddImportTaskIds(Aws::String&& value) { m_importTaskIdsHasBeenSet = true; m_importTaskIds.push_back(value); return *this; }
96 
100  inline DescribeImportSnapshotTasksRequest& AddImportTaskIds(const char* value) { m_importTaskIdsHasBeenSet = true; m_importTaskIds.push_back(value); return *this; }
101 
105  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
106 
110  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
111 
115  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
116 
120  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
121 
125  inline DescribeImportSnapshotTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
126 
130  inline DescribeImportSnapshotTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
131 
135  inline DescribeImportSnapshotTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
136 
142  inline int GetMaxResults() const{ return m_maxResults; }
143 
149  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
150 
156  inline DescribeImportSnapshotTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
157 
161  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
162 
166  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
167 
171  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = value; }
172 
176  inline DescribeImportSnapshotTasksRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
177 
181  inline DescribeImportSnapshotTasksRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(value); return *this;}
182 
186  inline DescribeImportSnapshotTasksRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
187 
191  inline DescribeImportSnapshotTasksRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
192 
193  private:
194  bool m_dryRun;
195  bool m_dryRunHasBeenSet;
196  Aws::Vector<Aws::String> m_importTaskIds;
197  bool m_importTaskIdsHasBeenSet;
198  Aws::String m_nextToken;
199  bool m_nextTokenHasBeenSet;
200  int m_maxResults;
201  bool m_maxResultsHasBeenSet;
202  Aws::Vector<Filter> m_filters;
203  bool m_filtersHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace EC2
208 } // namespace Aws
DescribeImportSnapshotTasksRequest & WithNextToken(const char *value)
DescribeImportSnapshotTasksRequest & AddFilters(const Filter &value)
DescribeImportSnapshotTasksRequest & WithImportTaskIds(const Aws::Vector< Aws::String > &value)
void SetImportTaskIds(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeImportSnapshotTasksRequest & WithNextToken(const Aws::String &value)
const Aws::Vector< Aws::String > & GetImportTaskIds() const
DescribeImportSnapshotTasksRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeImportSnapshotTasksRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeImportSnapshotTasksRequest & WithImportTaskIds(Aws::Vector< Aws::String > &&value)
DescribeImportSnapshotTasksRequest & AddImportTaskIds(const char *value)
DescribeImportSnapshotTasksRequest & WithDryRun(bool value)
DescribeImportSnapshotTasksRequest & WithMaxResults(int value)
DescribeImportSnapshotTasksRequest & AddImportTaskIds(const Aws::String &value)
DescribeImportSnapshotTasksRequest & AddFilters(Filter &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeImportSnapshotTasksRequest & WithNextToken(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
DescribeImportSnapshotTasksRequest & AddImportTaskIds(Aws::String &&value)
JSON (JavaScript Object Notation).