AWS SDK for C++  1.9.16
AWS SDK for C++
DescribeReservedInstancesListingsRequest.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 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "DescribeReservedInstancesListings"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
54  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
55 
65  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
66 
76  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
77 
87  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
88 
98  inline DescribeReservedInstancesListingsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
99 
109  inline DescribeReservedInstancesListingsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
110 
120  inline DescribeReservedInstancesListingsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
121 
131  inline DescribeReservedInstancesListingsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
132 
133 
137  inline const Aws::String& GetReservedInstancesId() const{ return m_reservedInstancesId; }
138 
142  inline bool ReservedInstancesIdHasBeenSet() const { return m_reservedInstancesIdHasBeenSet; }
143 
147  inline void SetReservedInstancesId(const Aws::String& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = value; }
148 
152  inline void SetReservedInstancesId(Aws::String&& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = std::move(value); }
153 
157  inline void SetReservedInstancesId(const char* value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId.assign(value); }
158 
162  inline DescribeReservedInstancesListingsRequest& WithReservedInstancesId(const Aws::String& value) { SetReservedInstancesId(value); return *this;}
163 
167  inline DescribeReservedInstancesListingsRequest& WithReservedInstancesId(Aws::String&& value) { SetReservedInstancesId(std::move(value)); return *this;}
168 
172  inline DescribeReservedInstancesListingsRequest& WithReservedInstancesId(const char* value) { SetReservedInstancesId(value); return *this;}
173 
174 
178  inline const Aws::String& GetReservedInstancesListingId() const{ return m_reservedInstancesListingId; }
179 
183  inline bool ReservedInstancesListingIdHasBeenSet() const { return m_reservedInstancesListingIdHasBeenSet; }
184 
188  inline void SetReservedInstancesListingId(const Aws::String& value) { m_reservedInstancesListingIdHasBeenSet = true; m_reservedInstancesListingId = value; }
189 
193  inline void SetReservedInstancesListingId(Aws::String&& value) { m_reservedInstancesListingIdHasBeenSet = true; m_reservedInstancesListingId = std::move(value); }
194 
198  inline void SetReservedInstancesListingId(const char* value) { m_reservedInstancesListingIdHasBeenSet = true; m_reservedInstancesListingId.assign(value); }
199 
203  inline DescribeReservedInstancesListingsRequest& WithReservedInstancesListingId(const Aws::String& value) { SetReservedInstancesListingId(value); return *this;}
204 
208  inline DescribeReservedInstancesListingsRequest& WithReservedInstancesListingId(Aws::String&& value) { SetReservedInstancesListingId(std::move(value)); return *this;}
209 
213  inline DescribeReservedInstancesListingsRequest& WithReservedInstancesListingId(const char* value) { SetReservedInstancesListingId(value); return *this;}
214 
215  private:
216 
217  Aws::Vector<Filter> m_filters;
218  bool m_filtersHasBeenSet;
219 
220  Aws::String m_reservedInstancesId;
221  bool m_reservedInstancesIdHasBeenSet;
222 
223  Aws::String m_reservedInstancesListingId;
224  bool m_reservedInstancesListingIdHasBeenSet;
225  };
226 
227 } // namespace Model
228 } // namespace EC2
229 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::AddFilters
DescribeReservedInstancesListingsRequest & AddFilters(const Filter &value)
Definition: DescribeReservedInstancesListingsRequest.h:120
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeReservedInstancesListingsRequest.h:76
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::SetReservedInstancesId
void SetReservedInstancesId(const char *value)
Definition: DescribeReservedInstancesListingsRequest.h:157
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::SetReservedInstancesId
void SetReservedInstancesId(const Aws::String &value)
Definition: DescribeReservedInstancesListingsRequest.h:147
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::WithReservedInstancesListingId
DescribeReservedInstancesListingsRequest & WithReservedInstancesListingId(const Aws::String &value)
Definition: DescribeReservedInstancesListingsRequest.h:203
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::DescribeReservedInstancesListingsRequest::ReservedInstancesListingIdHasBeenSet
bool ReservedInstancesListingIdHasBeenSet() const
Definition: DescribeReservedInstancesListingsRequest.h:183
AWSVector.h
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::WithReservedInstancesId
DescribeReservedInstancesListingsRequest & WithReservedInstancesId(const char *value)
Definition: DescribeReservedInstancesListingsRequest.h:172
Filter.h
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::DescribeReservedInstancesListingsRequest
DescribeReservedInstancesListingsRequest()
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::SetReservedInstancesId
void SetReservedInstancesId(Aws::String &&value)
Definition: DescribeReservedInstancesListingsRequest.h:152
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::WithFilters
DescribeReservedInstancesListingsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeReservedInstancesListingsRequest.h:98
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::ReservedInstancesIdHasBeenSet
bool ReservedInstancesIdHasBeenSet() const
Definition: DescribeReservedInstancesListingsRequest.h:142
EC2Request.h
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::SetReservedInstancesListingId
void SetReservedInstancesListingId(const Aws::String &value)
Definition: DescribeReservedInstancesListingsRequest.h:188
AWSString.h
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::WithReservedInstancesListingId
DescribeReservedInstancesListingsRequest & WithReservedInstancesListingId(Aws::String &&value)
Definition: DescribeReservedInstancesListingsRequest.h:208
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeReservedInstancesListingsRequest.h:65
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeReservedInstancesListingsRequest.h:87
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::GetReservedInstancesId
const Aws::String & GetReservedInstancesId() const
Definition: DescribeReservedInstancesListingsRequest.h:137
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeReservedInstancesListingsRequest.h:54
Aws::EC2::Model::DescribeReservedInstancesListingsRequest
Definition: DescribeReservedInstancesListingsRequest.h:28
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::AddFilters
DescribeReservedInstancesListingsRequest & AddFilters(Filter &&value)
Definition: DescribeReservedInstancesListingsRequest.h:131
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::WithReservedInstancesId
DescribeReservedInstancesListingsRequest & WithReservedInstancesId(Aws::String &&value)
Definition: DescribeReservedInstancesListingsRequest.h:167
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::SetReservedInstancesListingId
void SetReservedInstancesListingId(const char *value)
Definition: DescribeReservedInstancesListingsRequest.h:198
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::GetReservedInstancesListingId
const Aws::String & GetReservedInstancesListingId() const
Definition: DescribeReservedInstancesListingsRequest.h:178
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::WithReservedInstancesListingId
DescribeReservedInstancesListingsRequest & WithReservedInstancesListingId(const char *value)
Definition: DescribeReservedInstancesListingsRequest.h:213
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::WithReservedInstancesId
DescribeReservedInstancesListingsRequest & WithReservedInstancesId(const Aws::String &value)
Definition: DescribeReservedInstancesListingsRequest.h:162
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::WithFilters
DescribeReservedInstancesListingsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeReservedInstancesListingsRequest.h:109
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::SetReservedInstancesListingId
void SetReservedInstancesListingId(Aws::String &&value)
Definition: DescribeReservedInstancesListingsRequest.h:193
Aws::EC2::Model::DescribeReservedInstancesListingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeReservedInstancesListingsRequest.h:36