AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VolumeStatusInfo.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/VolumeStatusInfoStatus.h>
11#include <aws/ec2/model/VolumeStatusDetails.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 VolumeStatusInfo();
37 AWS_EC2_API VolumeStatusInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
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<VolumeStatusDetails>& GetDetails() const{ return m_details; }
49 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
50 inline void SetDetails(const Aws::Vector<VolumeStatusDetails>& value) { m_detailsHasBeenSet = true; m_details = value; }
51 inline void SetDetails(Aws::Vector<VolumeStatusDetails>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
52 inline VolumeStatusInfo& WithDetails(const Aws::Vector<VolumeStatusDetails>& value) { SetDetails(value); return *this;}
53 inline VolumeStatusInfo& WithDetails(Aws::Vector<VolumeStatusDetails>&& value) { SetDetails(std::move(value)); return *this;}
54 inline VolumeStatusInfo& AddDetails(const VolumeStatusDetails& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
55 inline VolumeStatusInfo& AddDetails(VolumeStatusDetails&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
57
59
62 inline const VolumeStatusInfoStatus& GetStatus() const{ return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(const VolumeStatusInfoStatus& value) { m_statusHasBeenSet = true; m_status = value; }
65 inline void SetStatus(VolumeStatusInfoStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
66 inline VolumeStatusInfo& WithStatus(const VolumeStatusInfoStatus& value) { SetStatus(value); return *this;}
67 inline VolumeStatusInfo& WithStatus(VolumeStatusInfoStatus&& value) { SetStatus(std::move(value)); return *this;}
69 private:
70
72 bool m_detailsHasBeenSet = false;
73
75 bool m_statusHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
VolumeStatusInfo & WithDetails(const Aws::Vector< VolumeStatusDetails > &value)
void SetDetails(const Aws::Vector< VolumeStatusDetails > &value)
const VolumeStatusInfoStatus & GetStatus() const
AWS_EC2_API VolumeStatusInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeStatusInfo & AddDetails(const VolumeStatusDetails &value)
void SetDetails(Aws::Vector< VolumeStatusDetails > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< VolumeStatusDetails > & GetDetails() const
VolumeStatusInfo & WithStatus(const VolumeStatusInfoStatus &value)
VolumeStatusInfo & AddDetails(VolumeStatusDetails &&value)
void SetStatus(VolumeStatusInfoStatus &&value)
VolumeStatusInfo & WithStatus(VolumeStatusInfoStatus &&value)
VolumeStatusInfo & WithDetails(Aws::Vector< VolumeStatusDetails > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API VolumeStatusInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStatus(const VolumeStatusInfoStatus &value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream