AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCapacityReservationFleetResponse.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/CapacityReservationFleetState.h>
10#include <aws/ec2/model/FleetInstanceMatchCriteria.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ec2/model/FleetCapacityReservationTenancy.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/ResponseMetadata.h>
15#include <aws/ec2/model/FleetCapacityReservation.h>
16#include <aws/ec2/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Xml
27{
28 class XmlDocument;
29} // namespace Xml
30} // namespace Utils
31namespace EC2
32{
33namespace Model
34{
36 {
37 public:
41
42
44
47 inline const Aws::String& GetCapacityReservationFleetId() const{ return m_capacityReservationFleetId; }
48 inline void SetCapacityReservationFleetId(const Aws::String& value) { m_capacityReservationFleetId = value; }
49 inline void SetCapacityReservationFleetId(Aws::String&& value) { m_capacityReservationFleetId = std::move(value); }
50 inline void SetCapacityReservationFleetId(const char* value) { m_capacityReservationFleetId.assign(value); }
55
57
60 inline const CapacityReservationFleetState& GetState() const{ return m_state; }
61 inline void SetState(const CapacityReservationFleetState& value) { m_state = value; }
62 inline void SetState(CapacityReservationFleetState&& value) { m_state = std::move(value); }
66
68
72 inline int GetTotalTargetCapacity() const{ return m_totalTargetCapacity; }
73 inline void SetTotalTargetCapacity(int value) { m_totalTargetCapacity = value; }
76
78
81 inline double GetTotalFulfilledCapacity() const{ return m_totalFulfilledCapacity; }
82 inline void SetTotalFulfilledCapacity(double value) { m_totalFulfilledCapacity = value; }
85
87
90 inline const FleetInstanceMatchCriteria& GetInstanceMatchCriteria() const{ return m_instanceMatchCriteria; }
91 inline void SetInstanceMatchCriteria(const FleetInstanceMatchCriteria& value) { m_instanceMatchCriteria = value; }
92 inline void SetInstanceMatchCriteria(FleetInstanceMatchCriteria&& value) { m_instanceMatchCriteria = std::move(value); }
96
98
101 inline const Aws::String& GetAllocationStrategy() const{ return m_allocationStrategy; }
102 inline void SetAllocationStrategy(const Aws::String& value) { m_allocationStrategy = value; }
103 inline void SetAllocationStrategy(Aws::String&& value) { m_allocationStrategy = std::move(value); }
104 inline void SetAllocationStrategy(const char* value) { m_allocationStrategy.assign(value); }
109
111
114 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
115 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTime = value; }
116 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTime = std::move(value); }
120
122
125 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
126 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDate = value; }
127 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDate = std::move(value); }
129 inline CreateCapacityReservationFleetResponse& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
131
133
136 inline const FleetCapacityReservationTenancy& GetTenancy() const{ return m_tenancy; }
137 inline void SetTenancy(const FleetCapacityReservationTenancy& value) { m_tenancy = value; }
138 inline void SetTenancy(FleetCapacityReservationTenancy&& value) { m_tenancy = std::move(value); }
142
144
148 inline const Aws::Vector<FleetCapacityReservation>& GetFleetCapacityReservations() const{ return m_fleetCapacityReservations; }
149 inline void SetFleetCapacityReservations(const Aws::Vector<FleetCapacityReservation>& value) { m_fleetCapacityReservations = value; }
150 inline void SetFleetCapacityReservations(Aws::Vector<FleetCapacityReservation>&& value) { m_fleetCapacityReservations = std::move(value); }
153 inline CreateCapacityReservationFleetResponse& AddFleetCapacityReservations(const FleetCapacityReservation& value) { m_fleetCapacityReservations.push_back(value); return *this; }
154 inline CreateCapacityReservationFleetResponse& AddFleetCapacityReservations(FleetCapacityReservation&& value) { m_fleetCapacityReservations.push_back(std::move(value)); return *this; }
156
158
161 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
162 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
163 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
164 inline CreateCapacityReservationFleetResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
165 inline CreateCapacityReservationFleetResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
166 inline CreateCapacityReservationFleetResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
167 inline CreateCapacityReservationFleetResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
169
171
172 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
173 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
174 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
178 private:
179
180 Aws::String m_capacityReservationFleetId;
181
183
184 int m_totalTargetCapacity;
185
186 double m_totalFulfilledCapacity;
187
188 FleetInstanceMatchCriteria m_instanceMatchCriteria;
189
190 Aws::String m_allocationStrategy;
191
192 Aws::Utils::DateTime m_createTime;
193
194 Aws::Utils::DateTime m_endDate;
195
197
198 Aws::Vector<FleetCapacityReservation> m_fleetCapacityReservations;
199
200 Aws::Vector<Tag> m_tags;
201
202 ResponseMetadata m_responseMetadata;
203 };
204
205} // namespace Model
206} // namespace EC2
207} // namespace Aws
const Aws::Vector< FleetCapacityReservation > & GetFleetCapacityReservations() const
void SetFleetCapacityReservations(Aws::Vector< FleetCapacityReservation > &&value)
AWS_EC2_API CreateCapacityReservationFleetResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateCapacityReservationFleetResponse & WithTenancy(const FleetCapacityReservationTenancy &value)
CreateCapacityReservationFleetResponse & WithCreateTime(Aws::Utils::DateTime &&value)
CreateCapacityReservationFleetResponse & WithResponseMetadata(ResponseMetadata &&value)
CreateCapacityReservationFleetResponse & WithAllocationStrategy(const char *value)
CreateCapacityReservationFleetResponse & WithInstanceMatchCriteria(FleetInstanceMatchCriteria &&value)
CreateCapacityReservationFleetResponse & WithAllocationStrategy(const Aws::String &value)
CreateCapacityReservationFleetResponse & AddFleetCapacityReservations(const FleetCapacityReservation &value)
CreateCapacityReservationFleetResponse & WithCapacityReservationFleetId(const Aws::String &value)
CreateCapacityReservationFleetResponse & AddTags(const Tag &value)
CreateCapacityReservationFleetResponse & WithCreateTime(const Aws::Utils::DateTime &value)
CreateCapacityReservationFleetResponse & WithTotalFulfilledCapacity(double value)
CreateCapacityReservationFleetResponse & WithState(const CapacityReservationFleetState &value)
CreateCapacityReservationFleetResponse & WithCapacityReservationFleetId(Aws::String &&value)
CreateCapacityReservationFleetResponse & WithTags(Aws::Vector< Tag > &&value)
CreateCapacityReservationFleetResponse & WithFleetCapacityReservations(const Aws::Vector< FleetCapacityReservation > &value)
CreateCapacityReservationFleetResponse & WithTenancy(FleetCapacityReservationTenancy &&value)
CreateCapacityReservationFleetResponse & WithEndDate(Aws::Utils::DateTime &&value)
CreateCapacityReservationFleetResponse & WithEndDate(const Aws::Utils::DateTime &value)
CreateCapacityReservationFleetResponse & WithCapacityReservationFleetId(const char *value)
CreateCapacityReservationFleetResponse & AddTags(Tag &&value)
CreateCapacityReservationFleetResponse & WithFleetCapacityReservations(Aws::Vector< FleetCapacityReservation > &&value)
CreateCapacityReservationFleetResponse & WithTotalTargetCapacity(int value)
CreateCapacityReservationFleetResponse & WithAllocationStrategy(Aws::String &&value)
void SetFleetCapacityReservations(const Aws::Vector< FleetCapacityReservation > &value)
CreateCapacityReservationFleetResponse & WithState(CapacityReservationFleetState &&value)
CreateCapacityReservationFleetResponse & WithTags(const Aws::Vector< Tag > &value)
CreateCapacityReservationFleetResponse & WithInstanceMatchCriteria(const FleetInstanceMatchCriteria &value)
CreateCapacityReservationFleetResponse & AddFleetCapacityReservations(FleetCapacityReservation &&value)
AWS_EC2_API CreateCapacityReservationFleetResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateCapacityReservationFleetResponse & WithResponseMetadata(const ResponseMetadata &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument