AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeBundleTasksRequest.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 DescribeBundleTasksRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
61 
66  inline const Aws::Vector<Aws::String>& GetBundleIds() const{ return m_bundleIds; }
67 
72  inline void SetBundleIds(const Aws::Vector<Aws::String>& value) { m_bundleIdsHasBeenSet = true; m_bundleIds = value; }
73 
78  inline void SetBundleIds(Aws::Vector<Aws::String>&& value) { m_bundleIdsHasBeenSet = true; m_bundleIds = value; }
79 
84  inline DescribeBundleTasksRequest& WithBundleIds(const Aws::Vector<Aws::String>& value) { SetBundleIds(value); return *this;}
85 
90  inline DescribeBundleTasksRequest& WithBundleIds(Aws::Vector<Aws::String>&& value) { SetBundleIds(value); return *this;}
91 
96  inline DescribeBundleTasksRequest& AddBundleIds(const Aws::String& value) { m_bundleIdsHasBeenSet = true; m_bundleIds.push_back(value); return *this; }
97 
102  inline DescribeBundleTasksRequest& AddBundleIds(Aws::String&& value) { m_bundleIdsHasBeenSet = true; m_bundleIds.push_back(value); return *this; }
103 
108  inline DescribeBundleTasksRequest& AddBundleIds(const char* value) { m_bundleIdsHasBeenSet = true; m_bundleIds.push_back(value); return *this; }
109 
127  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
128 
146  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
147 
165  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = value; }
166 
184  inline DescribeBundleTasksRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
185 
203  inline DescribeBundleTasksRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(value); return *this;}
204 
222  inline DescribeBundleTasksRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
223 
241  inline DescribeBundleTasksRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
242 
243  private:
244  bool m_dryRun;
245  bool m_dryRunHasBeenSet;
246  Aws::Vector<Aws::String> m_bundleIds;
247  bool m_bundleIdsHasBeenSet;
248  Aws::Vector<Filter> m_filters;
249  bool m_filtersHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace EC2
254 } // namespace Aws
DescribeBundleTasksRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeBundleTasksRequest & AddFilters(Filter &&value)
DescribeBundleTasksRequest & AddBundleIds(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeBundleTasksRequest & AddBundleIds(const Aws::String &value)
DescribeBundleTasksRequest & WithBundleIds(Aws::Vector< Aws::String > &&value)
void SetBundleIds(const Aws::Vector< Aws::String > &value)
void SetBundleIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetBundleIds() const
DescribeBundleTasksRequest & AddFilters(const Filter &value)
DescribeBundleTasksRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeBundleTasksRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< Filter > & GetFilters() const
void SetFilters(Aws::Vector< Filter > &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
void SetFilters(const Aws::Vector< Filter > &value)
DescribeBundleTasksRequest & AddBundleIds(Aws::String &&value)
DescribeBundleTasksRequest & WithBundleIds(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).