AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CapacityReservationTopology.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API CapacityReservationTopology() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetCapacityReservationId() const { return m_capacityReservationId; }
43 inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
44 template <typename CapacityReservationIdT = Aws::String>
45 void SetCapacityReservationId(CapacityReservationIdT&& value) {
46 m_capacityReservationIdHasBeenSet = true;
47 m_capacityReservationId = std::forward<CapacityReservationIdT>(value);
48 }
49 template <typename CapacityReservationIdT = Aws::String>
50 CapacityReservationTopology& WithCapacityReservationId(CapacityReservationIdT&& value) {
51 SetCapacityReservationId(std::forward<CapacityReservationIdT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetCapacityBlockId() const { return m_capacityBlockId; }
63 inline bool CapacityBlockIdHasBeenSet() const { return m_capacityBlockIdHasBeenSet; }
64 template <typename CapacityBlockIdT = Aws::String>
65 void SetCapacityBlockId(CapacityBlockIdT&& value) {
66 m_capacityBlockIdHasBeenSet = true;
67 m_capacityBlockId = std::forward<CapacityBlockIdT>(value);
68 }
69 template <typename CapacityBlockIdT = Aws::String>
71 SetCapacityBlockId(std::forward<CapacityBlockIdT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetState() const { return m_state; }
83 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
84 template <typename StateT = Aws::String>
85 void SetState(StateT&& value) {
86 m_stateHasBeenSet = true;
87 m_state = std::forward<StateT>(value);
88 }
89 template <typename StateT = Aws::String>
91 SetState(std::forward<StateT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
101 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
102 template <typename InstanceTypeT = Aws::String>
103 void SetInstanceType(InstanceTypeT&& value) {
104 m_instanceTypeHasBeenSet = true;
105 m_instanceType = std::forward<InstanceTypeT>(value);
106 }
107 template <typename InstanceTypeT = Aws::String>
109 SetInstanceType(std::forward<InstanceTypeT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetGroupName() const { return m_groupName; }
119 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
120 template <typename GroupNameT = Aws::String>
121 void SetGroupName(GroupNameT&& value) {
122 m_groupNameHasBeenSet = true;
123 m_groupName = std::forward<GroupNameT>(value);
124 }
125 template <typename GroupNameT = Aws::String>
127 SetGroupName(std::forward<GroupNameT>(value));
128 return *this;
129 }
131
133
141 inline const Aws::Vector<Aws::String>& GetNetworkNodes() const { return m_networkNodes; }
142 inline bool NetworkNodesHasBeenSet() const { return m_networkNodesHasBeenSet; }
143 template <typename NetworkNodesT = Aws::Vector<Aws::String>>
144 void SetNetworkNodes(NetworkNodesT&& value) {
145 m_networkNodesHasBeenSet = true;
146 m_networkNodes = std::forward<NetworkNodesT>(value);
147 }
148 template <typename NetworkNodesT = Aws::Vector<Aws::String>>
150 SetNetworkNodes(std::forward<NetworkNodesT>(value));
151 return *this;
152 }
153 template <typename NetworkNodesT = Aws::String>
155 m_networkNodesHasBeenSet = true;
156 m_networkNodes.emplace_back(std::forward<NetworkNodesT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
167 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
168 template <typename AvailabilityZoneIdT = Aws::String>
169 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
170 m_availabilityZoneIdHasBeenSet = true;
171 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
172 }
173 template <typename AvailabilityZoneIdT = Aws::String>
175 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
176 return *this;
177 }
179
181
185 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
186 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
187 template <typename AvailabilityZoneT = Aws::String>
188 void SetAvailabilityZone(AvailabilityZoneT&& value) {
189 m_availabilityZoneHasBeenSet = true;
190 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
191 }
192 template <typename AvailabilityZoneT = Aws::String>
194 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_capacityReservationId;
200
201 Aws::String m_capacityBlockId;
202
203 Aws::String m_state;
204
205 Aws::String m_instanceType;
206
207 Aws::String m_groupName;
208
209 Aws::Vector<Aws::String> m_networkNodes;
210
211 Aws::String m_availabilityZoneId;
212
213 Aws::String m_availabilityZone;
214 bool m_capacityReservationIdHasBeenSet = false;
215 bool m_capacityBlockIdHasBeenSet = false;
216 bool m_stateHasBeenSet = false;
217 bool m_instanceTypeHasBeenSet = false;
218 bool m_groupNameHasBeenSet = false;
219 bool m_networkNodesHasBeenSet = false;
220 bool m_availabilityZoneIdHasBeenSet = false;
221 bool m_availabilityZoneHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace EC2
226} // namespace Aws
CapacityReservationTopology & WithCapacityReservationId(CapacityReservationIdT &&value)
CapacityReservationTopology & WithNetworkNodes(NetworkNodesT &&value)
void SetCapacityReservationId(CapacityReservationIdT &&value)
CapacityReservationTopology & WithState(StateT &&value)
AWS_EC2_API CapacityReservationTopology & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API CapacityReservationTopology()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CapacityReservationTopology & WithInstanceType(InstanceTypeT &&value)
CapacityReservationTopology & AddNetworkNodes(NetworkNodesT &&value)
CapacityReservationTopology & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CapacityReservationTopology & WithCapacityBlockId(CapacityBlockIdT &&value)
CapacityReservationTopology & WithAvailabilityZone(AvailabilityZoneT &&value)
CapacityReservationTopology & WithGroupName(GroupNameT &&value)
AWS_EC2_API CapacityReservationTopology(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetNetworkNodes() const
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