AWS SDK for C++  1.9.68
AWS SDK for C++
UserData.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
47  inline const Aws::String& GetData() const{ return m_data; }
48 
54  inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
55 
61  inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
62 
68  inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
69 
75  inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
76 
82  inline UserData& WithData(const Aws::String& value) { SetData(value); return *this;}
83 
89  inline UserData& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
90 
96  inline UserData& WithData(const char* value) { SetData(value); return *this;}
97 
98  private:
99 
100  Aws::String m_data;
101  bool m_dataHasBeenSet;
102  };
103 
104 } // namespace Model
105 } // namespace EC2
106 } // namespace Aws
Aws::EC2::Model::UserData::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::UserData::WithData
UserData & WithData(const char *value)
Definition: UserData.h:96
Aws::EC2::Model::UserData
Definition: UserData.h:32
Aws::EC2::Model::UserData::SetData
void SetData(const Aws::String &value)
Definition: UserData.h:61
Aws::EC2::Model::UserData::GetData
const Aws::String & GetData() const
Definition: UserData.h:47
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::UserData::operator=
UserData & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::UserData::SetData
void SetData(const char *value)
Definition: UserData.h:75
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::UserData::UserData
UserData(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::UserData::WithData
UserData & WithData(const Aws::String &value)
Definition: UserData.h:82
Aws::EC2::Model::UserData::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::UserData::SetData
void SetData(Aws::String &&value)
Definition: UserData.h:68
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::UserData::DataHasBeenSet
bool DataHasBeenSet() const
Definition: UserData.h:54
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::UserData::UserData
UserData()
EC2_EXPORTS.h
Aws::EC2::Model::UserData::WithData
UserData & WithData(Aws::String &&value)
Definition: UserData.h:89