7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/AllocationType.h>
11#include <aws/ec2/model/CapacityAllocationMetadataEntry.h>
47 m_allocationTypeHasBeenSet =
true;
48 m_allocationType = value;
62 inline int GetCount()
const {
return m_count; }
65 m_countHasBeenSet =
true;
81 template <
typename AllocationMetadataT = Aws::Vector<CapacityAllocationMetadataEntry>>
83 m_allocationMetadataHasBeenSet =
true;
84 m_allocationMetadata = std::forward<AllocationMetadataT>(value);
86 template <
typename AllocationMetadataT = Aws::Vector<CapacityAllocationMetadataEntry>>
91 template <
typename AllocationMetadataT = CapacityAllocationMetadataEntry>
93 m_allocationMetadataHasBeenSet =
true;
94 m_allocationMetadata.emplace_back(std::forward<AllocationMetadataT>(value));
104 bool m_allocationTypeHasBeenSet =
false;
105 bool m_countHasBeenSet =
false;
106 bool m_allocationMetadataHasBeenSet =
false;
CapacityAllocation & WithCount(int value)
AWS_EC2_API CapacityAllocation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool AllocationMetadataHasBeenSet() const
AWS_EC2_API CapacityAllocation()=default
bool CountHasBeenSet() const
const Aws::Vector< CapacityAllocationMetadataEntry > & GetAllocationMetadata() const
AllocationType GetAllocationType() const
bool AllocationTypeHasBeenSet() const
CapacityAllocation & WithAllocationMetadata(AllocationMetadataT &&value)
void SetAllocationType(AllocationType value)
CapacityAllocation & WithAllocationType(AllocationType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API CapacityAllocation(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityAllocation & AddAllocationMetadata(AllocationMetadataT &&value)
void SetAllocationMetadata(AllocationMetadataT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream