AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VolumeStatusInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/VolumeStatusDetails.h>
11#include <aws/ec2/model/VolumeStatusInfoStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
30 public:
31 AWS_EC2_API VolumeStatusInfo() = default;
32 AWS_EC2_API VolumeStatusInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::Vector<VolumeStatusDetails>& GetDetails() const { return m_details; }
43 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
44 template <typename DetailsT = Aws::Vector<VolumeStatusDetails>>
45 void SetDetails(DetailsT&& value) {
46 m_detailsHasBeenSet = true;
47 m_details = std::forward<DetailsT>(value);
48 }
49 template <typename DetailsT = Aws::Vector<VolumeStatusDetails>>
50 VolumeStatusInfo& WithDetails(DetailsT&& value) {
51 SetDetails(std::forward<DetailsT>(value));
52 return *this;
53 }
54 template <typename DetailsT = VolumeStatusDetails>
55 VolumeStatusInfo& AddDetails(DetailsT&& value) {
56 m_detailsHasBeenSet = true;
57 m_details.emplace_back(std::forward<DetailsT>(value));
58 return *this;
59 }
61
63
66 inline VolumeStatusInfoStatus GetStatus() const { return m_status; }
67 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
68 inline void SetStatus(VolumeStatusInfoStatus value) {
69 m_statusHasBeenSet = true;
70 m_status = value;
71 }
73 SetStatus(value);
74 return *this;
75 }
77 private:
79
81 bool m_detailsHasBeenSet = false;
82 bool m_statusHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace EC2
87} // 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