AWS SDK for C++  1.9.74
AWS SDK for C++
VolumeStatusDetails.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const VolumeStatusName& GetName() const{ return m_name; }
47 
51  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 
56  inline void SetName(const VolumeStatusName& value) { m_nameHasBeenSet = true; m_name = value; }
57 
61  inline void SetName(VolumeStatusName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 
66  inline VolumeStatusDetails& WithName(const VolumeStatusName& value) { SetName(value); return *this;}
67 
71  inline VolumeStatusDetails& WithName(VolumeStatusName&& value) { SetName(std::move(value)); return *this;}
72 
73 
77  inline const Aws::String& GetStatus() const{ return m_status; }
78 
82  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 
87  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
88 
92  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
93 
97  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
98 
102  inline VolumeStatusDetails& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
103 
107  inline VolumeStatusDetails& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
108 
112  inline VolumeStatusDetails& WithStatus(const char* value) { SetStatus(value); return *this;}
113 
114  private:
115 
116  VolumeStatusName m_name;
117  bool m_nameHasBeenSet;
118 
119  Aws::String m_status;
120  bool m_statusHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace EC2
125 } // namespace Aws
Aws::EC2::Model::VolumeStatusDetails::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::VolumeStatusDetails::WithStatus
VolumeStatusDetails & WithStatus(const Aws::String &value)
Definition: VolumeStatusDetails.h:102
Aws::EC2::Model::VolumeStatusDetails::SetStatus
void SetStatus(const Aws::String &value)
Definition: VolumeStatusDetails.h:87
Aws::EC2::Model::VolumeStatusDetails::WithStatus
VolumeStatusDetails & WithStatus(Aws::String &&value)
Definition: VolumeStatusDetails.h:107
Aws::EC2::Model::VolumeStatusDetails::GetName
const VolumeStatusName & GetName() const
Definition: VolumeStatusDetails.h:46
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
VolumeStatusName.h
Aws::EC2::Model::VolumeStatusDetails::WithName
VolumeStatusDetails & WithName(VolumeStatusName &&value)
Definition: VolumeStatusDetails.h:71
AWSStreamFwd.h
Aws::EC2::Model::VolumeStatusDetails::SetName
void SetName(const VolumeStatusName &value)
Definition: VolumeStatusDetails.h:56
Aws::EC2::Model::VolumeStatusName
VolumeStatusName
Definition: VolumeStatusName.h:17
Aws::EC2::Model::VolumeStatusDetails
Definition: VolumeStatusDetails.h:33
Aws::EC2::Model::VolumeStatusDetails::GetStatus
const Aws::String & GetStatus() const
Definition: VolumeStatusDetails.h:77
Aws::EC2::Model::VolumeStatusDetails::VolumeStatusDetails
VolumeStatusDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::VolumeStatusDetails::NameHasBeenSet
bool NameHasBeenSet() const
Definition: VolumeStatusDetails.h:51
Aws::EC2::Model::VolumeStatusDetails::WithName
VolumeStatusDetails & WithName(const VolumeStatusName &value)
Definition: VolumeStatusDetails.h:66
Aws::EC2::Model::VolumeStatusDetails::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: VolumeStatusDetails.h:82
Aws::EC2::Model::VolumeStatusDetails::SetName
void SetName(VolumeStatusName &&value)
Definition: VolumeStatusDetails.h:61
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::VolumeStatusDetails::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::VolumeStatusDetails::WithStatus
VolumeStatusDetails & WithStatus(const char *value)
Definition: VolumeStatusDetails.h:112
AWSString.h
Aws::EC2::Model::VolumeStatusDetails::SetStatus
void SetStatus(Aws::String &&value)
Definition: VolumeStatusDetails.h:92
Aws::EC2::Model::VolumeStatusDetails::SetStatus
void SetStatus(const char *value)
Definition: VolumeStatusDetails.h:97
Aws::EC2::Model::VolumeStatusDetails::VolumeStatusDetails
VolumeStatusDetails()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::VolumeStatusDetails::operator=
VolumeStatusDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h