AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline Attribute& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline Attribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline Attribute& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetAlternateNameEncoding() const{ return m_alternateNameEncoding; }
61 inline bool AlternateNameEncodingHasBeenSet() const { return m_alternateNameEncodingHasBeenSet; }
62 inline void SetAlternateNameEncoding(const Aws::String& value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding = value; }
63 inline void SetAlternateNameEncoding(Aws::String&& value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding = std::move(value); }
64 inline void SetAlternateNameEncoding(const char* value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding.assign(value); }
65 inline Attribute& WithAlternateNameEncoding(const Aws::String& value) { SetAlternateNameEncoding(value); return *this;}
66 inline Attribute& WithAlternateNameEncoding(Aws::String&& value) { SetAlternateNameEncoding(std::move(value)); return *this;}
67 inline Attribute& WithAlternateNameEncoding(const char* value) { SetAlternateNameEncoding(value); return *this;}
69
71
74 inline const Aws::String& GetValue() const{ return m_value; }
75 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
76 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
77 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
78 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
79 inline Attribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
80 inline Attribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
81 inline Attribute& WithValue(const char* value) { SetValue(value); return *this;}
83
85
88 inline const Aws::String& GetAlternateValueEncoding() const{ return m_alternateValueEncoding; }
89 inline bool AlternateValueEncodingHasBeenSet() const { return m_alternateValueEncodingHasBeenSet; }
90 inline void SetAlternateValueEncoding(const Aws::String& value) { m_alternateValueEncodingHasBeenSet = true; m_alternateValueEncoding = value; }
91 inline void SetAlternateValueEncoding(Aws::String&& value) { m_alternateValueEncodingHasBeenSet = true; m_alternateValueEncoding = std::move(value); }
92 inline void SetAlternateValueEncoding(const char* value) { m_alternateValueEncodingHasBeenSet = true; m_alternateValueEncoding.assign(value); }
93 inline Attribute& WithAlternateValueEncoding(const Aws::String& value) { SetAlternateValueEncoding(value); return *this;}
94 inline Attribute& WithAlternateValueEncoding(Aws::String&& value) { SetAlternateValueEncoding(std::move(value)); return *this;}
95 inline Attribute& WithAlternateValueEncoding(const char* value) { SetAlternateValueEncoding(value); return *this;}
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 Aws::String m_alternateNameEncoding;
103 bool m_alternateNameEncodingHasBeenSet = false;
104
105 Aws::String m_value;
106 bool m_valueHasBeenSet = false;
107
108 Aws::String m_alternateValueEncoding;
109 bool m_alternateValueEncodingHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SimpleDB
114} // namespace Aws
AWS_SIMPLEDB_API Attribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Attribute & WithName(const Aws::String &value)
Definition Attribute.h:51
AWS_SIMPLEDB_API Attribute(const Aws::Utils::Xml::XmlNode &xmlNode)
Attribute & WithValue(const Aws::String &value)
Definition Attribute.h:79
const Aws::String & GetAlternateValueEncoding() const
Definition Attribute.h:88
Attribute & WithAlternateNameEncoding(const Aws::String &value)
Definition Attribute.h:65
Attribute & WithName(Aws::String &&value)
Definition Attribute.h:52
void SetName(const char *value)
Definition Attribute.h:50
void SetName(const Aws::String &value)
Definition Attribute.h:48
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetName() const
Definition Attribute.h:46
Attribute & WithAlternateValueEncoding(const Aws::String &value)
Definition Attribute.h:93
Attribute & WithAlternateNameEncoding(Aws::String &&value)
Definition Attribute.h:66
void SetValue(Aws::String &&value)
Definition Attribute.h:77
void SetAlternateNameEncoding(const char *value)
Definition Attribute.h:64
void SetAlternateValueEncoding(const Aws::String &value)
Definition Attribute.h:90
void SetName(Aws::String &&value)
Definition Attribute.h:49
Attribute & WithAlternateValueEncoding(const char *value)
Definition Attribute.h:95
bool AlternateValueEncodingHasBeenSet() const
Definition Attribute.h:89
const Aws::String & GetValue() const
Definition Attribute.h:74
Attribute & WithAlternateValueEncoding(Aws::String &&value)
Definition Attribute.h:94
void SetAlternateNameEncoding(const Aws::String &value)
Definition Attribute.h:62
Attribute & WithValue(const char *value)
Definition Attribute.h:81
void SetAlternateValueEncoding(Aws::String &&value)
Definition Attribute.h:91
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Attribute & WithName(const char *value)
Definition Attribute.h:53
Attribute & WithAlternateNameEncoding(const char *value)
Definition Attribute.h:67
AWS_SIMPLEDB_API Attribute()
const Aws::String & GetAlternateNameEncoding() const
Definition Attribute.h:60
void SetAlternateNameEncoding(Aws::String &&value)
Definition Attribute.h:63
bool AlternateNameEncodingHasBeenSet() const
Definition Attribute.h:61
void SetValue(const Aws::String &value)
Definition Attribute.h:76
void SetValue(const char *value)
Definition Attribute.h:78
void SetAlternateValueEncoding(const char *value)
Definition Attribute.h:92
Attribute & WithValue(Aws::String &&value)
Definition Attribute.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream