AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InstanceTopology.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
29 public:
30 AWS_EC2_API InstanceTopology() = default;
31 AWS_EC2_API InstanceTopology(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
41 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
42 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
49 InstanceTopology& WithInstanceId(InstanceIdT&& value) {
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
60 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
61 template <typename InstanceTypeT = Aws::String>
62 void SetInstanceType(InstanceTypeT&& value) {
63 m_instanceTypeHasBeenSet = true;
64 m_instanceType = std::forward<InstanceTypeT>(value);
65 }
66 template <typename InstanceTypeT = Aws::String>
67 InstanceTopology& WithInstanceType(InstanceTypeT&& value) {
68 SetInstanceType(std::forward<InstanceTypeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetGroupName() const { return m_groupName; }
78 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
79 template <typename GroupNameT = Aws::String>
80 void SetGroupName(GroupNameT&& value) {
81 m_groupNameHasBeenSet = true;
82 m_groupName = std::forward<GroupNameT>(value);
83 }
84 template <typename GroupNameT = Aws::String>
85 InstanceTopology& WithGroupName(GroupNameT&& value) {
86 SetGroupName(std::forward<GroupNameT>(value));
87 return *this;
88 }
90
92
99 inline const Aws::Vector<Aws::String>& GetNetworkNodes() const { return m_networkNodes; }
100 inline bool NetworkNodesHasBeenSet() const { return m_networkNodesHasBeenSet; }
101 template <typename NetworkNodesT = Aws::Vector<Aws::String>>
102 void SetNetworkNodes(NetworkNodesT&& value) {
103 m_networkNodesHasBeenSet = true;
104 m_networkNodes = std::forward<NetworkNodesT>(value);
105 }
106 template <typename NetworkNodesT = Aws::Vector<Aws::String>>
107 InstanceTopology& WithNetworkNodes(NetworkNodesT&& value) {
108 SetNetworkNodes(std::forward<NetworkNodesT>(value));
109 return *this;
110 }
111 template <typename NetworkNodesT = Aws::String>
112 InstanceTopology& AddNetworkNodes(NetworkNodesT&& value) {
113 m_networkNodesHasBeenSet = true;
114 m_networkNodes.emplace_back(std::forward<NetworkNodesT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
124 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
125 template <typename AvailabilityZoneT = Aws::String>
126 void SetAvailabilityZone(AvailabilityZoneT&& value) {
127 m_availabilityZoneHasBeenSet = true;
128 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
129 }
130 template <typename AvailabilityZoneT = Aws::String>
131 InstanceTopology& WithAvailabilityZone(AvailabilityZoneT&& value) {
132 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetZoneId() const { return m_zoneId; }
142 inline bool ZoneIdHasBeenSet() const { return m_zoneIdHasBeenSet; }
143 template <typename ZoneIdT = Aws::String>
144 void SetZoneId(ZoneIdT&& value) {
145 m_zoneIdHasBeenSet = true;
146 m_zoneId = std::forward<ZoneIdT>(value);
147 }
148 template <typename ZoneIdT = Aws::String>
149 InstanceTopology& WithZoneId(ZoneIdT&& value) {
150 SetZoneId(std::forward<ZoneIdT>(value));
151 return *this;
152 }
154
156
161 inline const Aws::String& GetCapacityBlockId() const { return m_capacityBlockId; }
162 inline bool CapacityBlockIdHasBeenSet() const { return m_capacityBlockIdHasBeenSet; }
163 template <typename CapacityBlockIdT = Aws::String>
164 void SetCapacityBlockId(CapacityBlockIdT&& value) {
165 m_capacityBlockIdHasBeenSet = true;
166 m_capacityBlockId = std::forward<CapacityBlockIdT>(value);
167 }
168 template <typename CapacityBlockIdT = Aws::String>
169 InstanceTopology& WithCapacityBlockId(CapacityBlockIdT&& value) {
170 SetCapacityBlockId(std::forward<CapacityBlockIdT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_instanceId;
176
177 Aws::String m_instanceType;
178
179 Aws::String m_groupName;
180
181 Aws::Vector<Aws::String> m_networkNodes;
182
183 Aws::String m_availabilityZone;
184
185 Aws::String m_zoneId;
186
187 Aws::String m_capacityBlockId;
188 bool m_instanceIdHasBeenSet = false;
189 bool m_instanceTypeHasBeenSet = false;
190 bool m_groupNameHasBeenSet = false;
191 bool m_networkNodesHasBeenSet = false;
192 bool m_availabilityZoneHasBeenSet = false;
193 bool m_zoneIdHasBeenSet = false;
194 bool m_capacityBlockIdHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace EC2
199} // namespace Aws
const Aws::Vector< Aws::String > & GetNetworkNodes() const
InstanceTopology & WithGroupName(GroupNameT &&value)
void SetNetworkNodes(NetworkNodesT &&value)
InstanceTopology & WithCapacityBlockId(CapacityBlockIdT &&value)
void SetCapacityBlockId(CapacityBlockIdT &&value)
void SetGroupName(GroupNameT &&value)
const Aws::String & GetInstanceType() const
const Aws::String & GetCapacityBlockId() const
AWS_EC2_API InstanceTopology()=default
InstanceTopology & WithNetworkNodes(NetworkNodesT &&value)
const Aws::String & GetGroupName() const
void SetInstanceId(InstanceIdT &&value)
InstanceTopology & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API InstanceTopology(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceTopology & WithInstanceId(InstanceIdT &&value)
InstanceTopology & AddNetworkNodes(NetworkNodesT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
void SetInstanceType(InstanceTypeT &&value)
const Aws::String & GetInstanceId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetAvailabilityZone() const
AWS_EC2_API InstanceTopology & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceTopology & WithInstanceType(InstanceTypeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetZoneId() const
InstanceTopology & WithZoneId(ZoneIdT &&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