AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceTopology.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API InstanceTopology();
36 AWS_EC2_API InstanceTopology(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
48 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
49 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
50 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
51 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
52 inline InstanceTopology& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
53 inline InstanceTopology& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
54 inline InstanceTopology& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
56
58
61 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
62 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
63 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
64 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
65 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
66 inline InstanceTopology& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
67 inline InstanceTopology& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
68 inline InstanceTopology& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
70
72
75 inline const Aws::String& GetGroupName() const{ return m_groupName; }
76 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
77 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
78 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
79 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
80 inline InstanceTopology& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
81 inline InstanceTopology& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
82 inline InstanceTopology& WithGroupName(const char* value) { SetGroupName(value); return *this;}
84
86
91 inline const Aws::Vector<Aws::String>& GetNetworkNodes() const{ return m_networkNodes; }
92 inline bool NetworkNodesHasBeenSet() const { return m_networkNodesHasBeenSet; }
93 inline void SetNetworkNodes(const Aws::Vector<Aws::String>& value) { m_networkNodesHasBeenSet = true; m_networkNodes = value; }
94 inline void SetNetworkNodes(Aws::Vector<Aws::String>&& value) { m_networkNodesHasBeenSet = true; m_networkNodes = std::move(value); }
95 inline InstanceTopology& WithNetworkNodes(const Aws::Vector<Aws::String>& value) { SetNetworkNodes(value); return *this;}
96 inline InstanceTopology& WithNetworkNodes(Aws::Vector<Aws::String>&& value) { SetNetworkNodes(std::move(value)); return *this;}
97 inline InstanceTopology& AddNetworkNodes(const Aws::String& value) { m_networkNodesHasBeenSet = true; m_networkNodes.push_back(value); return *this; }
98 inline InstanceTopology& AddNetworkNodes(Aws::String&& value) { m_networkNodesHasBeenSet = true; m_networkNodes.push_back(std::move(value)); return *this; }
99 inline InstanceTopology& AddNetworkNodes(const char* value) { m_networkNodesHasBeenSet = true; m_networkNodes.push_back(value); return *this; }
101
103
106 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
107 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
108 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
109 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
110 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
111 inline InstanceTopology& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
112 inline InstanceTopology& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
113 inline InstanceTopology& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
115
117
120 inline const Aws::String& GetZoneId() const{ return m_zoneId; }
121 inline bool ZoneIdHasBeenSet() const { return m_zoneIdHasBeenSet; }
122 inline void SetZoneId(const Aws::String& value) { m_zoneIdHasBeenSet = true; m_zoneId = value; }
123 inline void SetZoneId(Aws::String&& value) { m_zoneIdHasBeenSet = true; m_zoneId = std::move(value); }
124 inline void SetZoneId(const char* value) { m_zoneIdHasBeenSet = true; m_zoneId.assign(value); }
125 inline InstanceTopology& WithZoneId(const Aws::String& value) { SetZoneId(value); return *this;}
126 inline InstanceTopology& WithZoneId(Aws::String&& value) { SetZoneId(std::move(value)); return *this;}
127 inline InstanceTopology& WithZoneId(const char* value) { SetZoneId(value); return *this;}
129 private:
130
131 Aws::String m_instanceId;
132 bool m_instanceIdHasBeenSet = false;
133
134 Aws::String m_instanceType;
135 bool m_instanceTypeHasBeenSet = false;
136
137 Aws::String m_groupName;
138 bool m_groupNameHasBeenSet = false;
139
140 Aws::Vector<Aws::String> m_networkNodes;
141 bool m_networkNodesHasBeenSet = false;
142
143 Aws::String m_availabilityZone;
144 bool m_availabilityZoneHasBeenSet = false;
145
146 Aws::String m_zoneId;
147 bool m_zoneIdHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace EC2
152} // namespace Aws
const Aws::Vector< Aws::String > & GetNetworkNodes() const
InstanceTopology & WithGroupName(Aws::String &&value)
void SetAvailabilityZone(const Aws::String &value)
InstanceTopology & WithInstanceId(const char *value)
InstanceTopology & WithAvailabilityZone(const char *value)
InstanceTopology & WithNetworkNodes(Aws::Vector< Aws::String > &&value)
void SetInstanceType(Aws::String &&value)
void SetInstanceId(const char *value)
InstanceTopology & WithAvailabilityZone(const Aws::String &value)
InstanceTopology & WithInstanceType(Aws::String &&value)
void SetAvailabilityZone(const char *value)
InstanceTopology & WithInstanceType(const Aws::String &value)
void SetZoneId(const char *value)
const Aws::String & GetInstanceType() const
void SetInstanceId(Aws::String &&value)
InstanceTopology & AddNetworkNodes(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
void SetGroupName(Aws::String &&value)
InstanceTopology & WithZoneId(const char *value)
InstanceTopology & WithNetworkNodes(const Aws::Vector< Aws::String > &value)
const Aws::String & GetGroupName() const
void SetNetworkNodes(const Aws::Vector< Aws::String > &value)
void SetNetworkNodes(Aws::Vector< Aws::String > &&value)
InstanceTopology & AddNetworkNodes(const Aws::String &value)
AWS_EC2_API InstanceTopology(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetInstanceId() const
InstanceTopology & WithInstanceId(const Aws::String &value)
void SetZoneId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceTopology & WithGroupName(const Aws::String &value)
const Aws::String & GetAvailabilityZone() const
InstanceTopology & WithAvailabilityZone(Aws::String &&value)
InstanceTopology & WithInstanceId(Aws::String &&value)
InstanceTopology & WithGroupName(const char *value)
AWS_EC2_API InstanceTopology & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGroupName(const Aws::String &value)
void SetInstanceType(const Aws::String &value)
void SetGroupName(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceTopology & AddNetworkNodes(const char *value)
void SetAvailabilityZone(Aws::String &&value)
void SetInstanceType(const char *value)
const Aws::String & GetZoneId() const
InstanceTopology & WithZoneId(Aws::String &&value)
InstanceTopology & WithInstanceType(const char *value)
InstanceTopology & WithZoneId(const Aws::String &value)
void SetZoneId(const Aws::String &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