AWS SDK for C++  1.9.70
AWS SDK for C++
DescribeExportTasksRequest.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 "DescribeExportTasks"; }
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>& GetExportTaskIds() const{ return m_exportTaskIds; }
45 
49  inline bool ExportTaskIdsHasBeenSet() const { return m_exportTaskIdsHasBeenSet; }
50 
54  inline void SetExportTaskIds(const Aws::Vector<Aws::String>& value) { m_exportTaskIdsHasBeenSet = true; m_exportTaskIds = value; }
55 
59  inline void SetExportTaskIds(Aws::Vector<Aws::String>&& value) { m_exportTaskIdsHasBeenSet = true; m_exportTaskIds = std::move(value); }
60 
64  inline DescribeExportTasksRequest& WithExportTaskIds(const Aws::Vector<Aws::String>& value) { SetExportTaskIds(value); return *this;}
65 
69  inline DescribeExportTasksRequest& WithExportTaskIds(Aws::Vector<Aws::String>&& value) { SetExportTaskIds(std::move(value)); return *this;}
70 
74  inline DescribeExportTasksRequest& AddExportTaskIds(const Aws::String& value) { m_exportTaskIdsHasBeenSet = true; m_exportTaskIds.push_back(value); return *this; }
75 
79  inline DescribeExportTasksRequest& AddExportTaskIds(Aws::String&& value) { m_exportTaskIdsHasBeenSet = true; m_exportTaskIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeExportTasksRequest& AddExportTaskIds(const char* value) { m_exportTaskIdsHasBeenSet = true; m_exportTaskIds.push_back(value); return *this; }
85 
86 
90  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
91 
95  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
96 
100  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
101 
105  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
106 
110  inline DescribeExportTasksRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
111 
115  inline DescribeExportTasksRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
116 
120  inline DescribeExportTasksRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
121 
125  inline DescribeExportTasksRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
126 
127  private:
128 
129  Aws::Vector<Aws::String> m_exportTaskIds;
130  bool m_exportTaskIdsHasBeenSet;
131 
132  Aws::Vector<Filter> m_filters;
133  bool m_filtersHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace EC2
138 } // namespace Aws
Aws::EC2::Model::DescribeExportTasksRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeExportTasksRequest.h:100
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeExportTasksRequest
Definition: DescribeExportTasksRequest.h:24
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeExportTasksRequest::SetExportTaskIds
void SetExportTaskIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeExportTasksRequest.h:59
AWSVector.h
Aws::EC2::Model::DescribeExportTasksRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeExportTasksRequest.h:90
Filter.h
Aws::EC2::Model::DescribeExportTasksRequest::GetExportTaskIds
const Aws::Vector< Aws::String > & GetExportTaskIds() const
Definition: DescribeExportTasksRequest.h:44
Aws::EC2::Model::DescribeExportTasksRequest::DescribeExportTasksRequest
DescribeExportTasksRequest()
Aws::EC2::Model::DescribeExportTasksRequest::AddExportTaskIds
DescribeExportTasksRequest & AddExportTaskIds(const char *value)
Definition: DescribeExportTasksRequest.h:84
Aws::EC2::Model::DescribeExportTasksRequest::WithExportTaskIds
DescribeExportTasksRequest & WithExportTaskIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeExportTasksRequest.h:69
Aws::EC2::Model::DescribeExportTasksRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeExportTasksRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeExportTasksRequest.h:105
EC2Request.h
Aws::EC2::Model::DescribeExportTasksRequest::AddFilters
DescribeExportTasksRequest & AddFilters(Filter &&value)
Definition: DescribeExportTasksRequest.h:125
AWSString.h
Aws::EC2::Model::DescribeExportTasksRequest::AddExportTaskIds
DescribeExportTasksRequest & AddExportTaskIds(Aws::String &&value)
Definition: DescribeExportTasksRequest.h:79
Aws::EC2::Model::DescribeExportTasksRequest::WithFilters
DescribeExportTasksRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeExportTasksRequest.h:110
Aws::EC2::Model::DescribeExportTasksRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeExportTasksRequest::ExportTaskIdsHasBeenSet
bool ExportTaskIdsHasBeenSet() const
Definition: DescribeExportTasksRequest.h:49
Aws::EC2::Model::DescribeExportTasksRequest::WithFilters
DescribeExportTasksRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeExportTasksRequest.h:115
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeExportTasksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeExportTasksRequest.h:32
Aws::EC2::Model::DescribeExportTasksRequest::SetExportTaskIds
void SetExportTaskIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeExportTasksRequest.h:54
Aws::EC2::Model::DescribeExportTasksRequest::AddFilters
DescribeExportTasksRequest & AddFilters(const Filter &value)
Definition: DescribeExportTasksRequest.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeExportTasksRequest::AddExportTaskIds
DescribeExportTasksRequest & AddExportTaskIds(const Aws::String &value)
Definition: DescribeExportTasksRequest.h:74
Aws::EC2::Model::DescribeExportTasksRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeExportTasksRequest.h:95
EC2_EXPORTS.h
Aws::EC2::Model::DescribeExportTasksRequest::WithExportTaskIds
DescribeExportTasksRequest & WithExportTaskIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeExportTasksRequest.h:64