AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DetailsT = Aws::Vector<VolumeStatusDetails>>
51 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
52 template<typename DetailsT = Aws::Vector<VolumeStatusDetails>>
53 VolumeStatusInfo& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
54 template<typename DetailsT = VolumeStatusDetails>
55 VolumeStatusInfo& AddDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details.emplace_back(std::forward<DetailsT>(value)); return *this; }
57
59
62 inline VolumeStatusInfoStatus GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(VolumeStatusInfoStatus value) { m_statusHasBeenSet = true; m_status = value; }
65 inline VolumeStatusInfo& WithStatus(VolumeStatusInfoStatus value) { SetStatus(value); return *this;}
67 private:
68
70 bool m_detailsHasBeenSet = false;
71
73 bool m_statusHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace EC2
78} // namespace Aws
VolumeStatusInfoStatus GetStatus() const
AWS_EC2_API VolumeStatusInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeStatusInfo & AddDetails(DetailsT &&value)
AWS_EC2_API VolumeStatusInfo()=default
VolumeStatusInfo & WithDetails(DetailsT &&value)
void SetStatus(VolumeStatusInfoStatus value)
VolumeStatusInfo & WithStatus(VolumeStatusInfoStatus value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< VolumeStatusDetails > & GetDetails() const
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 SetDetails(DetailsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream