AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Attribute.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
27class Attribute {
28 public:
29 AWS_SIMPLEDB_API Attribute() = default;
30 AWS_SIMPLEDB_API Attribute(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_SIMPLEDB_API Attribute& 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>
48 Attribute& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAlternateNameEncoding() const { return m_alternateNameEncoding; }
59 inline bool AlternateNameEncodingHasBeenSet() const { return m_alternateNameEncodingHasBeenSet; }
60 template <typename AlternateNameEncodingT = Aws::String>
61 void SetAlternateNameEncoding(AlternateNameEncodingT&& value) {
62 m_alternateNameEncodingHasBeenSet = true;
63 m_alternateNameEncoding = std::forward<AlternateNameEncodingT>(value);
64 }
65 template <typename AlternateNameEncodingT = Aws::String>
66 Attribute& WithAlternateNameEncoding(AlternateNameEncodingT&& value) {
67 SetAlternateNameEncoding(std::forward<AlternateNameEncodingT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetValue() const { return m_value; }
77 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
78 template <typename ValueT = Aws::String>
79 void SetValue(ValueT&& value) {
80 m_valueHasBeenSet = true;
81 m_value = std::forward<ValueT>(value);
82 }
83 template <typename ValueT = Aws::String>
84 Attribute& WithValue(ValueT&& value) {
85 SetValue(std::forward<ValueT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetAlternateValueEncoding() const { return m_alternateValueEncoding; }
95 inline bool AlternateValueEncodingHasBeenSet() const { return m_alternateValueEncodingHasBeenSet; }
96 template <typename AlternateValueEncodingT = Aws::String>
97 void SetAlternateValueEncoding(AlternateValueEncodingT&& value) {
98 m_alternateValueEncodingHasBeenSet = true;
99 m_alternateValueEncoding = std::forward<AlternateValueEncodingT>(value);
100 }
101 template <typename AlternateValueEncodingT = Aws::String>
102 Attribute& WithAlternateValueEncoding(AlternateValueEncodingT&& value) {
103 SetAlternateValueEncoding(std::forward<AlternateValueEncodingT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_name;
109
110 Aws::String m_alternateNameEncoding;
111
112 Aws::String m_value;
113
114 Aws::String m_alternateValueEncoding;
115 bool m_nameHasBeenSet = false;
116 bool m_alternateNameEncodingHasBeenSet = false;
117 bool m_valueHasBeenSet = false;
118 bool m_alternateValueEncodingHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace SimpleDB
123} // namespace Aws
AWS_SIMPLEDB_API Attribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SIMPLEDB_API Attribute(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetAlternateValueEncoding() const
Definition Attribute.h:94
Attribute & WithAlternateValueEncoding(AlternateValueEncodingT &&value)
Definition Attribute.h:102
void SetName(NameT &&value)
Definition Attribute.h:43
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetName() const
Definition Attribute.h:40
void SetAlternateValueEncoding(AlternateValueEncodingT &&value)
Definition Attribute.h:97
bool AlternateValueEncodingHasBeenSet() const
Definition Attribute.h:95
const Aws::String & GetValue() const
Definition Attribute.h:76
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_SIMPLEDB_API Attribute()=default
const Aws::String & GetAlternateNameEncoding() const
Definition Attribute.h:58
Attribute & WithAlternateNameEncoding(AlternateNameEncodingT &&value)
Definition Attribute.h:66
bool AlternateNameEncodingHasBeenSet() const
Definition Attribute.h:59
Attribute & WithName(NameT &&value)
Definition Attribute.h:48
void SetAlternateNameEncoding(AlternateNameEncodingT &&value)
Definition Attribute.h:61
Attribute & WithValue(ValueT &&value)
Definition Attribute.h:84
void SetValue(ValueT &&value)
Definition Attribute.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream