AWS SDK for C++  1.9.67
AWS SDK for C++
AttributeBooleanValue.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
9 
10 namespace Aws
11 {
12 namespace Utils
13 {
14 namespace Xml
15 {
16  class XmlNode;
17 } // namespace Xml
18 } // namespace Utils
19 namespace EC2
20 {
21 namespace Model
22 {
23 
31  {
32  public:
36 
37  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38  void OutputToStream(Aws::OStream& oStream, const char* location) const;
39 
40 
45  inline bool GetValue() const{ return m_value; }
46 
51  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
52 
57  inline void SetValue(bool value) { m_valueHasBeenSet = true; m_value = value; }
58 
63  inline AttributeBooleanValue& WithValue(bool value) { SetValue(value); return *this;}
64 
65  private:
66 
67  bool m_value;
68  bool m_valueHasBeenSet;
69  };
70 
71 } // namespace Model
72 } // namespace EC2
73 } // namespace Aws
Aws::EC2::Model::AttributeBooleanValue::operator=
AttributeBooleanValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::AttributeBooleanValue::SetValue
void SetValue(bool value)
Definition: AttributeBooleanValue.h:57
Aws::EC2::Model::AttributeBooleanValue::GetValue
bool GetValue() const
Definition: AttributeBooleanValue.h:45
Aws::EC2::Model::AttributeBooleanValue::WithValue
AttributeBooleanValue & WithValue(bool value)
Definition: AttributeBooleanValue.h:63
Aws::EC2::Model::AttributeBooleanValue::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::AttributeBooleanValue::AttributeBooleanValue
AttributeBooleanValue()
Aws::EC2::Model::AttributeBooleanValue
Definition: AttributeBooleanValue.h:31
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::AttributeBooleanValue::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: AttributeBooleanValue.h:51
Aws::EC2::Model::AttributeBooleanValue::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::AttributeBooleanValue::AttributeBooleanValue
AttributeBooleanValue(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h