AWS SDK for C++  1.9.15
AWS SDK for C++
DescribeCapacityReservationsRequest.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 "DescribeCapacityReservations"; }
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>& GetCapacityReservationIds() const{ return m_capacityReservationIds; }
45 
49  inline bool CapacityReservationIdsHasBeenSet() const { return m_capacityReservationIdsHasBeenSet; }
50 
54  inline void SetCapacityReservationIds(const Aws::Vector<Aws::String>& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds = value; }
55 
59  inline void SetCapacityReservationIds(Aws::Vector<Aws::String>&& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds = std::move(value); }
60 
64  inline DescribeCapacityReservationsRequest& WithCapacityReservationIds(const Aws::Vector<Aws::String>& value) { SetCapacityReservationIds(value); return *this;}
65 
69  inline DescribeCapacityReservationsRequest& WithCapacityReservationIds(Aws::Vector<Aws::String>&& value) { SetCapacityReservationIds(std::move(value)); return *this;}
70 
74  inline DescribeCapacityReservationsRequest& AddCapacityReservationIds(const Aws::String& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds.push_back(value); return *this; }
75 
79  inline DescribeCapacityReservationsRequest& AddCapacityReservationIds(Aws::String&& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeCapacityReservationsRequest& AddCapacityReservationIds(const char* value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds.push_back(value); return *this; }
85 
86 
90  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
91 
95  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 
100  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
101 
105  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
106 
110  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
111 
115  inline DescribeCapacityReservationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
116 
120  inline DescribeCapacityReservationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
121 
125  inline DescribeCapacityReservationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
126 
127 
135  inline int GetMaxResults() const{ return m_maxResults; }
136 
144  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
145 
153  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
154 
162  inline DescribeCapacityReservationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
163 
164 
215  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
216 
267  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
268 
319  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
320 
371  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
372 
423  inline DescribeCapacityReservationsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
424 
475  inline DescribeCapacityReservationsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
476 
527  inline DescribeCapacityReservationsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
528 
579  inline DescribeCapacityReservationsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
580 
581 
588  inline bool GetDryRun() const{ return m_dryRun; }
589 
596  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
597 
604  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
605 
612  inline DescribeCapacityReservationsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
613 
614  private:
615 
616  Aws::Vector<Aws::String> m_capacityReservationIds;
617  bool m_capacityReservationIdsHasBeenSet;
618 
619  Aws::String m_nextToken;
620  bool m_nextTokenHasBeenSet;
621 
622  int m_maxResults;
623  bool m_maxResultsHasBeenSet;
624 
625  Aws::Vector<Filter> m_filters;
626  bool m_filtersHasBeenSet;
627 
628  bool m_dryRun;
629  bool m_dryRunHasBeenSet;
630  };
631 
632 } // namespace Model
633 } // namespace EC2
634 } // namespace Aws
Aws::EC2::Model::DescribeCapacityReservationsRequest::AddCapacityReservationIds
DescribeCapacityReservationsRequest & AddCapacityReservationIds(Aws::String &&value)
Definition: DescribeCapacityReservationsRequest.h:79
Aws::EC2::Model::DescribeCapacityReservationsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeCapacityReservationsRequest.h:604
Aws::EC2::Model::DescribeCapacityReservationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeCapacityReservationsRequest.h:110
Aws::EC2::Model::DescribeCapacityReservationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeCapacityReservationsRequest.h:100
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeCapacityReservationsRequest::CapacityReservationIdsHasBeenSet
bool CapacityReservationIdsHasBeenSet() const
Definition: DescribeCapacityReservationsRequest.h:49
Aws::EC2::Model::DescribeCapacityReservationsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeCapacityReservationsRequest.h:267
Aws::EC2::Model::DescribeCapacityReservationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeCapacityReservationsRequest.h:105
Aws::EC2::Model::DescribeCapacityReservationsRequest
Definition: DescribeCapacityReservationsRequest.h:24
Aws::EC2::Model::DescribeCapacityReservationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeCapacityReservationsRequest.h:153
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeCapacityReservationsRequest::WithNextToken
DescribeCapacityReservationsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeCapacityReservationsRequest.h:120
Aws::EC2::Model::DescribeCapacityReservationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeCapacityReservationsRequest.h:95
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeCapacityReservationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeCapacityReservationsRequest.h:144
AWSVector.h
Aws::EC2::Model::DescribeCapacityReservationsRequest::AddCapacityReservationIds
DescribeCapacityReservationsRequest & AddCapacityReservationIds(const char *value)
Definition: DescribeCapacityReservationsRequest.h:84
Filter.h
Aws::EC2::Model::DescribeCapacityReservationsRequest::AddFilters
DescribeCapacityReservationsRequest & AddFilters(const Filter &value)
Definition: DescribeCapacityReservationsRequest.h:527
Aws::EC2::Model::DescribeCapacityReservationsRequest::WithNextToken
DescribeCapacityReservationsRequest & WithNextToken(const char *value)
Definition: DescribeCapacityReservationsRequest.h:125
Aws::EC2::Model::DescribeCapacityReservationsRequest::WithFilters
DescribeCapacityReservationsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeCapacityReservationsRequest.h:423
Aws::EC2::Model::DescribeCapacityReservationsRequest::SetCapacityReservationIds
void SetCapacityReservationIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeCapacityReservationsRequest.h:54
Aws::EC2::Model::DescribeCapacityReservationsRequest::WithDryRun
DescribeCapacityReservationsRequest & WithDryRun(bool value)
Definition: DescribeCapacityReservationsRequest.h:612
Aws::EC2::Model::DescribeCapacityReservationsRequest::SetCapacityReservationIds
void SetCapacityReservationIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeCapacityReservationsRequest.h:59
EC2Request.h
Aws::EC2::Model::DescribeCapacityReservationsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeCapacityReservationsRequest.h:135
Aws::EC2::Model::DescribeCapacityReservationsRequest::GetCapacityReservationIds
const Aws::Vector< Aws::String > & GetCapacityReservationIds() const
Definition: DescribeCapacityReservationsRequest.h:44
Aws::EC2::Model::DescribeCapacityReservationsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeCapacityReservationsRequest.h:319
AWSString.h
Aws::EC2::Model::DescribeCapacityReservationsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeCapacityReservationsRequest.h:215
Aws::EC2::Model::DescribeCapacityReservationsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeCapacityReservationsRequest.h:371
Aws::EC2::Model::DescribeCapacityReservationsRequest::DescribeCapacityReservationsRequest
DescribeCapacityReservationsRequest()
Aws::EC2::Model::DescribeCapacityReservationsRequest::WithMaxResults
DescribeCapacityReservationsRequest & WithMaxResults(int value)
Definition: DescribeCapacityReservationsRequest.h:162
Aws::EC2::Model::DescribeCapacityReservationsRequest::WithCapacityReservationIds
DescribeCapacityReservationsRequest & WithCapacityReservationIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeCapacityReservationsRequest.h:69
Aws::EC2::Model::DescribeCapacityReservationsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeCapacityReservationsRequest.h:596
Aws::EC2::Model::DescribeCapacityReservationsRequest::AddCapacityReservationIds
DescribeCapacityReservationsRequest & AddCapacityReservationIds(const Aws::String &value)
Definition: DescribeCapacityReservationsRequest.h:74
Aws::EC2::Model::DescribeCapacityReservationsRequest::WithNextToken
DescribeCapacityReservationsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeCapacityReservationsRequest.h:115
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeCapacityReservationsRequest::AddFilters
DescribeCapacityReservationsRequest & AddFilters(Filter &&value)
Definition: DescribeCapacityReservationsRequest.h:579
Aws::EC2::Model::DescribeCapacityReservationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeCapacityReservationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeCapacityReservationsRequest.h:32
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::DescribeCapacityReservationsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeCapacityReservationsRequest.h:588
Aws::EC2::Model::DescribeCapacityReservationsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2_EXPORTS.h
Aws::EC2::Model::DescribeCapacityReservationsRequest::WithCapacityReservationIds
DescribeCapacityReservationsRequest & WithCapacityReservationIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeCapacityReservationsRequest.h:64
Aws::EC2::Model::DescribeCapacityReservationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeCapacityReservationsRequest.h:90
Aws::EC2::Model::DescribeCapacityReservationsRequest::WithFilters
DescribeCapacityReservationsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeCapacityReservationsRequest.h:475