AWS SDK for C++  1.9.71
AWS SDK for C++
GetCapacityReservationUsageRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetCapacityReservationUsage"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetCapacityReservationId() const{ return m_capacityReservationId; }
43 
47  inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
48 
52  inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = value; }
53 
57  inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = std::move(value); }
58 
62  inline void SetCapacityReservationId(const char* value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId.assign(value); }
63 
67  inline GetCapacityReservationUsageRequest& WithCapacityReservationId(const Aws::String& value) { SetCapacityReservationId(value); return *this;}
68 
72  inline GetCapacityReservationUsageRequest& WithCapacityReservationId(Aws::String&& value) { SetCapacityReservationId(std::move(value)); return *this;}
73 
77  inline GetCapacityReservationUsageRequest& WithCapacityReservationId(const char* value) { SetCapacityReservationId(value); return *this;}
78 
79 
83  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
84 
88  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 
93  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
94 
98  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
99 
103  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
104 
108  inline GetCapacityReservationUsageRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 
113  inline GetCapacityReservationUsageRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
118  inline GetCapacityReservationUsageRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
119 
120 
128  inline int GetMaxResults() const{ return m_maxResults; }
129 
137  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
138 
146  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
147 
155  inline GetCapacityReservationUsageRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
156 
157 
164  inline bool GetDryRun() const{ return m_dryRun; }
165 
172  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
173 
180  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
181 
188  inline GetCapacityReservationUsageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
189 
190  private:
191 
192  Aws::String m_capacityReservationId;
193  bool m_capacityReservationIdHasBeenSet;
194 
195  Aws::String m_nextToken;
196  bool m_nextTokenHasBeenSet;
197 
198  int m_maxResults;
199  bool m_maxResultsHasBeenSet;
200 
201  bool m_dryRun;
202  bool m_dryRunHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace EC2
207 } // namespace Aws
Aws::EC2::Model::GetCapacityReservationUsageRequest::GetMaxResults
int GetMaxResults() const
Definition: GetCapacityReservationUsageRequest.h:128
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::GetCapacityReservationUsageRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetCapacityReservationUsageRequest.h:146
Aws::EC2::Model::GetCapacityReservationUsageRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::GetCapacityReservationUsageRequest::SetCapacityReservationId
void SetCapacityReservationId(Aws::String &&value)
Definition: GetCapacityReservationUsageRequest.h:57
Aws::EC2::Model::GetCapacityReservationUsageRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetCapacityReservationUsageRequest.h:93
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::GetCapacityReservationUsageRequest
Definition: GetCapacityReservationUsageRequest.h:22
Aws::EC2::Model::GetCapacityReservationUsageRequest::WithNextToken
GetCapacityReservationUsageRequest & WithNextToken(Aws::String &&value)
Definition: GetCapacityReservationUsageRequest.h:113
Aws::EC2::Model::GetCapacityReservationUsageRequest::WithCapacityReservationId
GetCapacityReservationUsageRequest & WithCapacityReservationId(const char *value)
Definition: GetCapacityReservationUsageRequest.h:77
Aws::EC2::Model::GetCapacityReservationUsageRequest::WithMaxResults
GetCapacityReservationUsageRequest & WithMaxResults(int value)
Definition: GetCapacityReservationUsageRequest.h:155
Aws::EC2::Model::GetCapacityReservationUsageRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: GetCapacityReservationUsageRequest.h:172
Aws::EC2::Model::GetCapacityReservationUsageRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetCapacityReservationUsageRequest.h:98
Aws::EC2::Model::GetCapacityReservationUsageRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetCapacityReservationUsageRequest.h:137
Aws::EC2::Model::GetCapacityReservationUsageRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetCapacityReservationUsageRequest.h:88
Aws::EC2::Model::GetCapacityReservationUsageRequest::GetCapacityReservationId
const Aws::String & GetCapacityReservationId() const
Definition: GetCapacityReservationUsageRequest.h:42
Aws::EC2::Model::GetCapacityReservationUsageRequest::SetCapacityReservationId
void SetCapacityReservationId(const char *value)
Definition: GetCapacityReservationUsageRequest.h:62
Aws::EC2::Model::GetCapacityReservationUsageRequest::WithNextToken
GetCapacityReservationUsageRequest & WithNextToken(const Aws::String &value)
Definition: GetCapacityReservationUsageRequest.h:108
EC2Request.h
Aws::EC2::Model::GetCapacityReservationUsageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetCapacityReservationUsageRequest.h:30
Aws::EC2::Model::GetCapacityReservationUsageRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetCapacityReservationUsageRequest.h:103
Aws::EC2::Model::GetCapacityReservationUsageRequest::GetDryRun
bool GetDryRun() const
Definition: GetCapacityReservationUsageRequest.h:164
Aws::EC2::Model::GetCapacityReservationUsageRequest::SetCapacityReservationId
void SetCapacityReservationId(const Aws::String &value)
Definition: GetCapacityReservationUsageRequest.h:52
AWSString.h
Aws::EC2::Model::GetCapacityReservationUsageRequest::WithNextToken
GetCapacityReservationUsageRequest & WithNextToken(const char *value)
Definition: GetCapacityReservationUsageRequest.h:118
Aws::EC2::Model::GetCapacityReservationUsageRequest::GetCapacityReservationUsageRequest
GetCapacityReservationUsageRequest()
Aws::EC2::Model::GetCapacityReservationUsageRequest::WithDryRun
GetCapacityReservationUsageRequest & WithDryRun(bool value)
Definition: GetCapacityReservationUsageRequest.h:188
Aws::EC2::Model::GetCapacityReservationUsageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::GetCapacityReservationUsageRequest::SetDryRun
void SetDryRun(bool value)
Definition: GetCapacityReservationUsageRequest.h:180
Aws::EC2::Model::GetCapacityReservationUsageRequest::CapacityReservationIdHasBeenSet
bool CapacityReservationIdHasBeenSet() const
Definition: GetCapacityReservationUsageRequest.h:47
Aws::EC2::Model::GetCapacityReservationUsageRequest::WithCapacityReservationId
GetCapacityReservationUsageRequest & WithCapacityReservationId(Aws::String &&value)
Definition: GetCapacityReservationUsageRequest.h:72
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::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::GetCapacityReservationUsageRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetCapacityReservationUsageRequest.h:83
Aws::EC2::Model::GetCapacityReservationUsageRequest::WithCapacityReservationId
GetCapacityReservationUsageRequest & WithCapacityReservationId(const Aws::String &value)
Definition: GetCapacityReservationUsageRequest.h:67