AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserData.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API UserData();
35 AWS_EC2_API UserData(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API UserData& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
48 inline const Aws::String& GetData() const{ return m_data; }
49 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
50 inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
51 inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
52 inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
53 inline UserData& WithData(const Aws::String& value) { SetData(value); return *this;}
54 inline UserData& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
55 inline UserData& WithData(const char* value) { SetData(value); return *this;}
57 private:
58
59 Aws::String m_data;
60 bool m_dataHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace EC2
65} // namespace Aws
AWS_EC2_API UserData & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API UserData(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetData(Aws::String &&value)
Definition UserData.h:51
UserData & WithData(const char *value)
Definition UserData.h:55
UserData & WithData(const Aws::String &value)
Definition UserData.h:53
void SetData(const char *value)
Definition UserData.h:52
bool DataHasBeenSet() const
Definition UserData.h:49
void SetData(const Aws::String &value)
Definition UserData.h:50
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
UserData & WithData(Aws::String &&value)
Definition UserData.h:54
const Aws::String & GetData() const
Definition UserData.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream