AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Attribute.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 Attribute() = default;
35 AWS_SIMPLEDB_API Attribute(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_SIMPLEDB_API Attribute& 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 Attribute& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding = std::forward<AlternateNameEncodingT>(value); }
62 template<typename AlternateNameEncodingT = Aws::String>
63 Attribute& WithAlternateNameEncoding(AlternateNameEncodingT&& value) { SetAlternateNameEncoding(std::forward<AlternateNameEncodingT>(value)); return *this;}
65
67
70 inline const Aws::String& GetValue() const { return m_value; }
71 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
72 template<typename ValueT = Aws::String>
73 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
74 template<typename ValueT = Aws::String>
75 Attribute& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
77
79
82 inline const Aws::String& GetAlternateValueEncoding() const { return m_alternateValueEncoding; }
83 inline bool AlternateValueEncodingHasBeenSet() const { return m_alternateValueEncodingHasBeenSet; }
84 template<typename AlternateValueEncodingT = Aws::String>
85 void SetAlternateValueEncoding(AlternateValueEncodingT&& value) { m_alternateValueEncodingHasBeenSet = true; m_alternateValueEncoding = std::forward<AlternateValueEncodingT>(value); }
86 template<typename AlternateValueEncodingT = Aws::String>
87 Attribute& WithAlternateValueEncoding(AlternateValueEncodingT&& value) { SetAlternateValueEncoding(std::forward<AlternateValueEncodingT>(value)); return *this;}
89 private:
90
91 Aws::String m_name;
92 bool m_nameHasBeenSet = false;
93
94 Aws::String m_alternateNameEncoding;
95 bool m_alternateNameEncodingHasBeenSet = false;
96
97 Aws::String m_value;
98 bool m_valueHasBeenSet = false;
99
100 Aws::String m_alternateValueEncoding;
101 bool m_alternateValueEncodingHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace SimpleDB
106} // 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:82
Attribute & WithAlternateValueEncoding(AlternateValueEncodingT &&value)
Definition Attribute.h:87
void SetName(NameT &&value)
Definition Attribute.h:49
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetName() const
Definition Attribute.h:46
void SetAlternateValueEncoding(AlternateValueEncodingT &&value)
Definition Attribute.h:85
bool AlternateValueEncodingHasBeenSet() const
Definition Attribute.h:83
const Aws::String & GetValue() const
Definition Attribute.h:70
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:63
bool AlternateNameEncodingHasBeenSet() const
Definition Attribute.h:59
Attribute & WithName(NameT &&value)
Definition Attribute.h:51
void SetAlternateNameEncoding(AlternateNameEncodingT &&value)
Definition Attribute.h:61
Attribute & WithValue(ValueT &&value)
Definition Attribute.h:75
void SetValue(ValueT &&value)
Definition Attribute.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream