AWS SDK for C++  1.9.123
AWS SDK for C++
GetCapacityReservationUsageResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace Utils
21 {
22 namespace Xml
23 {
24  class XmlDocument;
25 } // namespace Xml
26 } // namespace Utils
27 namespace EC2
28 {
29 namespace Model
30 {
32  {
33  public:
37 
38 
43  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 
49  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
50 
55  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
56 
61  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
62 
67  inline GetCapacityReservationUsageResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
68 
73  inline GetCapacityReservationUsageResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
74 
79  inline GetCapacityReservationUsageResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
80 
81 
85  inline const Aws::String& GetCapacityReservationId() const{ return m_capacityReservationId; }
86 
90  inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationId = value; }
91 
95  inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationId = std::move(value); }
96 
100  inline void SetCapacityReservationId(const char* value) { m_capacityReservationId.assign(value); }
101 
105  inline GetCapacityReservationUsageResponse& WithCapacityReservationId(const Aws::String& value) { SetCapacityReservationId(value); return *this;}
106 
110  inline GetCapacityReservationUsageResponse& WithCapacityReservationId(Aws::String&& value) { SetCapacityReservationId(std::move(value)); return *this;}
111 
115  inline GetCapacityReservationUsageResponse& WithCapacityReservationId(const char* value) { SetCapacityReservationId(value); return *this;}
116 
117 
122  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
123 
128  inline void SetInstanceType(const Aws::String& value) { m_instanceType = value; }
129 
134  inline void SetInstanceType(Aws::String&& value) { m_instanceType = std::move(value); }
135 
140  inline void SetInstanceType(const char* value) { m_instanceType.assign(value); }
141 
146  inline GetCapacityReservationUsageResponse& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
147 
152  inline GetCapacityReservationUsageResponse& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
153 
158  inline GetCapacityReservationUsageResponse& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
159 
160 
165  inline int GetTotalInstanceCount() const{ return m_totalInstanceCount; }
166 
171  inline void SetTotalInstanceCount(int value) { m_totalInstanceCount = value; }
172 
177  inline GetCapacityReservationUsageResponse& WithTotalInstanceCount(int value) { SetTotalInstanceCount(value); return *this;}
178 
179 
184  inline int GetAvailableInstanceCount() const{ return m_availableInstanceCount; }
185 
190  inline void SetAvailableInstanceCount(int value) { m_availableInstanceCount = value; }
191 
196  inline GetCapacityReservationUsageResponse& WithAvailableInstanceCount(int value) { SetAvailableInstanceCount(value); return *this;}
197 
198 
214  inline const CapacityReservationState& GetState() const{ return m_state; }
215 
231  inline void SetState(const CapacityReservationState& value) { m_state = value; }
232 
248  inline void SetState(CapacityReservationState&& value) { m_state = std::move(value); }
249 
265  inline GetCapacityReservationUsageResponse& WithState(const CapacityReservationState& value) { SetState(value); return *this;}
266 
282  inline GetCapacityReservationUsageResponse& WithState(CapacityReservationState&& value) { SetState(std::move(value)); return *this;}
283 
284 
288  inline const Aws::Vector<InstanceUsage>& GetInstanceUsages() const{ return m_instanceUsages; }
289 
293  inline void SetInstanceUsages(const Aws::Vector<InstanceUsage>& value) { m_instanceUsages = value; }
294 
298  inline void SetInstanceUsages(Aws::Vector<InstanceUsage>&& value) { m_instanceUsages = std::move(value); }
299 
303  inline GetCapacityReservationUsageResponse& WithInstanceUsages(const Aws::Vector<InstanceUsage>& value) { SetInstanceUsages(value); return *this;}
304 
308  inline GetCapacityReservationUsageResponse& WithInstanceUsages(Aws::Vector<InstanceUsage>&& value) { SetInstanceUsages(std::move(value)); return *this;}
309 
313  inline GetCapacityReservationUsageResponse& AddInstanceUsages(const InstanceUsage& value) { m_instanceUsages.push_back(value); return *this; }
314 
318  inline GetCapacityReservationUsageResponse& AddInstanceUsages(InstanceUsage&& value) { m_instanceUsages.push_back(std::move(value)); return *this; }
319 
320 
321 
322  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
323 
324 
325  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
326 
327 
328  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
329 
330 
331  inline GetCapacityReservationUsageResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
332 
333 
334  inline GetCapacityReservationUsageResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
335 
336  private:
337 
338  Aws::String m_nextToken;
339 
340  Aws::String m_capacityReservationId;
341 
342  Aws::String m_instanceType;
343 
344  int m_totalInstanceCount;
345 
346  int m_availableInstanceCount;
347 
348  CapacityReservationState m_state;
349 
350  Aws::Vector<InstanceUsage> m_instanceUsages;
351 
352  ResponseMetadata m_responseMetadata;
353  };
354 
355 } // namespace Model
356 } // namespace EC2
357 } // namespace Aws
Aws::EC2::Model::GetCapacityReservationUsageResponse::GetInstanceUsages
const Aws::Vector< InstanceUsage > & GetInstanceUsages() const
Definition: GetCapacityReservationUsageResponse.h:288
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetCapacityReservationUsageResponse.h:55
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetState
void SetState(CapacityReservationState &&value)
Definition: GetCapacityReservationUsageResponse.h:248
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithInstanceType
GetCapacityReservationUsageResponse & WithInstanceType(Aws::String &&value)
Definition: GetCapacityReservationUsageResponse.h:152
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithState
GetCapacityReservationUsageResponse & WithState(CapacityReservationState &&value)
Definition: GetCapacityReservationUsageResponse.h:282
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithAvailableInstanceCount
GetCapacityReservationUsageResponse & WithAvailableInstanceCount(int value)
Definition: GetCapacityReservationUsageResponse.h:196
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithResponseMetadata
GetCapacityReservationUsageResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: GetCapacityReservationUsageResponse.h:331
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithResponseMetadata
GetCapacityReservationUsageResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: GetCapacityReservationUsageResponse.h:334
Aws::EC2::Model::GetCapacityReservationUsageResponse::GetAvailableInstanceCount
int GetAvailableInstanceCount() const
Definition: GetCapacityReservationUsageResponse.h:184
Aws::EC2::Model::GetCapacityReservationUsageResponse::GetTotalInstanceCount
int GetTotalInstanceCount() const
Definition: GetCapacityReservationUsageResponse.h:165
Aws::EC2::Model::GetCapacityReservationUsageResponse::GetCapacityReservationUsageResponse
GetCapacityReservationUsageResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetNextToken
void SetNextToken(const char *value)
Definition: GetCapacityReservationUsageResponse.h:61
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetInstanceType
void SetInstanceType(const char *value)
Definition: GetCapacityReservationUsageResponse.h:140
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetCapacityReservationId
void SetCapacityReservationId(const char *value)
Definition: GetCapacityReservationUsageResponse.h:100
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithCapacityReservationId
GetCapacityReservationUsageResponse & WithCapacityReservationId(const Aws::String &value)
Definition: GetCapacityReservationUsageResponse.h:105
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: GetCapacityReservationUsageResponse.h:325
ResponseMetadata.h
Aws::EC2::Model::GetCapacityReservationUsageResponse::operator=
GetCapacityReservationUsageResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::GetCapacityReservationUsageResponse::GetState
const CapacityReservationState & GetState() const
Definition: GetCapacityReservationUsageResponse.h:214
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithInstanceType
GetCapacityReservationUsageResponse & WithInstanceType(const Aws::String &value)
Definition: GetCapacityReservationUsageResponse.h:146
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetInstanceUsages
void SetInstanceUsages(Aws::Vector< InstanceUsage > &&value)
Definition: GetCapacityReservationUsageResponse.h:298
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetAvailableInstanceCount
void SetAvailableInstanceCount(int value)
Definition: GetCapacityReservationUsageResponse.h:190
AWSVector.h
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetCapacityReservationId
void SetCapacityReservationId(const Aws::String &value)
Definition: GetCapacityReservationUsageResponse.h:90
Aws::EC2::Model::GetCapacityReservationUsageResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: GetCapacityReservationUsageResponse.h:322
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: GetCapacityReservationUsageResponse.h:328
Aws::EC2::Model::InstanceUsage
Definition: InstanceUsage.h:33
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithInstanceUsages
GetCapacityReservationUsageResponse & WithInstanceUsages(Aws::Vector< InstanceUsage > &&value)
Definition: GetCapacityReservationUsageResponse.h:308
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetCapacityReservationId
void SetCapacityReservationId(Aws::String &&value)
Definition: GetCapacityReservationUsageResponse.h:95
Aws::EC2::Model::CapacityReservationState
CapacityReservationState
Definition: CapacityReservationState.h:17
Aws::EC2::Model::GetCapacityReservationUsageResponse::GetInstanceType
const Aws::String & GetInstanceType() const
Definition: GetCapacityReservationUsageResponse.h:122
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetInstanceType
void SetInstanceType(const Aws::String &value)
Definition: GetCapacityReservationUsageResponse.h:128
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetInstanceType
void SetInstanceType(Aws::String &&value)
Definition: GetCapacityReservationUsageResponse.h:134
Aws::EC2::Model::GetCapacityReservationUsageResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetCapacityReservationUsageResponse.h:43
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithInstanceUsages
GetCapacityReservationUsageResponse & WithInstanceUsages(const Aws::Vector< InstanceUsage > &value)
Definition: GetCapacityReservationUsageResponse.h:303
Aws::EC2::Model::GetCapacityReservationUsageResponse::GetCapacityReservationId
const Aws::String & GetCapacityReservationId() const
Definition: GetCapacityReservationUsageResponse.h:85
Aws::EC2::Model::GetCapacityReservationUsageResponse::AddInstanceUsages
GetCapacityReservationUsageResponse & AddInstanceUsages(InstanceUsage &&value)
Definition: GetCapacityReservationUsageResponse.h:318
CapacityReservationState.h
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetInstanceUsages
void SetInstanceUsages(const Aws::Vector< InstanceUsage > &value)
Definition: GetCapacityReservationUsageResponse.h:293
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetState
void SetState(const CapacityReservationState &value)
Definition: GetCapacityReservationUsageResponse.h:231
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithNextToken
GetCapacityReservationUsageResponse & WithNextToken(Aws::String &&value)
Definition: GetCapacityReservationUsageResponse.h:73
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithNextToken
GetCapacityReservationUsageResponse & WithNextToken(const char *value)
Definition: GetCapacityReservationUsageResponse.h:79
Aws::EC2::Model::GetCapacityReservationUsageResponse::GetCapacityReservationUsageResponse
GetCapacityReservationUsageResponse()
InstanceUsage.h
Aws::EC2::Model::GetCapacityReservationUsageResponse
Definition: GetCapacityReservationUsageResponse.h:32
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetTotalInstanceCount
void SetTotalInstanceCount(int value)
Definition: GetCapacityReservationUsageResponse.h:171
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithInstanceType
GetCapacityReservationUsageResponse & WithInstanceType(const char *value)
Definition: GetCapacityReservationUsageResponse.h:158
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithCapacityReservationId
GetCapacityReservationUsageResponse & WithCapacityReservationId(const char *value)
Definition: GetCapacityReservationUsageResponse.h:115
Aws::EC2::Model::GetCapacityReservationUsageResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetCapacityReservationUsageResponse.h:49
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithCapacityReservationId
GetCapacityReservationUsageResponse & WithCapacityReservationId(Aws::String &&value)
Definition: GetCapacityReservationUsageResponse.h:110
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithTotalInstanceCount
GetCapacityReservationUsageResponse & WithTotalInstanceCount(int value)
Definition: GetCapacityReservationUsageResponse.h:177
EC2_EXPORTS.h
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithNextToken
GetCapacityReservationUsageResponse & WithNextToken(const Aws::String &value)
Definition: GetCapacityReservationUsageResponse.h:67
Aws::EC2::Model::GetCapacityReservationUsageResponse::AddInstanceUsages
GetCapacityReservationUsageResponse & AddInstanceUsages(const InstanceUsage &value)
Definition: GetCapacityReservationUsageResponse.h:313
Aws::EC2::Model::GetCapacityReservationUsageResponse::WithState
GetCapacityReservationUsageResponse & WithState(const CapacityReservationState &value)
Definition: GetCapacityReservationUsageResponse.h:265