AWS SDK for C++  1.9.107
AWS SDK for C++
Attribute.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace SimpleDB
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline Attribute& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline Attribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline Attribute& WithName(const char* value) { SetName(value); return *this;}
81 
82 
86  inline const Aws::String& GetAlternateNameEncoding() const{ return m_alternateNameEncoding; }
87 
91  inline bool AlternateNameEncodingHasBeenSet() const { return m_alternateNameEncodingHasBeenSet; }
92 
96  inline void SetAlternateNameEncoding(const Aws::String& value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding = value; }
97 
101  inline void SetAlternateNameEncoding(Aws::String&& value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding = std::move(value); }
102 
106  inline void SetAlternateNameEncoding(const char* value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding.assign(value); }
107 
111  inline Attribute& WithAlternateNameEncoding(const Aws::String& value) { SetAlternateNameEncoding(value); return *this;}
112 
116  inline Attribute& WithAlternateNameEncoding(Aws::String&& value) { SetAlternateNameEncoding(std::move(value)); return *this;}
117 
121  inline Attribute& WithAlternateNameEncoding(const char* value) { SetAlternateNameEncoding(value); return *this;}
122 
123 
127  inline const Aws::String& GetValue() const{ return m_value; }
128 
132  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
133 
137  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
138 
142  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
143 
147  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
148 
152  inline Attribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
153 
157  inline Attribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
158 
162  inline Attribute& WithValue(const char* value) { SetValue(value); return *this;}
163 
164 
168  inline const Aws::String& GetAlternateValueEncoding() const{ return m_alternateValueEncoding; }
169 
173  inline bool AlternateValueEncodingHasBeenSet() const { return m_alternateValueEncodingHasBeenSet; }
174 
178  inline void SetAlternateValueEncoding(const Aws::String& value) { m_alternateValueEncodingHasBeenSet = true; m_alternateValueEncoding = value; }
179 
183  inline void SetAlternateValueEncoding(Aws::String&& value) { m_alternateValueEncodingHasBeenSet = true; m_alternateValueEncoding = std::move(value); }
184 
188  inline void SetAlternateValueEncoding(const char* value) { m_alternateValueEncodingHasBeenSet = true; m_alternateValueEncoding.assign(value); }
189 
193  inline Attribute& WithAlternateValueEncoding(const Aws::String& value) { SetAlternateValueEncoding(value); return *this;}
194 
198  inline Attribute& WithAlternateValueEncoding(Aws::String&& value) { SetAlternateValueEncoding(std::move(value)); return *this;}
199 
203  inline Attribute& WithAlternateValueEncoding(const char* value) { SetAlternateValueEncoding(value); return *this;}
204 
205  private:
206 
207  Aws::String m_name;
208  bool m_nameHasBeenSet;
209 
210  Aws::String m_alternateNameEncoding;
211  bool m_alternateNameEncodingHasBeenSet;
212 
213  Aws::String m_value;
214  bool m_valueHasBeenSet;
215 
216  Aws::String m_alternateValueEncoding;
217  bool m_alternateValueEncodingHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace SimpleDB
222 } // namespace Aws
Aws::SimpleDB::Model::Attribute::operator=
Attribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SimpleDB::Model::Attribute::WithAlternateValueEncoding
Attribute & WithAlternateValueEncoding(const char *value)
Definition: Attribute.h:203
Aws::SimpleDB::Model::Attribute::SetValue
void SetValue(const Aws::String &value)
Definition: Attribute.h:137
Aws::SimpleDB::Model::Attribute::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SimpleDB::Model::Attribute::SetAlternateValueEncoding
void SetAlternateValueEncoding(Aws::String &&value)
Definition: Attribute.h:183
Aws::SimpleDB::Model::Attribute::GetValue
const Aws::String & GetValue() const
Definition: Attribute.h:127
Aws::SimpleDB::Model::Attribute::WithName
Attribute & WithName(const char *value)
Definition: Attribute.h:80
Aws::SimpleDB::Model::Attribute::WithAlternateValueEncoding
Attribute & WithAlternateValueEncoding(Aws::String &&value)
Definition: Attribute.h:198
Aws::SimpleDB::Model::Attribute::SetName
void SetName(const char *value)
Definition: Attribute.h:65
Aws::SimpleDB::Model::Attribute::WithValue
Attribute & WithValue(Aws::String &&value)
Definition: Attribute.h:157
Aws::SimpleDB::Model::Attribute::Attribute
Attribute()
Aws::SimpleDB::Model::Attribute
Definition: Attribute.h:32
Aws::SimpleDB::Model::Attribute::WithValue
Attribute & WithValue(const Aws::String &value)
Definition: Attribute.h:152
Aws::SimpleDB::Model::Attribute::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSStreamFwd.h
Aws::SimpleDB::Model::Attribute::AlternateNameEncodingHasBeenSet
bool AlternateNameEncodingHasBeenSet() const
Definition: Attribute.h:91
Aws::SimpleDB::Model::Attribute::SetAlternateNameEncoding
void SetAlternateNameEncoding(const char *value)
Definition: Attribute.h:106
Aws::SimpleDB::Model::Attribute::WithAlternateNameEncoding
Attribute & WithAlternateNameEncoding(const Aws::String &value)
Definition: Attribute.h:111
Aws::SimpleDB::Model::Attribute::WithName
Attribute & WithName(Aws::String &&value)
Definition: Attribute.h:75
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SimpleDB::Model::Attribute::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Attribute.h:132
Aws::SimpleDB::Model::Attribute::GetAlternateValueEncoding
const Aws::String & GetAlternateValueEncoding() const
Definition: Attribute.h:168
Aws::SimpleDB::Model::Attribute::WithAlternateNameEncoding
Attribute & WithAlternateNameEncoding(const char *value)
Definition: Attribute.h:121
Aws::SimpleDB::Model::Attribute::SetAlternateNameEncoding
void SetAlternateNameEncoding(Aws::String &&value)
Definition: Attribute.h:101
Aws::SimpleDB::Model::Attribute::SetValue
void SetValue(const char *value)
Definition: Attribute.h:147
Aws::SimpleDB::Model::Attribute::WithName
Attribute & WithName(const Aws::String &value)
Definition: Attribute.h:70
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SimpleDB::Model::Attribute::GetAlternateNameEncoding
const Aws::String & GetAlternateNameEncoding() const
Definition: Attribute.h:86
AWSString.h
Aws::SimpleDB::Model::Attribute::AlternateValueEncodingHasBeenSet
bool AlternateValueEncodingHasBeenSet() const
Definition: Attribute.h:173
Aws::SimpleDB::Model::Attribute::WithValue
Attribute & WithValue(const char *value)
Definition: Attribute.h:162
Aws::SimpleDB::Model::Attribute::WithAlternateValueEncoding
Attribute & WithAlternateValueEncoding(const Aws::String &value)
Definition: Attribute.h:193
Aws::SimpleDB::Model::Attribute::SetAlternateNameEncoding
void SetAlternateNameEncoding(const Aws::String &value)
Definition: Attribute.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::SimpleDB::Model::Attribute::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Attribute.h:50
Aws::SimpleDB::Model::Attribute::SetValue
void SetValue(Aws::String &&value)
Definition: Attribute.h:142
Aws::SimpleDB::Model::Attribute::SetName
void SetName(const Aws::String &value)
Definition: Attribute.h:55
Aws::SimpleDB::Model::Attribute::GetName
const Aws::String & GetName() const
Definition: Attribute.h:45
AWS_SIMPLEDB_API
#define AWS_SIMPLEDB_API
Definition: SimpleDB_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SimpleDB_EXPORTS.h
index
int index
Definition: cJSON.h:181
Aws::SimpleDB::Model::Attribute::SetName
void SetName(Aws::String &&value)
Definition: Attribute.h:60
Aws::SimpleDB::Model::Attribute::SetAlternateValueEncoding
void SetAlternateValueEncoding(const Aws::String &value)
Definition: Attribute.h:178
Aws::SimpleDB::Model::Attribute::SetAlternateValueEncoding
void SetAlternateValueEncoding(const char *value)
Definition: Attribute.h:188
Aws::SimpleDB::Model::Attribute::WithAlternateNameEncoding
Attribute & WithAlternateNameEncoding(Aws::String &&value)
Definition: Attribute.h:116
Aws::SimpleDB::Model::Attribute::Attribute
Attribute(const Aws::Utils::Xml::XmlNode &xmlNode)