AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ReplaceableAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sdb/SimpleDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace SimpleDB {
20namespace Model {
21
28 public:
29 AWS_SIMPLEDB_API ReplaceableAttribute() = default;
30 AWS_SIMPLEDB_API ReplaceableAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_SIMPLEDB_API ReplaceableAttribute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
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) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = Aws::String>
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71
73
77 inline bool GetReplace() const { return m_replace; }
78 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
79 inline void SetReplace(bool value) {
80 m_replaceHasBeenSet = true;
81 m_replace = value;
82 }
83 inline ReplaceableAttribute& WithReplace(bool value) {
84 SetReplace(value);
85 return *this;
86 }
88 private:
89 Aws::String m_name;
90
91 Aws::String m_value;
92
93 bool m_replace{false};
94 bool m_nameHasBeenSet = false;
95 bool m_valueHasBeenSet = false;
96 bool m_replaceHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace SimpleDB
101} // 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