AWS SDK for C++  1.9.71
AWS SDK for C++
InstanceStatusSummary.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::Vector<InstanceStatusDetails>& GetDetails() const{ return m_details; }
48 
52  inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
53 
57  inline void SetDetails(const Aws::Vector<InstanceStatusDetails>& value) { m_detailsHasBeenSet = true; m_details = value; }
58 
62  inline void SetDetails(Aws::Vector<InstanceStatusDetails>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
63 
67  inline InstanceStatusSummary& WithDetails(const Aws::Vector<InstanceStatusDetails>& value) { SetDetails(value); return *this;}
68 
72  inline InstanceStatusSummary& WithDetails(Aws::Vector<InstanceStatusDetails>&& value) { SetDetails(std::move(value)); return *this;}
73 
77  inline InstanceStatusSummary& AddDetails(const InstanceStatusDetails& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
78 
82  inline InstanceStatusSummary& AddDetails(InstanceStatusDetails&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
83 
84 
88  inline const SummaryStatus& GetStatus() const{ return m_status; }
89 
93  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 
98  inline void SetStatus(const SummaryStatus& value) { m_statusHasBeenSet = true; m_status = value; }
99 
103  inline void SetStatus(SummaryStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
104 
108  inline InstanceStatusSummary& WithStatus(const SummaryStatus& value) { SetStatus(value); return *this;}
109 
113  inline InstanceStatusSummary& WithStatus(SummaryStatus&& value) { SetStatus(std::move(value)); return *this;}
114 
115  private:
116 
118  bool m_detailsHasBeenSet;
119 
120  SummaryStatus m_status;
121  bool m_statusHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::EC2::Model::InstanceStatusSummary::InstanceStatusSummary
InstanceStatusSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceStatusSummary::GetDetails
const Aws::Vector< InstanceStatusDetails > & GetDetails() const
Definition: InstanceStatusSummary.h:47
InstanceStatusDetails.h
Aws::EC2::Model::InstanceStatusSummary::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceStatusSummary::GetStatus
const SummaryStatus & GetStatus() const
Definition: InstanceStatusSummary.h:88
Aws::EC2::Model::InstanceStatusSummary::WithStatus
InstanceStatusSummary & WithStatus(const SummaryStatus &value)
Definition: InstanceStatusSummary.h:108
Aws::EC2::Model::SummaryStatus
SummaryStatus
Definition: SummaryStatus.h:17
Aws::EC2::Model::InstanceStatusSummary::operator=
InstanceStatusSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::EC2::Model::InstanceStatusSummary::WithStatus
InstanceStatusSummary & WithStatus(SummaryStatus &&value)
Definition: InstanceStatusSummary.h:113
Aws::EC2::Model::InstanceStatusSummary::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InstanceStatusSummary::WithDetails
InstanceStatusSummary & WithDetails(const Aws::Vector< InstanceStatusDetails > &value)
Definition: InstanceStatusSummary.h:67
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceStatusSummary::WithDetails
InstanceStatusSummary & WithDetails(Aws::Vector< InstanceStatusDetails > &&value)
Definition: InstanceStatusSummary.h:72
Aws::EC2::Model::InstanceStatusSummary::InstanceStatusSummary
InstanceStatusSummary()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
SummaryStatus.h
Aws::EC2::Model::InstanceStatusSummary::AddDetails
InstanceStatusSummary & AddDetails(const InstanceStatusDetails &value)
Definition: InstanceStatusSummary.h:77
Aws::EC2::Model::InstanceStatusSummary::DetailsHasBeenSet
bool DetailsHasBeenSet() const
Definition: InstanceStatusSummary.h:52
Aws::EC2::Model::InstanceStatusSummary
Definition: InstanceStatusSummary.h:34
Aws::EC2::Model::InstanceStatusSummary::SetDetails
void SetDetails(const Aws::Vector< InstanceStatusDetails > &value)
Definition: InstanceStatusSummary.h:57
Aws::EC2::Model::InstanceStatusSummary::AddDetails
InstanceStatusSummary & AddDetails(InstanceStatusDetails &&value)
Definition: InstanceStatusSummary.h:82
Aws::EC2::Model::InstanceStatusSummary::SetStatus
void SetStatus(const SummaryStatus &value)
Definition: InstanceStatusSummary.h:98
Aws::EC2::Model::InstanceStatusSummary::SetDetails
void SetDetails(Aws::Vector< InstanceStatusDetails > &&value)
Definition: InstanceStatusSummary.h:62
Aws::EC2::Model::InstanceStatusSummary::SetStatus
void SetStatus(SummaryStatus &&value)
Definition: InstanceStatusSummary.h:103
Aws::EC2::Model::InstanceStatusDetails
Definition: InstanceStatusDetails.h:34
Aws::EC2::Model::InstanceStatusSummary::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: InstanceStatusSummary.h:93
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h