AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VolumeStatusDetails.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/VolumeStatusName.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API VolumeStatusDetails();
36 AWS_EC2_API VolumeStatusDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const VolumeStatusName& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const VolumeStatusName& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(VolumeStatusName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline VolumeStatusDetails& WithName(const VolumeStatusName& value) { SetName(value); return *this;}
52 inline VolumeStatusDetails& WithName(VolumeStatusName&& value) { SetName(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetStatus() const{ return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
62 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
63 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
64 inline VolumeStatusDetails& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
65 inline VolumeStatusDetails& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
66 inline VolumeStatusDetails& WithStatus(const char* value) { SetStatus(value); return *this;}
68 private:
69
70 VolumeStatusName m_name;
71 bool m_nameHasBeenSet = false;
72
73 Aws::String m_status;
74 bool m_statusHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStatus(const Aws::String &value)
const VolumeStatusName & GetName() const
VolumeStatusDetails & WithName(const VolumeStatusName &value)
AWS_EC2_API VolumeStatusDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeStatusDetails & WithStatus(const Aws::String &value)
void SetName(const VolumeStatusName &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VolumeStatusDetails & WithStatus(const char *value)
void SetName(VolumeStatusName &&value)
VolumeStatusDetails & WithName(VolumeStatusName &&value)
VolumeStatusDetails & WithStatus(Aws::String &&value)
const Aws::String & GetStatus() const
AWS_EC2_API VolumeStatusDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream