AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeCapacityReservationBillingRequestsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/CallerRole.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/Filter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeCapacityReservationBillingRequests"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::Vector<Aws::String>& GetCapacityReservationIds() const{ return m_capacityReservationIds; }
47 inline bool CapacityReservationIdsHasBeenSet() const { return m_capacityReservationIdsHasBeenSet; }
48 inline void SetCapacityReservationIds(const Aws::Vector<Aws::String>& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds = value; }
49 inline void SetCapacityReservationIds(Aws::Vector<Aws::String>&& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds = std::move(value); }
52 inline DescribeCapacityReservationBillingRequestsRequest& AddCapacityReservationIds(const Aws::String& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds.push_back(value); return *this; }
53 inline DescribeCapacityReservationBillingRequestsRequest& AddCapacityReservationIds(Aws::String&& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds.push_back(std::move(value)); return *this; }
54 inline DescribeCapacityReservationBillingRequestsRequest& AddCapacityReservationIds(const char* value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds.push_back(value); return *this; }
56
58
67 inline const CallerRole& GetRole() const{ return m_role; }
68 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
69 inline void SetRole(const CallerRole& value) { m_roleHasBeenSet = true; m_role = value; }
70 inline void SetRole(CallerRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
72 inline DescribeCapacityReservationBillingRequestsRequest& WithRole(CallerRole&& value) { SetRole(std::move(value)); return *this;}
74
76
79 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
82 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
83 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
86 inline DescribeCapacityReservationBillingRequestsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
88
90
96 inline int GetMaxResults() const{ return m_maxResults; }
97 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
98 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
101
103
114 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
115 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
116 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
117 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
120 inline DescribeCapacityReservationBillingRequestsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
121 inline DescribeCapacityReservationBillingRequestsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
123
125
131 inline bool GetDryRun() const{ return m_dryRun; }
132 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
133 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
134 inline DescribeCapacityReservationBillingRequestsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
136 private:
137
138 Aws::Vector<Aws::String> m_capacityReservationIds;
139 bool m_capacityReservationIdsHasBeenSet = false;
140
141 CallerRole m_role;
142 bool m_roleHasBeenSet = false;
143
144 Aws::String m_nextToken;
145 bool m_nextTokenHasBeenSet = false;
146
147 int m_maxResults;
148 bool m_maxResultsHasBeenSet = false;
149
150 Aws::Vector<Filter> m_filters;
151 bool m_filtersHasBeenSet = false;
152
153 bool m_dryRun;
154 bool m_dryRunHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace EC2
159} // namespace Aws
DescribeCapacityReservationBillingRequestsRequest & WithNextToken(Aws::String &&value)
DescribeCapacityReservationBillingRequestsRequest & WithRole(CallerRole &&value)
DescribeCapacityReservationBillingRequestsRequest & AddCapacityReservationIds(Aws::String &&value)
DescribeCapacityReservationBillingRequestsRequest & AddCapacityReservationIds(const char *value)
DescribeCapacityReservationBillingRequestsRequest & AddFilters(Filter &&value)
DescribeCapacityReservationBillingRequestsRequest & AddFilters(const Filter &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeCapacityReservationBillingRequestsRequest & WithFilters(const Aws::Vector< Filter > &value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeCapacityReservationBillingRequestsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeCapacityReservationBillingRequestsRequest & WithCapacityReservationIds(const Aws::Vector< Aws::String > &value)
DescribeCapacityReservationBillingRequestsRequest & WithCapacityReservationIds(Aws::Vector< Aws::String > &&value)
DescribeCapacityReservationBillingRequestsRequest & WithNextToken(const char *value)
DescribeCapacityReservationBillingRequestsRequest & WithRole(const CallerRole &value)
DescribeCapacityReservationBillingRequestsRequest & AddCapacityReservationIds(const Aws::String &value)
DescribeCapacityReservationBillingRequestsRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector