AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceStatusSummary.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/AWSVector.h>
10#include <aws/ec2/model/SummaryStatus.h>
11#include <aws/ec2/model/InstanceStatusDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API InstanceStatusSummary();
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::Vector<InstanceStatusDetails>& GetDetails() const{ return m_details; }
49 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
50 inline void SetDetails(const Aws::Vector<InstanceStatusDetails>& value) { m_detailsHasBeenSet = true; m_details = value; }
51 inline void SetDetails(Aws::Vector<InstanceStatusDetails>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
53 inline InstanceStatusSummary& WithDetails(Aws::Vector<InstanceStatusDetails>&& value) { SetDetails(std::move(value)); return *this;}
54 inline InstanceStatusSummary& AddDetails(const InstanceStatusDetails& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
55 inline InstanceStatusSummary& AddDetails(InstanceStatusDetails&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
57
59
62 inline const SummaryStatus& GetStatus() const{ return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(const SummaryStatus& value) { m_statusHasBeenSet = true; m_status = value; }
65 inline void SetStatus(SummaryStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
66 inline InstanceStatusSummary& WithStatus(const SummaryStatus& value) { SetStatus(value); return *this;}
67 inline InstanceStatusSummary& WithStatus(SummaryStatus&& value) { SetStatus(std::move(value)); return *this;}
69 private:
70
72 bool m_detailsHasBeenSet = false;
73
74 SummaryStatus m_status;
75 bool m_statusHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
InstanceStatusSummary & WithDetails(Aws::Vector< InstanceStatusDetails > &&value)
InstanceStatusSummary & WithStatus(SummaryStatus &&value)
InstanceStatusSummary & AddDetails(const InstanceStatusDetails &value)
void SetStatus(const SummaryStatus &value)
AWS_EC2_API InstanceStatusSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceStatusSummary & WithStatus(const SummaryStatus &value)
void SetDetails(const Aws::Vector< InstanceStatusDetails > &value)
InstanceStatusSummary & WithDetails(const Aws::Vector< InstanceStatusDetails > &value)
const Aws::Vector< InstanceStatusDetails > & GetDetails() const
AWS_EC2_API InstanceStatusSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDetails(Aws::Vector< InstanceStatusDetails > &&value)
const SummaryStatus & GetStatus() const
InstanceStatusSummary & AddDetails(InstanceStatusDetails &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream