7#include <aws/ec2/EC2_EXPORTS.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/core/utils/DateTime.h>
12#include <aws/ec2/model/CapacityBlockResourceState.h>
13#include <aws/ec2/model/Tag.h>
61 template<
typename CapacityBlockIdT = Aws::String>
62 void SetCapacityBlockId(CapacityBlockIdT&& value) { m_capacityBlockIdHasBeenSet =
true; m_capacityBlockId = std::forward<CapacityBlockIdT>(value); }
63 template<
typename CapacityBlockIdT = Aws::String>
73 template<
typename UltraserverTypeT = Aws::String>
74 void SetUltraserverType(UltraserverTypeT&& value) { m_ultraserverTypeHasBeenSet =
true; m_ultraserverType = std::forward<UltraserverTypeT>(value); }
75 template<
typename UltraserverTypeT = Aws::String>
85 template<
typename AvailabilityZoneT = Aws::String>
86 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
87 template<
typename AvailabilityZoneT = Aws::String>
97 template<
typename AvailabilityZoneIdT = Aws::String>
98 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) { m_availabilityZoneIdHasBeenSet =
true; m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value); }
99 template<
typename AvailabilityZoneIdT = Aws::String>
109 template<
typename CapacityReservationIdsT = Aws::Vector<Aws::String>>
110 void SetCapacityReservationIds(CapacityReservationIdsT&& value) { m_capacityReservationIdsHasBeenSet =
true; m_capacityReservationIds = std::forward<CapacityReservationIdsT>(value); }
111 template<
typename CapacityReservationIdsT = Aws::Vector<Aws::String>>
113 template<
typename CapacityReservationIdsT = Aws::String>
114 CapacityBlock&
AddCapacityReservationIds(CapacityReservationIdsT&& value) { m_capacityReservationIdsHasBeenSet =
true; m_capacityReservationIds.emplace_back(std::forward<CapacityReservationIdsT>(value));
return *
this; }
123 template<
typename StartDateT = Aws::Utils::DateTime>
124 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet =
true; m_startDate = std::forward<StartDateT>(value); }
125 template<
typename StartDateT = Aws::Utils::DateTime>
136 template<
typename EndDateT = Aws::Utils::DateTime>
137 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet =
true; m_endDate = std::forward<EndDateT>(value); }
138 template<
typename EndDateT = Aws::Utils::DateTime>
148 template<
typename CreateDateT = Aws::Utils::DateTime>
149 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet =
true; m_createDate = std::forward<CreateDateT>(value); }
150 template<
typename CreateDateT = Aws::Utils::DateTime>
170 template<
typename TagsT = Aws::Vector<Tag>>
171 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
172 template<
typename TagsT = Aws::Vector<Tag>>
174 template<
typename TagsT = Tag>
175 CapacityBlock&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
180 bool m_capacityBlockIdHasBeenSet =
false;
183 bool m_ultraserverTypeHasBeenSet =
false;
186 bool m_availabilityZoneHasBeenSet =
false;
189 bool m_availabilityZoneIdHasBeenSet =
false;
192 bool m_capacityReservationIdsHasBeenSet =
false;
195 bool m_startDateHasBeenSet =
false;
198 bool m_endDateHasBeenSet =
false;
201 bool m_createDateHasBeenSet =
false;
204 bool m_stateHasBeenSet =
false;
207 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