AWS SDK for C++  1.9.131
AWS SDK for C++
DescribeReservedInstancesModificationsRequest.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 "DescribeReservedInstancesModifications"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
71  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
72 
99  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
100 
127  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
128 
155  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
156 
183  inline DescribeReservedInstancesModificationsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
184 
211  inline DescribeReservedInstancesModificationsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
212 
239  inline DescribeReservedInstancesModificationsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
240 
267  inline DescribeReservedInstancesModificationsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
268 
269 
273  inline const Aws::Vector<Aws::String>& GetReservedInstancesModificationIds() const{ return m_reservedInstancesModificationIds; }
274 
278  inline bool ReservedInstancesModificationIdsHasBeenSet() const { return m_reservedInstancesModificationIdsHasBeenSet; }
279 
283  inline void SetReservedInstancesModificationIds(const Aws::Vector<Aws::String>& value) { m_reservedInstancesModificationIdsHasBeenSet = true; m_reservedInstancesModificationIds = value; }
284 
288  inline void SetReservedInstancesModificationIds(Aws::Vector<Aws::String>&& value) { m_reservedInstancesModificationIdsHasBeenSet = true; m_reservedInstancesModificationIds = std::move(value); }
289 
293  inline DescribeReservedInstancesModificationsRequest& WithReservedInstancesModificationIds(const Aws::Vector<Aws::String>& value) { SetReservedInstancesModificationIds(value); return *this;}
294 
298  inline DescribeReservedInstancesModificationsRequest& WithReservedInstancesModificationIds(Aws::Vector<Aws::String>&& value) { SetReservedInstancesModificationIds(std::move(value)); return *this;}
299 
303  inline DescribeReservedInstancesModificationsRequest& AddReservedInstancesModificationIds(const Aws::String& value) { m_reservedInstancesModificationIdsHasBeenSet = true; m_reservedInstancesModificationIds.push_back(value); return *this; }
304 
308  inline DescribeReservedInstancesModificationsRequest& AddReservedInstancesModificationIds(Aws::String&& value) { m_reservedInstancesModificationIdsHasBeenSet = true; m_reservedInstancesModificationIds.push_back(std::move(value)); return *this; }
309 
313  inline DescribeReservedInstancesModificationsRequest& AddReservedInstancesModificationIds(const char* value) { m_reservedInstancesModificationIdsHasBeenSet = true; m_reservedInstancesModificationIds.push_back(value); return *this; }
314 
315 
319  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
320 
324  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
325 
329  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
330 
334  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
335 
339  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
340 
344  inline DescribeReservedInstancesModificationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
345 
349  inline DescribeReservedInstancesModificationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
350 
354  inline DescribeReservedInstancesModificationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
355 
356  private:
357 
358  Aws::Vector<Filter> m_filters;
359  bool m_filtersHasBeenSet;
360 
361  Aws::Vector<Aws::String> m_reservedInstancesModificationIds;
362  bool m_reservedInstancesModificationIdsHasBeenSet;
363 
364  Aws::String m_nextToken;
365  bool m_nextTokenHasBeenSet;
366  };
367 
368 } // namespace Model
369 } // namespace EC2
370 } // namespace Aws
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::AddReservedInstancesModificationIds
DescribeReservedInstancesModificationsRequest & AddReservedInstancesModificationIds(Aws::String &&value)
Definition: DescribeReservedInstancesModificationsRequest.h:308
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::AddFilters
DescribeReservedInstancesModificationsRequest & AddFilters(const Filter &value)
Definition: DescribeReservedInstancesModificationsRequest.h:239
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::SetReservedInstancesModificationIds
void SetReservedInstancesModificationIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeReservedInstancesModificationsRequest.h:288
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::WithReservedInstancesModificationIds
DescribeReservedInstancesModificationsRequest & WithReservedInstancesModificationIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeReservedInstancesModificationsRequest.h:298
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeReservedInstancesModificationsRequest.h:99
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::AddReservedInstancesModificationIds
DescribeReservedInstancesModificationsRequest & AddReservedInstancesModificationIds(const char *value)
Definition: DescribeReservedInstancesModificationsRequest.h:313
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest
Definition: DescribeReservedInstancesModificationsRequest.h:28
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::WithNextToken
DescribeReservedInstancesModificationsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeReservedInstancesModificationsRequest.h:349
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeReservedInstancesModificationsRequest.h:71
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeReservedInstancesModificationsRequest.h:155
Filter.h
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeReservedInstancesModificationsRequest.h:334
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeReservedInstancesModificationsRequest.h:319
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::WithReservedInstancesModificationIds
DescribeReservedInstancesModificationsRequest & WithReservedInstancesModificationIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeReservedInstancesModificationsRequest.h:293
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::AddReservedInstancesModificationIds
DescribeReservedInstancesModificationsRequest & AddReservedInstancesModificationIds(const Aws::String &value)
Definition: DescribeReservedInstancesModificationsRequest.h:303
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::DescribeReservedInstancesModificationsRequest
DescribeReservedInstancesModificationsRequest()
EC2Request.h
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::ReservedInstancesModificationIdsHasBeenSet
bool ReservedInstancesModificationIdsHasBeenSet() const
Definition: DescribeReservedInstancesModificationsRequest.h:278
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeReservedInstancesModificationsRequest.h:324
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::WithNextToken
DescribeReservedInstancesModificationsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeReservedInstancesModificationsRequest.h:344
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeReservedInstancesModificationsRequest.h:127
AWSString.h
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::AddFilters
DescribeReservedInstancesModificationsRequest & AddFilters(Filter &&value)
Definition: DescribeReservedInstancesModificationsRequest.h:267
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::WithFilters
DescribeReservedInstancesModificationsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeReservedInstancesModificationsRequest.h:211
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::SetReservedInstancesModificationIds
void SetReservedInstancesModificationIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeReservedInstancesModificationsRequest.h:283
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeReservedInstancesModificationsRequest.h:36
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::WithFilters
DescribeReservedInstancesModificationsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeReservedInstancesModificationsRequest.h:183
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeReservedInstancesModificationsRequest.h:329
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::WithNextToken
DescribeReservedInstancesModificationsRequest & WithNextToken(const char *value)
Definition: DescribeReservedInstancesModificationsRequest.h:354
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeReservedInstancesModificationsRequest.h:339
EC2_EXPORTS.h
Aws::EC2::Model::DescribeReservedInstancesModificationsRequest::GetReservedInstancesModificationIds
const Aws::Vector< Aws::String > & GetReservedInstancesModificationIds() const
Definition: DescribeReservedInstancesModificationsRequest.h:273