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/ec2/model/OperatorResponse.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/InstanceState.h>
13#include <aws/ec2/model/InstanceStatusSummary.h>
14#include <aws/ec2/model/EbsStatusSummary.h>
15#include <aws/ec2/model/InstanceStatusEvent.h>
54 template<
typename AvailabilityZoneT = Aws::String>
55 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
56 template<
typename AvailabilityZoneT = Aws::String>
66 template<
typename OutpostArnT = Aws::String>
67 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet =
true; m_outpostArn = std::forward<OutpostArnT>(value); }
68 template<
typename OutpostArnT = Aws::String>
78 template<
typename OperatorT = OperatorResponse>
79 void SetOperator(OperatorT&& value) { m_operatorHasBeenSet =
true; m_operator = std::forward<OperatorT>(value); }
80 template<
typename OperatorT = OperatorResponse>
90 template<
typename EventsT = Aws::Vector<InstanceStatusEvent>>
91 void SetEvents(EventsT&& value) { m_eventsHasBeenSet =
true; m_events = std::forward<EventsT>(value); }
92 template<
typename EventsT = Aws::Vector<InstanceStatusEvent>>
94 template<
typename EventsT = InstanceStatusEvent>
95 InstanceStatus&
AddEvents(EventsT&& value) { m_eventsHasBeenSet =
true; m_events.emplace_back(std::forward<EventsT>(value));
return *
this; }
104 template<
typename InstanceIdT = Aws::String>
105 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet =
true; m_instanceId = std::forward<InstanceIdT>(value); }
106 template<
typename InstanceIdT = Aws::String>
117 template<
typename InstanceStateT = InstanceState>
118 void SetInstanceState(InstanceStateT&& value) { m_instanceStateHasBeenSet =
true; m_instanceState = std::forward<InstanceStateT>(value); }
119 template<
typename InstanceStateT = InstanceState>
130 template<
typename InstanceStatusT = InstanceStatusSummary>
131 void SetInstanceStatus(InstanceStatusT&& value) { m_instanceStatusHasBeenSet =
true; m_instanceStatus = std::forward<InstanceStatusT>(value); }
132 template<
typename InstanceStatusT = InstanceStatusSummary>
144 template<
typename SystemStatusT = InstanceStatusSummary>
145 void SetSystemStatus(SystemStatusT&& value) { m_systemStatusHasBeenSet =
true; m_systemStatus = std::forward<SystemStatusT>(value); }
146 template<
typename SystemStatusT = InstanceStatusSummary>
157 template<
typename AttachedEbsStatusT = EbsStatusSummary>
158 void SetAttachedEbsStatus(AttachedEbsStatusT&& value) { m_attachedEbsStatusHasBeenSet =
true; m_attachedEbsStatus = std::forward<AttachedEbsStatusT>(value); }
159 template<
typename AttachedEbsStatusT = EbsStatusSummary>
165 bool m_availabilityZoneHasBeenSet =
false;
168 bool m_outpostArnHasBeenSet =
false;
171 bool m_operatorHasBeenSet =
false;
174 bool m_eventsHasBeenSet =
false;
177 bool m_instanceIdHasBeenSet =
false;
180 bool m_instanceStateHasBeenSet =
false;
183 bool m_instanceStatusHasBeenSet =
false;
186 bool m_systemStatusHasBeenSet =
false;
189 bool m_attachedEbsStatusHasBeenSet =
false;
bool InstanceStatusHasBeenSet() const
void SetInstanceState(InstanceStateT &&value)
bool SystemStatusHasBeenSet() const
InstanceStatus & WithSystemStatus(SystemStatusT &&value)
const Aws::String & GetInstanceId() const
const Aws::String & GetOutpostArn() const
InstanceStatus & AddEvents(EventsT &&value)
const InstanceStatusSummary & GetSystemStatus() const
AWS_EC2_API InstanceStatus()=default
InstanceStatus & WithInstanceStatus(InstanceStatusT &&value)
void SetInstanceStatus(InstanceStatusT &&value)
InstanceStatus & WithOperator(OperatorT &&value)
bool AttachedEbsStatusHasBeenSet() const
bool EventsHasBeenSet() const
InstanceStatus & WithAttachedEbsStatus(AttachedEbsStatusT &&value)
const EbsStatusSummary & GetAttachedEbsStatus() const
void SetSystemStatus(SystemStatusT &&value)
const Aws::Vector< InstanceStatusEvent > & GetEvents() const
const InstanceStatusSummary & GetInstanceStatus() const
void SetOperator(OperatorT &&value)
void SetAttachedEbsStatus(AttachedEbsStatusT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool InstanceIdHasBeenSet() const
AWS_EC2_API InstanceStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
bool OperatorHasBeenSet() const
const OperatorResponse & GetOperator() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
bool InstanceStateHasBeenSet() const
bool AvailabilityZoneHasBeenSet() const
void SetEvents(EventsT &&value)
const Aws::String & GetAvailabilityZone() const
InstanceStatus & WithAvailabilityZone(AvailabilityZoneT &&value)
InstanceStatus & WithOutpostArn(OutpostArnT &&value)
void SetInstanceId(InstanceIdT &&value)
bool OutpostArnHasBeenSet() const
InstanceStatus & WithEvents(EventsT &&value)
void SetOutpostArn(OutpostArnT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceStatus & WithInstanceId(InstanceIdT &&value)
const InstanceState & GetInstanceState() const
InstanceStatus & WithInstanceState(InstanceStateT &&value)
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