AWS SDK for C++  1.9.73
AWS SDK for C++
DescribeReservedInstancesRequest.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>
12 #include <aws/ec2/model/Filter.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace EC2
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "DescribeReservedInstances"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  protected:
43  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44 
45  public:
46 
87  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
88 
129  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
130 
171  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
172 
213  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
214 
255  inline DescribeReservedInstancesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
256 
297  inline DescribeReservedInstancesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
298 
339  inline DescribeReservedInstancesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
340 
381  inline DescribeReservedInstancesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
382 
383 
387  inline const OfferingClassType& GetOfferingClass() const{ return m_offeringClass; }
388 
392  inline bool OfferingClassHasBeenSet() const { return m_offeringClassHasBeenSet; }
393 
397  inline void SetOfferingClass(const OfferingClassType& value) { m_offeringClassHasBeenSet = true; m_offeringClass = value; }
398 
402  inline void SetOfferingClass(OfferingClassType&& value) { m_offeringClassHasBeenSet = true; m_offeringClass = std::move(value); }
403 
407  inline DescribeReservedInstancesRequest& WithOfferingClass(const OfferingClassType& value) { SetOfferingClass(value); return *this;}
408 
412  inline DescribeReservedInstancesRequest& WithOfferingClass(OfferingClassType&& value) { SetOfferingClass(std::move(value)); return *this;}
413 
414 
419  inline const Aws::Vector<Aws::String>& GetReservedInstancesIds() const{ return m_reservedInstancesIds; }
420 
425  inline bool ReservedInstancesIdsHasBeenSet() const { return m_reservedInstancesIdsHasBeenSet; }
426 
431  inline void SetReservedInstancesIds(const Aws::Vector<Aws::String>& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds = value; }
432 
437  inline void SetReservedInstancesIds(Aws::Vector<Aws::String>&& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds = std::move(value); }
438 
443  inline DescribeReservedInstancesRequest& WithReservedInstancesIds(const Aws::Vector<Aws::String>& value) { SetReservedInstancesIds(value); return *this;}
444 
449  inline DescribeReservedInstancesRequest& WithReservedInstancesIds(Aws::Vector<Aws::String>&& value) { SetReservedInstancesIds(std::move(value)); return *this;}
450 
455  inline DescribeReservedInstancesRequest& AddReservedInstancesIds(const Aws::String& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(value); return *this; }
456 
461  inline DescribeReservedInstancesRequest& AddReservedInstancesIds(Aws::String&& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(std::move(value)); return *this; }
462 
467  inline DescribeReservedInstancesRequest& AddReservedInstancesIds(const char* value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(value); return *this; }
468 
469 
476  inline bool GetDryRun() const{ return m_dryRun; }
477 
484  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
485 
492  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
493 
500  inline DescribeReservedInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
501 
502 
508  inline const OfferingTypeValues& GetOfferingType() const{ return m_offeringType; }
509 
515  inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
516 
522  inline void SetOfferingType(const OfferingTypeValues& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
523 
529  inline void SetOfferingType(OfferingTypeValues&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
530 
536  inline DescribeReservedInstancesRequest& WithOfferingType(const OfferingTypeValues& value) { SetOfferingType(value); return *this;}
537 
543  inline DescribeReservedInstancesRequest& WithOfferingType(OfferingTypeValues&& value) { SetOfferingType(std::move(value)); return *this;}
544 
545  private:
546 
547  Aws::Vector<Filter> m_filters;
548  bool m_filtersHasBeenSet;
549 
550  OfferingClassType m_offeringClass;
551  bool m_offeringClassHasBeenSet;
552 
553  Aws::Vector<Aws::String> m_reservedInstancesIds;
554  bool m_reservedInstancesIdsHasBeenSet;
555 
556  bool m_dryRun;
557  bool m_dryRunHasBeenSet;
558 
559  OfferingTypeValues m_offeringType;
560  bool m_offeringTypeHasBeenSet;
561  };
562 
563 } // namespace Model
564 } // namespace EC2
565 } // namespace Aws
Aws::EC2::Model::DescribeReservedInstancesRequest::AddReservedInstancesIds
DescribeReservedInstancesRequest & AddReservedInstancesIds(const char *value)
Definition: DescribeReservedInstancesRequest.h:467
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeReservedInstancesRequest::WithFilters
DescribeReservedInstancesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeReservedInstancesRequest.h:255
OfferingTypeValues.h
Aws::EC2::Model::DescribeReservedInstancesRequest::OfferingTypeHasBeenSet
bool OfferingTypeHasBeenSet() const
Definition: DescribeReservedInstancesRequest.h:515
Aws::EC2::Model::DescribeReservedInstancesRequest::SetReservedInstancesIds
void SetReservedInstancesIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeReservedInstancesRequest.h:431
Aws::EC2::Model::DescribeReservedInstancesRequest::ReservedInstancesIdsHasBeenSet
bool ReservedInstancesIdsHasBeenSet() const
Definition: DescribeReservedInstancesRequest.h:425
Aws::EC2::Model::DescribeReservedInstancesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeReservedInstancesRequest.h:213
Aws::EC2::Model::DescribeReservedInstancesRequest::OfferingClassHasBeenSet
bool OfferingClassHasBeenSet() const
Definition: DescribeReservedInstancesRequest.h:392
Aws::EC2::Model::DescribeReservedInstancesRequest::SetOfferingClass
void SetOfferingClass(const OfferingClassType &value)
Definition: DescribeReservedInstancesRequest.h:397
Aws::EC2::Model::DescribeReservedInstancesRequest::DescribeReservedInstancesRequest
DescribeReservedInstancesRequest()
Aws::EC2::Model::DescribeReservedInstancesRequest::WithOfferingType
DescribeReservedInstancesRequest & WithOfferingType(const OfferingTypeValues &value)
Definition: DescribeReservedInstancesRequest.h:536
Aws::EC2::Model::OfferingClassType
OfferingClassType
Definition: OfferingClassType.h:17
Aws::EC2::Model::DescribeReservedInstancesRequest
Definition: DescribeReservedInstancesRequest.h:30
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::DescribeReservedInstancesRequest::SetOfferingClass
void SetOfferingClass(OfferingClassType &&value)
Definition: DescribeReservedInstancesRequest.h:402
AWSVector.h
Aws::EC2::Model::DescribeReservedInstancesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeReservedInstancesRequest.h:87
Aws::EC2::Model::DescribeReservedInstancesRequest::AddReservedInstancesIds
DescribeReservedInstancesRequest & AddReservedInstancesIds(const Aws::String &value)
Definition: DescribeReservedInstancesRequest.h:455
Filter.h
Aws::EC2::Model::DescribeReservedInstancesRequest::AddFilters
DescribeReservedInstancesRequest & AddFilters(const Filter &value)
Definition: DescribeReservedInstancesRequest.h:339
Aws::EC2::Model::DescribeReservedInstancesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeReservedInstancesRequest.h:129
Aws::EC2::Model::DescribeReservedInstancesRequest::GetOfferingType
const OfferingTypeValues & GetOfferingType() const
Definition: DescribeReservedInstancesRequest.h:508
Aws::EC2::Model::DescribeReservedInstancesRequest::SetOfferingType
void SetOfferingType(OfferingTypeValues &&value)
Definition: DescribeReservedInstancesRequest.h:529
Aws::EC2::Model::DescribeReservedInstancesRequest::SetReservedInstancesIds
void SetReservedInstancesIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeReservedInstancesRequest.h:437
EC2Request.h
Aws::EC2::Model::DescribeReservedInstancesRequest::WithReservedInstancesIds
DescribeReservedInstancesRequest & WithReservedInstancesIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeReservedInstancesRequest.h:449
AWSString.h
Aws::EC2::Model::DescribeReservedInstancesRequest::GetOfferingClass
const OfferingClassType & GetOfferingClass() const
Definition: DescribeReservedInstancesRequest.h:387
Aws::EC2::Model::DescribeReservedInstancesRequest::WithOfferingClass
DescribeReservedInstancesRequest & WithOfferingClass(OfferingClassType &&value)
Definition: DescribeReservedInstancesRequest.h:412
Aws::EC2::Model::DescribeReservedInstancesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeReservedInstancesRequest.h:484
Aws::EC2::Model::DescribeReservedInstancesRequest::WithFilters
DescribeReservedInstancesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeReservedInstancesRequest.h:297
Aws::EC2::Model::DescribeReservedInstancesRequest::AddReservedInstancesIds
DescribeReservedInstancesRequest & AddReservedInstancesIds(Aws::String &&value)
Definition: DescribeReservedInstancesRequest.h:461
Aws::EC2::Model::DescribeReservedInstancesRequest::GetReservedInstancesIds
const Aws::Vector< Aws::String > & GetReservedInstancesIds() const
Definition: DescribeReservedInstancesRequest.h:419
Aws::EC2::Model::DescribeReservedInstancesRequest::WithOfferingType
DescribeReservedInstancesRequest & WithOfferingType(OfferingTypeValues &&value)
Definition: DescribeReservedInstancesRequest.h:543
Aws::EC2::Model::DescribeReservedInstancesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeReservedInstancesRequest.h:171
Aws::EC2::Model::DescribeReservedInstancesRequest::SetOfferingType
void SetOfferingType(const OfferingTypeValues &value)
Definition: DescribeReservedInstancesRequest.h:522
Aws::EC2::Model::DescribeReservedInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeReservedInstancesRequest.h:38
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeReservedInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
OfferingClassType.h
Aws::EC2::Model::DescribeReservedInstancesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeReservedInstancesRequest::AddFilters
DescribeReservedInstancesRequest & AddFilters(Filter &&value)
Definition: DescribeReservedInstancesRequest.h:381
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::DescribeReservedInstancesRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeReservedInstancesRequest.h:492
Aws::EC2::Model::OfferingTypeValues
OfferingTypeValues
Definition: OfferingTypeValues.h:17
EC2_EXPORTS.h
Aws::EC2::Model::DescribeReservedInstancesRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeReservedInstancesRequest.h:476
Aws::EC2::Model::DescribeReservedInstancesRequest::WithOfferingClass
DescribeReservedInstancesRequest & WithOfferingClass(const OfferingClassType &value)
Definition: DescribeReservedInstancesRequest.h:407
Aws::EC2::Model::DescribeReservedInstancesRequest::WithReservedInstancesIds
DescribeReservedInstancesRequest & WithReservedInstancesIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeReservedInstancesRequest.h:443
Aws::EC2::Model::DescribeReservedInstancesRequest::WithDryRun
DescribeReservedInstancesRequest & WithDryRun(bool value)
Definition: DescribeReservedInstancesRequest.h:500