AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceStatus.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/ec2/model/InstanceState.h>
12#include <aws/ec2/model/InstanceStatusSummary.h>
13#include <aws/ec2/model/EbsStatusSummary.h>
14#include <aws/ec2/model/InstanceStatusEvent.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_EC2_API InstanceStatus();
40 AWS_EC2_API InstanceStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
52 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
53 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
54 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
55 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
56 inline InstanceStatus& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
57 inline InstanceStatus& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
58 inline InstanceStatus& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
60
62
65 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
66 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
67 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
68 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
69 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
70 inline InstanceStatus& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
71 inline InstanceStatus& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
72 inline InstanceStatus& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
74
76
79 inline const Aws::Vector<InstanceStatusEvent>& GetEvents() const{ return m_events; }
80 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
81 inline void SetEvents(const Aws::Vector<InstanceStatusEvent>& value) { m_eventsHasBeenSet = true; m_events = value; }
82 inline void SetEvents(Aws::Vector<InstanceStatusEvent>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
83 inline InstanceStatus& WithEvents(const Aws::Vector<InstanceStatusEvent>& value) { SetEvents(value); return *this;}
84 inline InstanceStatus& WithEvents(Aws::Vector<InstanceStatusEvent>&& value) { SetEvents(std::move(value)); return *this;}
85 inline InstanceStatus& AddEvents(const InstanceStatusEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
86 inline InstanceStatus& AddEvents(InstanceStatusEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
88
90
93 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
94 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
95 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
96 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
97 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
98 inline InstanceStatus& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
99 inline InstanceStatus& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
100 inline InstanceStatus& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
102
104
108 inline const InstanceState& GetInstanceState() const{ return m_instanceState; }
109 inline bool InstanceStateHasBeenSet() const { return m_instanceStateHasBeenSet; }
110 inline void SetInstanceState(const InstanceState& value) { m_instanceStateHasBeenSet = true; m_instanceState = value; }
111 inline void SetInstanceState(InstanceState&& value) { m_instanceStateHasBeenSet = true; m_instanceState = std::move(value); }
112 inline InstanceStatus& WithInstanceState(const InstanceState& value) { SetInstanceState(value); return *this;}
113 inline InstanceStatus& WithInstanceState(InstanceState&& value) { SetInstanceState(std::move(value)); return *this;}
115
117
121 inline const InstanceStatusSummary& GetInstanceStatus() const{ return m_instanceStatus; }
122 inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
123 inline void SetInstanceStatus(const InstanceStatusSummary& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = value; }
124 inline void SetInstanceStatus(InstanceStatusSummary&& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = std::move(value); }
125 inline InstanceStatus& WithInstanceStatus(const InstanceStatusSummary& value) { SetInstanceStatus(value); return *this;}
126 inline InstanceStatus& WithInstanceStatus(InstanceStatusSummary&& value) { SetInstanceStatus(std::move(value)); return *this;}
128
130
135 inline const InstanceStatusSummary& GetSystemStatus() const{ return m_systemStatus; }
136 inline bool SystemStatusHasBeenSet() const { return m_systemStatusHasBeenSet; }
137 inline void SetSystemStatus(const InstanceStatusSummary& value) { m_systemStatusHasBeenSet = true; m_systemStatus = value; }
138 inline void SetSystemStatus(InstanceStatusSummary&& value) { m_systemStatusHasBeenSet = true; m_systemStatus = std::move(value); }
139 inline InstanceStatus& WithSystemStatus(const InstanceStatusSummary& value) { SetSystemStatus(value); return *this;}
140 inline InstanceStatus& WithSystemStatus(InstanceStatusSummary&& value) { SetSystemStatus(std::move(value)); return *this;}
142
144
148 inline const EbsStatusSummary& GetAttachedEbsStatus() const{ return m_attachedEbsStatus; }
149 inline bool AttachedEbsStatusHasBeenSet() const { return m_attachedEbsStatusHasBeenSet; }
150 inline void SetAttachedEbsStatus(const EbsStatusSummary& value) { m_attachedEbsStatusHasBeenSet = true; m_attachedEbsStatus = value; }
151 inline void SetAttachedEbsStatus(EbsStatusSummary&& value) { m_attachedEbsStatusHasBeenSet = true; m_attachedEbsStatus = std::move(value); }
152 inline InstanceStatus& WithAttachedEbsStatus(const EbsStatusSummary& value) { SetAttachedEbsStatus(value); return *this;}
153 inline InstanceStatus& WithAttachedEbsStatus(EbsStatusSummary&& value) { SetAttachedEbsStatus(std::move(value)); return *this;}
155 private:
156
157 Aws::String m_availabilityZone;
158 bool m_availabilityZoneHasBeenSet = false;
159
160 Aws::String m_outpostArn;
161 bool m_outpostArnHasBeenSet = false;
162
164 bool m_eventsHasBeenSet = false;
165
166 Aws::String m_instanceId;
167 bool m_instanceIdHasBeenSet = false;
168
169 InstanceState m_instanceState;
170 bool m_instanceStateHasBeenSet = false;
171
172 InstanceStatusSummary m_instanceStatus;
173 bool m_instanceStatusHasBeenSet = false;
174
175 InstanceStatusSummary m_systemStatus;
176 bool m_systemStatusHasBeenSet = false;
177
178 EbsStatusSummary m_attachedEbsStatus;
179 bool m_attachedEbsStatusHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace EC2
184} // namespace Aws
void SetEvents(const Aws::Vector< InstanceStatusEvent > &value)
InstanceStatus & WithInstanceStatus(const InstanceStatusSummary &value)
InstanceStatus & WithInstanceState(const InstanceState &value)
const Aws::String & GetInstanceId() const
const Aws::String & GetOutpostArn() const
InstanceStatus & WithOutpostArn(const Aws::String &value)
InstanceStatus & WithEvents(Aws::Vector< InstanceStatusEvent > &&value)
const InstanceStatusSummary & GetSystemStatus() const
InstanceStatus & WithOutpostArn(const char *value)
InstanceStatus & WithAvailabilityZone(const Aws::String &value)
void SetOutpostArn(const Aws::String &value)
void SetAvailabilityZone(const char *value)
void SetEvents(Aws::Vector< InstanceStatusEvent > &&value)
void SetInstanceStatus(const InstanceStatusSummary &value)
InstanceStatus & WithInstanceStatus(InstanceStatusSummary &&value)
void SetAvailabilityZone(Aws::String &&value)
void SetSystemStatus(InstanceStatusSummary &&value)
void SetInstanceId(const char *value)
InstanceStatus & AddEvents(const InstanceStatusEvent &value)
InstanceStatus & WithInstanceId(const Aws::String &value)
void SetSystemStatus(const InstanceStatusSummary &value)
InstanceStatus & WithAvailabilityZone(Aws::String &&value)
const EbsStatusSummary & GetAttachedEbsStatus() const
const Aws::Vector< InstanceStatusEvent > & GetEvents() const
void SetInstanceState(InstanceState &&value)
InstanceStatus & WithAttachedEbsStatus(EbsStatusSummary &&value)
InstanceStatus & WithInstanceId(const char *value)
const InstanceStatusSummary & GetInstanceStatus() const
void SetInstanceId(const Aws::String &value)
InstanceStatus & WithInstanceId(Aws::String &&value)
InstanceStatus & WithInstanceState(InstanceState &&value)
InstanceStatus & WithAvailabilityZone(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetOutpostArn(const char *value)
void SetInstanceState(const InstanceState &value)
AWS_EC2_API InstanceStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAvailabilityZone(const Aws::String &value)
InstanceStatus & AddEvents(InstanceStatusEvent &&value)
void SetAttachedEbsStatus(EbsStatusSummary &&value)
InstanceStatus & WithOutpostArn(Aws::String &&value)
InstanceStatus & WithSystemStatus(const InstanceStatusSummary &value)
InstanceStatus & WithSystemStatus(InstanceStatusSummary &&value)
const Aws::String & GetAvailabilityZone() const
void SetAttachedEbsStatus(const EbsStatusSummary &value)
void SetInstanceStatus(InstanceStatusSummary &&value)
InstanceStatus & WithAttachedEbsStatus(const EbsStatusSummary &value)
void SetOutpostArn(Aws::String &&value)
void SetInstanceId(Aws::String &&value)
InstanceStatus & WithEvents(const Aws::Vector< InstanceStatusEvent > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const InstanceState & GetInstanceState() const
AWS_EC2_API InstanceStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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