|
| 1 | +/* |
| 2 | +* Copyright 2010-2017 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 | + |
| 16 | +#pragma once |
| 17 | +#include <aws/ec2/EC2_EXPORTS.h> |
| 18 | +#include <aws/ec2/EC2Request.h> |
| 19 | +#include <aws/core/utils/memory/stl/AWSVector.h> |
| 20 | +#include <aws/core/utils/memory/stl/AWSString.h> |
| 21 | +#include <aws/ec2/model/Filter.h> |
| 22 | +#include <utility> |
| 23 | + |
| 24 | +namespace Aws |
| 25 | +{ |
| 26 | +namespace EC2 |
| 27 | +{ |
| 28 | +namespace Model |
| 29 | +{ |
| 30 | + |
| 31 | + /** |
| 32 | + */ |
| 33 | + class AWS_EC2_API DescribeExportImageTasksRequest : public EC2Request |
| 34 | + { |
| 35 | + public: |
| 36 | + DescribeExportImageTasksRequest(); |
| 37 | + |
| 38 | + // Service request name is the Operation name which will send this request out, |
| 39 | + // each operation should has unique request name, so that we can get operation's name from this request. |
| 40 | + // Note: this is not true for response, multiple operations may have the same response name, |
| 41 | + // so we can not get operation's name from response. |
| 42 | + inline virtual const char* GetServiceRequestName() const override { return "DescribeExportImageTasks"; } |
| 43 | + |
| 44 | + Aws::String SerializePayload() const override; |
| 45 | + |
| 46 | + protected: |
| 47 | + void DumpBodyToUrl(Aws::Http::URI& uri ) const override; |
| 48 | + |
| 49 | + public: |
| 50 | + |
| 51 | + /** |
| 52 | + * <p>Checks whether you have the required permissions for the action, without |
| 53 | + * actually making the request, and provides an error response. If you have the |
| 54 | + * required permissions, the error response is <code>DryRunOperation</code>. |
| 55 | + * Otherwise, it is <code>UnauthorizedOperation</code>.</p> |
| 56 | + */ |
| 57 | + inline bool GetDryRun() const{ return m_dryRun; } |
| 58 | + |
| 59 | + /** |
| 60 | + * <p>Checks whether you have the required permissions for the action, without |
| 61 | + * actually making the request, and provides an error response. If you have the |
| 62 | + * required permissions, the error response is <code>DryRunOperation</code>. |
| 63 | + * Otherwise, it is <code>UnauthorizedOperation</code>.</p> |
| 64 | + */ |
| 65 | + inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } |
| 66 | + |
| 67 | + /** |
| 68 | + * <p>Checks whether you have the required permissions for the action, without |
| 69 | + * actually making the request, and provides an error response. If you have the |
| 70 | + * required permissions, the error response is <code>DryRunOperation</code>. |
| 71 | + * Otherwise, it is <code>UnauthorizedOperation</code>.</p> |
| 72 | + */ |
| 73 | + inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } |
| 74 | + |
| 75 | + /** |
| 76 | + * <p>Checks whether you have the required permissions for the action, without |
| 77 | + * actually making the request, and provides an error response. If you have the |
| 78 | + * required permissions, the error response is <code>DryRunOperation</code>. |
| 79 | + * Otherwise, it is <code>UnauthorizedOperation</code>.</p> |
| 80 | + */ |
| 81 | + inline DescribeExportImageTasksRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} |
| 82 | + |
| 83 | + |
| 84 | + /** |
| 85 | + * <p>Filter tasks using the <code>task-state</code> filter and one of the |
| 86 | + * following values: <code>active</code>, <code>completed</code>, |
| 87 | + * <code>deleting</code>, or <code>deleted</code>.</p> |
| 88 | + */ |
| 89 | + inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; } |
| 90 | + |
| 91 | + /** |
| 92 | + * <p>Filter tasks using the <code>task-state</code> filter and one of the |
| 93 | + * following values: <code>active</code>, <code>completed</code>, |
| 94 | + * <code>deleting</code>, or <code>deleted</code>.</p> |
| 95 | + */ |
| 96 | + inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } |
| 97 | + |
| 98 | + /** |
| 99 | + * <p>Filter tasks using the <code>task-state</code> filter and one of the |
| 100 | + * following values: <code>active</code>, <code>completed</code>, |
| 101 | + * <code>deleting</code>, or <code>deleted</code>.</p> |
| 102 | + */ |
| 103 | + inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; } |
| 104 | + |
| 105 | + /** |
| 106 | + * <p>Filter tasks using the <code>task-state</code> filter and one of the |
| 107 | + * following values: <code>active</code>, <code>completed</code>, |
| 108 | + * <code>deleting</code>, or <code>deleted</code>.</p> |
| 109 | + */ |
| 110 | + inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } |
| 111 | + |
| 112 | + /** |
| 113 | + * <p>Filter tasks using the <code>task-state</code> filter and one of the |
| 114 | + * following values: <code>active</code>, <code>completed</code>, |
| 115 | + * <code>deleting</code>, or <code>deleted</code>.</p> |
| 116 | + */ |
| 117 | + inline DescribeExportImageTasksRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;} |
| 118 | + |
| 119 | + /** |
| 120 | + * <p>Filter tasks using the <code>task-state</code> filter and one of the |
| 121 | + * following values: <code>active</code>, <code>completed</code>, |
| 122 | + * <code>deleting</code>, or <code>deleted</code>.</p> |
| 123 | + */ |
| 124 | + inline DescribeExportImageTasksRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;} |
| 125 | + |
| 126 | + /** |
| 127 | + * <p>Filter tasks using the <code>task-state</code> filter and one of the |
| 128 | + * following values: <code>active</code>, <code>completed</code>, |
| 129 | + * <code>deleting</code>, or <code>deleted</code>.</p> |
| 130 | + */ |
| 131 | + inline DescribeExportImageTasksRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } |
| 132 | + |
| 133 | + /** |
| 134 | + * <p>Filter tasks using the <code>task-state</code> filter and one of the |
| 135 | + * following values: <code>active</code>, <code>completed</code>, |
| 136 | + * <code>deleting</code>, or <code>deleted</code>.</p> |
| 137 | + */ |
| 138 | + inline DescribeExportImageTasksRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } |
| 139 | + |
| 140 | + |
| 141 | + /** |
| 142 | + * <p>The IDs of the export image tasks.</p> |
| 143 | + */ |
| 144 | + inline const Aws::Vector<Aws::String>& GetExportImageTaskIds() const{ return m_exportImageTaskIds; } |
| 145 | + |
| 146 | + /** |
| 147 | + * <p>The IDs of the export image tasks.</p> |
| 148 | + */ |
| 149 | + inline bool ExportImageTaskIdsHasBeenSet() const { return m_exportImageTaskIdsHasBeenSet; } |
| 150 | + |
| 151 | + /** |
| 152 | + * <p>The IDs of the export image tasks.</p> |
| 153 | + */ |
| 154 | + inline void SetExportImageTaskIds(const Aws::Vector<Aws::String>& value) { m_exportImageTaskIdsHasBeenSet = true; m_exportImageTaskIds = value; } |
| 155 | + |
| 156 | + /** |
| 157 | + * <p>The IDs of the export image tasks.</p> |
| 158 | + */ |
| 159 | + inline void SetExportImageTaskIds(Aws::Vector<Aws::String>&& value) { m_exportImageTaskIdsHasBeenSet = true; m_exportImageTaskIds = std::move(value); } |
| 160 | + |
| 161 | + /** |
| 162 | + * <p>The IDs of the export image tasks.</p> |
| 163 | + */ |
| 164 | + inline DescribeExportImageTasksRequest& WithExportImageTaskIds(const Aws::Vector<Aws::String>& value) { SetExportImageTaskIds(value); return *this;} |
| 165 | + |
| 166 | + /** |
| 167 | + * <p>The IDs of the export image tasks.</p> |
| 168 | + */ |
| 169 | + inline DescribeExportImageTasksRequest& WithExportImageTaskIds(Aws::Vector<Aws::String>&& value) { SetExportImageTaskIds(std::move(value)); return *this;} |
| 170 | + |
| 171 | + /** |
| 172 | + * <p>The IDs of the export image tasks.</p> |
| 173 | + */ |
| 174 | + inline DescribeExportImageTasksRequest& AddExportImageTaskIds(const Aws::String& value) { m_exportImageTaskIdsHasBeenSet = true; m_exportImageTaskIds.push_back(value); return *this; } |
| 175 | + |
| 176 | + /** |
| 177 | + * <p>The IDs of the export image tasks.</p> |
| 178 | + */ |
| 179 | + inline DescribeExportImageTasksRequest& AddExportImageTaskIds(Aws::String&& value) { m_exportImageTaskIdsHasBeenSet = true; m_exportImageTaskIds.push_back(std::move(value)); return *this; } |
| 180 | + |
| 181 | + /** |
| 182 | + * <p>The IDs of the export image tasks.</p> |
| 183 | + */ |
| 184 | + inline DescribeExportImageTasksRequest& AddExportImageTaskIds(const char* value) { m_exportImageTaskIdsHasBeenSet = true; m_exportImageTaskIds.push_back(value); return *this; } |
| 185 | + |
| 186 | + |
| 187 | + /** |
| 188 | + * <p>The maximum number of results to return in a single call.</p> |
| 189 | + */ |
| 190 | + inline int GetMaxResults() const{ return m_maxResults; } |
| 191 | + |
| 192 | + /** |
| 193 | + * <p>The maximum number of results to return in a single call.</p> |
| 194 | + */ |
| 195 | + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } |
| 196 | + |
| 197 | + /** |
| 198 | + * <p>The maximum number of results to return in a single call.</p> |
| 199 | + */ |
| 200 | + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } |
| 201 | + |
| 202 | + /** |
| 203 | + * <p>The maximum number of results to return in a single call.</p> |
| 204 | + */ |
| 205 | + inline DescribeExportImageTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} |
| 206 | + |
| 207 | + |
| 208 | + /** |
| 209 | + * <p>A token that indicates the next page of results.</p> |
| 210 | + */ |
| 211 | + inline const Aws::String& GetNextToken() const{ return m_nextToken; } |
| 212 | + |
| 213 | + /** |
| 214 | + * <p>A token that indicates the next page of results.</p> |
| 215 | + */ |
| 216 | + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } |
| 217 | + |
| 218 | + /** |
| 219 | + * <p>A token that indicates the next page of results.</p> |
| 220 | + */ |
| 221 | + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } |
| 222 | + |
| 223 | + /** |
| 224 | + * <p>A token that indicates the next page of results.</p> |
| 225 | + */ |
| 226 | + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } |
| 227 | + |
| 228 | + /** |
| 229 | + * <p>A token that indicates the next page of results.</p> |
| 230 | + */ |
| 231 | + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } |
| 232 | + |
| 233 | + /** |
| 234 | + * <p>A token that indicates the next page of results.</p> |
| 235 | + */ |
| 236 | + inline DescribeExportImageTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} |
| 237 | + |
| 238 | + /** |
| 239 | + * <p>A token that indicates the next page of results.</p> |
| 240 | + */ |
| 241 | + inline DescribeExportImageTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} |
| 242 | + |
| 243 | + /** |
| 244 | + * <p>A token that indicates the next page of results.</p> |
| 245 | + */ |
| 246 | + inline DescribeExportImageTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} |
| 247 | + |
| 248 | + private: |
| 249 | + |
| 250 | + bool m_dryRun; |
| 251 | + bool m_dryRunHasBeenSet; |
| 252 | + |
| 253 | + Aws::Vector<Filter> m_filters; |
| 254 | + bool m_filtersHasBeenSet; |
| 255 | + |
| 256 | + Aws::Vector<Aws::String> m_exportImageTaskIds; |
| 257 | + bool m_exportImageTaskIdsHasBeenSet; |
| 258 | + |
| 259 | + int m_maxResults; |
| 260 | + bool m_maxResultsHasBeenSet; |
| 261 | + |
| 262 | + Aws::String m_nextToken; |
| 263 | + bool m_nextTokenHasBeenSet; |
| 264 | + }; |
| 265 | + |
| 266 | +} // namespace Model |
| 267 | +} // namespace EC2 |
| 268 | +} // namespace Aws |
0 commit comments