AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReplaceableAttribute.h
1
6#pragma once
7#include <aws/sdb/SimpleDB_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 SimpleDB
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SIMPLEDB_API ReplaceableAttribute() = default;
35 AWS_SIMPLEDB_API ReplaceableAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_SIMPLEDB_API ReplaceableAttribute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 ReplaceableAttribute& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template<typename ValueT = Aws::String>
61 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
62 template<typename ValueT = Aws::String>
63 ReplaceableAttribute& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
65
67
71 inline bool GetReplace() const { return m_replace; }
72 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
73 inline void SetReplace(bool value) { m_replaceHasBeenSet = true; m_replace = value; }
74 inline ReplaceableAttribute& WithReplace(bool value) { SetReplace(value); return *this;}
76 private:
77
78 Aws::String m_name;
79 bool m_nameHasBeenSet = false;
80
81 Aws::String m_value;
82 bool m_valueHasBeenSet = false;
83
84 bool m_replace{false};
85 bool m_replaceHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace SimpleDB
90} // namespace Aws
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_SIMPLEDB_API ReplaceableAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_SIMPLEDB_API ReplaceableAttribute()=default
ReplaceableAttribute & WithReplace(bool value)
AWS_SIMPLEDB_API ReplaceableAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplaceableAttribute & WithName(NameT &&value)
ReplaceableAttribute & WithValue(ValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream