AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CapacityAllocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/AllocationType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API CapacityAllocation() = default;
31 AWS_EC2_API CapacityAllocation(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
42 inline AllocationType GetAllocationType() const { return m_allocationType; }
43 inline bool AllocationTypeHasBeenSet() const { return m_allocationTypeHasBeenSet; }
44 inline void SetAllocationType(AllocationType value) {
45 m_allocationTypeHasBeenSet = true;
46 m_allocationType = value;
47 }
49 SetAllocationType(value);
50 return *this;
51 }
53
55
60 inline int GetCount() const { return m_count; }
61 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
62 inline void SetCount(int value) {
63 m_countHasBeenSet = true;
64 m_count = value;
65 }
66 inline CapacityAllocation& WithCount(int value) {
67 SetCount(value);
68 return *this;
69 }
71 private:
73
74 int m_count{0};
75 bool m_allocationTypeHasBeenSet = false;
76 bool m_countHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
CapacityAllocation & WithCount(int value)
AWS_EC2_API CapacityAllocation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API CapacityAllocation()=default
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)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_ostream< char, std::char_traits< char > > OStream