AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CapacityBlock.h
1
6#pragma once
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>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
45 {
46 public:
47 AWS_EC2_API CapacityBlock() = default;
48 AWS_EC2_API CapacityBlock(const Aws::Utils::Xml::XmlNode& xmlNode);
49 AWS_EC2_API CapacityBlock& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
50
51 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
53
54
56
59 inline const Aws::String& GetCapacityBlockId() const { return m_capacityBlockId; }
60 inline bool CapacityBlockIdHasBeenSet() const { return m_capacityBlockIdHasBeenSet; }
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>
64 CapacityBlock& WithCapacityBlockId(CapacityBlockIdT&& value) { SetCapacityBlockId(std::forward<CapacityBlockIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetUltraserverType() const { return m_ultraserverType; }
72 inline bool UltraserverTypeHasBeenSet() const { return m_ultraserverTypeHasBeenSet; }
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>
76 CapacityBlock& WithUltraserverType(UltraserverTypeT&& value) { SetUltraserverType(std::forward<UltraserverTypeT>(value)); return *this;}
78
80
83 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
84 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
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>
88 CapacityBlock& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
90
92
95 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
96 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
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>
100 CapacityBlock& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) { SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value)); return *this;}
102
104
107 inline const Aws::Vector<Aws::String>& GetCapacityReservationIds() const { return m_capacityReservationIds; }
108 inline bool CapacityReservationIdsHasBeenSet() const { return m_capacityReservationIdsHasBeenSet; }
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>>
112 CapacityBlock& WithCapacityReservationIds(CapacityReservationIdsT&& value) { SetCapacityReservationIds(std::forward<CapacityReservationIdsT>(value)); return *this;}
113 template<typename CapacityReservationIdsT = Aws::String>
114 CapacityBlock& AddCapacityReservationIds(CapacityReservationIdsT&& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds.emplace_back(std::forward<CapacityReservationIdsT>(value)); return *this; }
116
118
121 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
122 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
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>
126 CapacityBlock& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
128
130
134 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
135 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
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>
139 CapacityBlock& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
147 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
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>
151 CapacityBlock& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
153
155
158 inline CapacityBlockResourceState GetState() const { return m_state; }
159 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
160 inline void SetState(CapacityBlockResourceState value) { m_stateHasBeenSet = true; m_state = value; }
161 inline CapacityBlock& WithState(CapacityBlockResourceState value) { SetState(value); return *this;}
163
165
168 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
169 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
173 CapacityBlock& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
174 template<typename TagsT = Tag>
175 CapacityBlock& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
177 private:
178
179 Aws::String m_capacityBlockId;
180 bool m_capacityBlockIdHasBeenSet = false;
181
182 Aws::String m_ultraserverType;
183 bool m_ultraserverTypeHasBeenSet = false;
184
185 Aws::String m_availabilityZone;
186 bool m_availabilityZoneHasBeenSet = false;
187
188 Aws::String m_availabilityZoneId;
189 bool m_availabilityZoneIdHasBeenSet = false;
190
191 Aws::Vector<Aws::String> m_capacityReservationIds;
192 bool m_capacityReservationIdsHasBeenSet = false;
193
194 Aws::Utils::DateTime m_startDate{};
195 bool m_startDateHasBeenSet = false;
196
197 Aws::Utils::DateTime m_endDate{};
198 bool m_endDateHasBeenSet = false;
199
200 Aws::Utils::DateTime m_createDate{};
201 bool m_createDateHasBeenSet = false;
202
204 bool m_stateHasBeenSet = false;
205
206 Aws::Vector<Tag> m_tags;
207 bool m_tagsHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace EC2
212} // namespace Aws
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)
const Aws::Utils::DateTime & GetCreateDate() const
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)
const Aws::Vector< Aws::String > & GetCapacityReservationIds() const
CapacityBlock & WithEndDate(EndDateT &&value)
void SetCapacityBlockId(CapacityBlockIdT &&value)
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)
CapacityBlock & WithUltraserverType(UltraserverTypeT &&value)
const Aws::Vector< Tag > & GetTags() 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)
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