7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/CapacityBlockResourceState.h>
13#include <aws/ec2/model/Tag.h>
55 template <
typename CapacityBlockIdT = Aws::String>
57 m_capacityBlockIdHasBeenSet =
true;
58 m_capacityBlockId = std::forward<CapacityBlockIdT>(value);
60 template <
typename CapacityBlockIdT = Aws::String>
73 template <
typename UltraserverTypeT = Aws::String>
75 m_ultraserverTypeHasBeenSet =
true;
76 m_ultraserverType = std::forward<UltraserverTypeT>(value);
78 template <
typename UltraserverTypeT = Aws::String>
91 template <
typename AvailabilityZoneT = Aws::String>
93 m_availabilityZoneHasBeenSet =
true;
94 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
96 template <
typename AvailabilityZoneT = Aws::String>
109 template <
typename AvailabilityZoneIdT = Aws::String>
111 m_availabilityZoneIdHasBeenSet =
true;
112 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
114 template <
typename AvailabilityZoneIdT = Aws::String>
127 template <
typename CapacityReservationIdsT = Aws::Vector<Aws::String>>
129 m_capacityReservationIdsHasBeenSet =
true;
130 m_capacityReservationIds = std::forward<CapacityReservationIdsT>(value);
132 template <
typename CapacityReservationIdsT = Aws::Vector<Aws::String>>
137 template <
typename CapacityReservationIdsT = Aws::String>
139 m_capacityReservationIdsHasBeenSet =
true;
140 m_capacityReservationIds.emplace_back(std::forward<CapacityReservationIdsT>(value));
151 template <
typename StartDateT = Aws::Utils::DateTime>
153 m_startDateHasBeenSet =
true;
154 m_startDate = std::forward<StartDateT>(value);
156 template <
typename StartDateT = Aws::Utils::DateTime>
170 template <
typename EndDateT = Aws::Utils::DateTime>
172 m_endDateHasBeenSet =
true;
173 m_endDate = std::forward<EndDateT>(value);
175 template <
typename EndDateT = Aws::Utils::DateTime>
188 template <
typename CreateDateT = Aws::Utils::DateTime>
190 m_createDateHasBeenSet =
true;
191 m_createDate = std::forward<CreateDateT>(value);
193 template <
typename CreateDateT = Aws::Utils::DateTime>
207 m_stateHasBeenSet =
true;
222 template <
typename TagsT = Aws::Vector<Tag>>
224 m_tagsHasBeenSet =
true;
225 m_tags = std::forward<TagsT>(value);
227 template <
typename TagsT = Aws::Vector<Tag>>
229 SetTags(std::forward<TagsT>(value));
232 template <
typename TagsT = Tag>
234 m_tagsHasBeenSet =
true;
235 m_tags.emplace_back(std::forward<TagsT>(value));
259 bool m_capacityBlockIdHasBeenSet =
false;
260 bool m_ultraserverTypeHasBeenSet =
false;
261 bool m_availabilityZoneHasBeenSet =
false;
262 bool m_availabilityZoneIdHasBeenSet =
false;
263 bool m_capacityReservationIdsHasBeenSet =
false;
264 bool m_startDateHasBeenSet =
false;
265 bool m_endDateHasBeenSet =
false;
266 bool m_createDateHasBeenSet =
false;
267 bool m_stateHasBeenSet =
false;
268 bool m_tagsHasBeenSet =
false;
void SetUltraserverType(UltraserverTypeT &&value)
const Aws::String & GetUltraserverType() const
CapacityBlock & AddTags(TagsT &&value)
CapacityBlock & WithAvailabilityZone(AvailabilityZoneT &&value)
CapacityBlockResourceState GetState() const
CapacityBlock & WithTags(TagsT &&value)
CapacityBlock & WithCreateDate(CreateDateT &&value)
CapacityBlock & WithStartDate(StartDateT &&value)
bool CapacityReservationIdsHasBeenSet() const
const Aws::String & GetAvailabilityZone() const
const Aws::Utils::DateTime & GetStartDate() const
CapacityBlock & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
CapacityBlock & WithCapacityReservationIds(CapacityReservationIdsT &&value)
void SetState(CapacityBlockResourceState value)
void SetCreateDate(CreateDateT &&value)
bool UltraserverTypeHasBeenSet() const
const Aws::Utils::DateTime & GetCreateDate() const
void SetTags(TagsT &&value)
void SetCapacityReservationIds(CapacityReservationIdsT &&value)
const Aws::String & GetAvailabilityZoneId() const
const Aws::Utils::DateTime & GetEndDate() const
AWS_EC2_API CapacityBlock & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool StartDateHasBeenSet() const
const Aws::Vector< Aws::String > & GetCapacityReservationIds() const
CapacityBlock & WithEndDate(EndDateT &&value)
bool TagsHasBeenSet() const
void SetCapacityBlockId(CapacityBlockIdT &&value)
bool CreateDateHasBeenSet() const
CapacityBlock & WithCapacityBlockId(CapacityBlockIdT &&value)
const Aws::String & GetCapacityBlockId() const
AWS_EC2_API CapacityBlock(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CapacityBlock & WithState(CapacityBlockResourceState value)
bool EndDateHasBeenSet() const
bool CapacityBlockIdHasBeenSet() const
CapacityBlock & WithUltraserverType(UltraserverTypeT &&value)
bool AvailabilityZoneHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
bool StateHasBeenSet() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
void SetStartDate(StartDateT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API CapacityBlock()=default
bool AvailabilityZoneIdHasBeenSet() const
CapacityBlock & AddCapacityReservationIds(CapacityReservationIdsT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
void SetEndDate(EndDateT &&value)
CapacityBlockResourceState
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream