AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCapacityReservationUsageResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/model/CapacityReservationState.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12#include <aws/ec2/model/InstanceUsage.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Xml
23{
24 class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
32 {
33 public:
37
38
40
44 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
45 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
46 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
47 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
48 inline GetCapacityReservationUsageResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
49 inline GetCapacityReservationUsageResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
50 inline GetCapacityReservationUsageResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
52
54
57 inline const Aws::String& GetCapacityReservationId() const{ return m_capacityReservationId; }
58 inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationId = value; }
59 inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationId = std::move(value); }
60 inline void SetCapacityReservationId(const char* value) { m_capacityReservationId.assign(value); }
65
67
71 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
72 inline void SetInstanceType(const Aws::String& value) { m_instanceType = value; }
73 inline void SetInstanceType(Aws::String&& value) { m_instanceType = std::move(value); }
74 inline void SetInstanceType(const char* value) { m_instanceType.assign(value); }
76 inline GetCapacityReservationUsageResponse& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
77 inline GetCapacityReservationUsageResponse& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
79
81
85 inline int GetTotalInstanceCount() const{ return m_totalInstanceCount; }
86 inline void SetTotalInstanceCount(int value) { m_totalInstanceCount = value; }
89
91
95 inline int GetAvailableInstanceCount() const{ return m_availableInstanceCount; }
96 inline void SetAvailableInstanceCount(int value) { m_availableInstanceCount = value; }
99
101
116 inline const CapacityReservationState& GetState() const{ return m_state; }
117 inline void SetState(const CapacityReservationState& value) { m_state = value; }
118 inline void SetState(CapacityReservationState&& value) { m_state = std::move(value); }
120 inline GetCapacityReservationUsageResponse& WithState(CapacityReservationState&& value) { SetState(std::move(value)); return *this;}
122
124
127 inline const Aws::Vector<InstanceUsage>& GetInstanceUsages() const{ return m_instanceUsages; }
128 inline void SetInstanceUsages(const Aws::Vector<InstanceUsage>& value) { m_instanceUsages = value; }
129 inline void SetInstanceUsages(Aws::Vector<InstanceUsage>&& value) { m_instanceUsages = std::move(value); }
132 inline GetCapacityReservationUsageResponse& AddInstanceUsages(const InstanceUsage& value) { m_instanceUsages.push_back(value); return *this; }
133 inline GetCapacityReservationUsageResponse& AddInstanceUsages(InstanceUsage&& value) { m_instanceUsages.push_back(std::move(value)); return *this; }
135
137
138 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
139 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
140 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
144 private:
145
146 Aws::String m_nextToken;
147
148 Aws::String m_capacityReservationId;
149
150 Aws::String m_instanceType;
151
152 int m_totalInstanceCount;
153
154 int m_availableInstanceCount;
155
157
158 Aws::Vector<InstanceUsage> m_instanceUsages;
159
160 ResponseMetadata m_responseMetadata;
161 };
162
163} // namespace Model
164} // namespace EC2
165} // namespace Aws
GetCapacityReservationUsageResponse & WithNextToken(const Aws::String &value)
AWS_EC2_API GetCapacityReservationUsageResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetCapacityReservationUsageResponse & AddInstanceUsages(const InstanceUsage &value)
GetCapacityReservationUsageResponse & WithTotalInstanceCount(int value)
GetCapacityReservationUsageResponse & WithInstanceType(Aws::String &&value)
GetCapacityReservationUsageResponse & WithInstanceUsages(const Aws::Vector< InstanceUsage > &value)
GetCapacityReservationUsageResponse & WithInstanceUsages(Aws::Vector< InstanceUsage > &&value)
GetCapacityReservationUsageResponse & WithState(CapacityReservationState &&value)
GetCapacityReservationUsageResponse & WithNextToken(const char *value)
GetCapacityReservationUsageResponse & WithInstanceType(const char *value)
GetCapacityReservationUsageResponse & WithResponseMetadata(ResponseMetadata &&value)
GetCapacityReservationUsageResponse & WithResponseMetadata(const ResponseMetadata &value)
GetCapacityReservationUsageResponse & WithCapacityReservationId(const Aws::String &value)
GetCapacityReservationUsageResponse & WithState(const CapacityReservationState &value)
GetCapacityReservationUsageResponse & WithAvailableInstanceCount(int value)
GetCapacityReservationUsageResponse & WithCapacityReservationId(Aws::String &&value)
GetCapacityReservationUsageResponse & WithInstanceType(const Aws::String &value)
void SetInstanceUsages(const Aws::Vector< InstanceUsage > &value)
GetCapacityReservationUsageResponse & WithCapacityReservationId(const char *value)
GetCapacityReservationUsageResponse & AddInstanceUsages(InstanceUsage &&value)
GetCapacityReservationUsageResponse & WithNextToken(Aws::String &&value)
AWS_EC2_API GetCapacityReservationUsageResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument