AWS SDK for C++  1.9.126
AWS SDK for C++
DescribeBundleTasksRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeBundleTasks"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::Vector<Aws::String>& GetBundleIds() const{ return m_bundleIds; }
45 
49  inline bool BundleIdsHasBeenSet() const { return m_bundleIdsHasBeenSet; }
50 
54  inline void SetBundleIds(const Aws::Vector<Aws::String>& value) { m_bundleIdsHasBeenSet = true; m_bundleIds = value; }
55 
59  inline void SetBundleIds(Aws::Vector<Aws::String>&& value) { m_bundleIdsHasBeenSet = true; m_bundleIds = std::move(value); }
60 
64  inline DescribeBundleTasksRequest& WithBundleIds(const Aws::Vector<Aws::String>& value) { SetBundleIds(value); return *this;}
65 
69  inline DescribeBundleTasksRequest& WithBundleIds(Aws::Vector<Aws::String>&& value) { SetBundleIds(std::move(value)); return *this;}
70 
74  inline DescribeBundleTasksRequest& AddBundleIds(const Aws::String& value) { m_bundleIdsHasBeenSet = true; m_bundleIds.push_back(value); return *this; }
75 
79  inline DescribeBundleTasksRequest& AddBundleIds(Aws::String&& value) { m_bundleIdsHasBeenSet = true; m_bundleIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeBundleTasksRequest& AddBundleIds(const char* value) { m_bundleIdsHasBeenSet = true; m_bundleIds.push_back(value); return *this; }
85 
86 
104  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
105 
123  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
124 
142  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
143 
161  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
162 
180  inline DescribeBundleTasksRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
181 
199  inline DescribeBundleTasksRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
200 
218  inline DescribeBundleTasksRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
219 
237  inline DescribeBundleTasksRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
238 
239 
246  inline bool GetDryRun() const{ return m_dryRun; }
247 
254  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
255 
262  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
263 
270  inline DescribeBundleTasksRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
271 
272  private:
273 
274  Aws::Vector<Aws::String> m_bundleIds;
275  bool m_bundleIdsHasBeenSet;
276 
277  Aws::Vector<Filter> m_filters;
278  bool m_filtersHasBeenSet;
279 
280  bool m_dryRun;
281  bool m_dryRunHasBeenSet;
282  };
283 
284 } // namespace Model
285 } // namespace EC2
286 } // namespace Aws
Aws::EC2::Model::DescribeBundleTasksRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeBundleTasksRequest.h:254
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeBundleTasksRequest::GetBundleIds
const Aws::Vector< Aws::String > & GetBundleIds() const
Definition: DescribeBundleTasksRequest.h:44
Aws::EC2::Model::DescribeBundleTasksRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeBundleTasksRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeBundleTasksRequest::AddFilters
DescribeBundleTasksRequest & AddFilters(const Filter &value)
Definition: DescribeBundleTasksRequest.h:218
Aws::EC2::Model::DescribeBundleTasksRequest::WithFilters
DescribeBundleTasksRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeBundleTasksRequest.h:199
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeBundleTasksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeBundleTasksRequest.h:32
Aws::EC2::Model::DescribeBundleTasksRequest::WithBundleIds
DescribeBundleTasksRequest & WithBundleIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeBundleTasksRequest.h:69
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeBundleTasksRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeBundleTasksRequest.h:104
EC2Request.h
Aws::EC2::Model::DescribeBundleTasksRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeBundleTasksRequest.h:142
Aws::EC2::Model::DescribeBundleTasksRequest::SetBundleIds
void SetBundleIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeBundleTasksRequest.h:59
AWSString.h
Aws::EC2::Model::DescribeBundleTasksRequest::AddBundleIds
DescribeBundleTasksRequest & AddBundleIds(Aws::String &&value)
Definition: DescribeBundleTasksRequest.h:79
Aws::EC2::Model::DescribeBundleTasksRequest::AddBundleIds
DescribeBundleTasksRequest & AddBundleIds(const Aws::String &value)
Definition: DescribeBundleTasksRequest.h:74
Aws::EC2::Model::DescribeBundleTasksRequest::BundleIdsHasBeenSet
bool BundleIdsHasBeenSet() const
Definition: DescribeBundleTasksRequest.h:49
Aws::EC2::Model::DescribeBundleTasksRequest::AddFilters
DescribeBundleTasksRequest & AddFilters(Filter &&value)
Definition: DescribeBundleTasksRequest.h:237
Aws::EC2::Model::DescribeBundleTasksRequest::AddBundleIds
DescribeBundleTasksRequest & AddBundleIds(const char *value)
Definition: DescribeBundleTasksRequest.h:84
Aws::EC2::Model::DescribeBundleTasksRequest::WithBundleIds
DescribeBundleTasksRequest & WithBundleIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeBundleTasksRequest.h:64
Aws::EC2::Model::DescribeBundleTasksRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeBundleTasksRequest.h:161
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeBundleTasksRequest::WithDryRun
DescribeBundleTasksRequest & WithDryRun(bool value)
Definition: DescribeBundleTasksRequest.h:270
Aws::EC2::Model::DescribeBundleTasksRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeBundleTasksRequest.h:246
Aws::EC2::Model::DescribeBundleTasksRequest
Definition: DescribeBundleTasksRequest.h:24
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeBundleTasksRequest::SetBundleIds
void SetBundleIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeBundleTasksRequest.h:54
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeBundleTasksRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeBundleTasksRequest.h:262
EC2_EXPORTS.h
Aws::EC2::Model::DescribeBundleTasksRequest::WithFilters
DescribeBundleTasksRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeBundleTasksRequest.h:180
Aws::EC2::Model::DescribeBundleTasksRequest::DescribeBundleTasksRequest
DescribeBundleTasksRequest()
Aws::EC2::Model::DescribeBundleTasksRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeBundleTasksRequest.h:123