AWS SDK for C++  1.9.104
AWS SDK for C++
ReplaceableAttribute.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 ReplaceableAttribute& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline ReplaceableAttribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline ReplaceableAttribute& WithName(const char* value) { SetName(value); return *this;}
81 
82 
86  inline const Aws::String& GetValue() const{ return m_value; }
87 
91  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
92 
96  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
97 
101  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
102 
106  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
107 
111  inline ReplaceableAttribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
112 
116  inline ReplaceableAttribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
117 
121  inline ReplaceableAttribute& WithValue(const char* value) { SetValue(value); return *this;}
122 
123 
128  inline bool GetReplace() const{ return m_replace; }
129 
134  inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
135 
140  inline void SetReplace(bool value) { m_replaceHasBeenSet = true; m_replace = value; }
141 
146  inline ReplaceableAttribute& WithReplace(bool value) { SetReplace(value); return *this;}
147 
148  private:
149 
150  Aws::String m_name;
151  bool m_nameHasBeenSet;
152 
153  Aws::String m_value;
154  bool m_valueHasBeenSet;
155 
156  bool m_replace;
157  bool m_replaceHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace SimpleDB
162 } // namespace Aws
Aws::SimpleDB::Model::ReplaceableAttribute::GetReplace
bool GetReplace() const
Definition: ReplaceableAttribute.h:128
Aws::SimpleDB::Model::ReplaceableAttribute::SetName
void SetName(const Aws::String &value)
Definition: ReplaceableAttribute.h:55
Aws::SimpleDB::Model::ReplaceableAttribute::WithName
ReplaceableAttribute & WithName(Aws::String &&value)
Definition: ReplaceableAttribute.h:75
Aws::SimpleDB::Model::ReplaceableAttribute::SetReplace
void SetReplace(bool value)
Definition: ReplaceableAttribute.h:140
Aws::SimpleDB::Model::ReplaceableAttribute::WithValue
ReplaceableAttribute & WithValue(const char *value)
Definition: ReplaceableAttribute.h:121
Aws::SimpleDB::Model::ReplaceableAttribute::ReplaceHasBeenSet
bool ReplaceHasBeenSet() const
Definition: ReplaceableAttribute.h:134
Aws::SimpleDB::Model::ReplaceableAttribute::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SimpleDB::Model::ReplaceableAttribute::WithReplace
ReplaceableAttribute & WithReplace(bool value)
Definition: ReplaceableAttribute.h:146
AWSStreamFwd.h
Aws::SimpleDB::Model::ReplaceableAttribute::operator=
ReplaceableAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SimpleDB::Model::ReplaceableAttribute::SetName
void SetName(Aws::String &&value)
Definition: ReplaceableAttribute.h:60
Aws::SimpleDB::Model::ReplaceableAttribute::WithName
ReplaceableAttribute & WithName(const Aws::String &value)
Definition: ReplaceableAttribute.h:70
Aws::SimpleDB::Model::ReplaceableAttribute::GetValue
const Aws::String & GetValue() const
Definition: ReplaceableAttribute.h:86
Aws::SimpleDB::Model::ReplaceableAttribute::ReplaceableAttribute
ReplaceableAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SimpleDB::Model::ReplaceableAttribute::GetName
const Aws::String & GetName() const
Definition: ReplaceableAttribute.h:45
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SimpleDB::Model::ReplaceableAttribute::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SimpleDB::Model::ReplaceableAttribute::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: ReplaceableAttribute.h:91
Aws::SimpleDB::Model::ReplaceableAttribute
Definition: ReplaceableAttribute.h:32
Aws::SimpleDB::Model::ReplaceableAttribute::SetValue
void SetValue(Aws::String &&value)
Definition: ReplaceableAttribute.h:101
Aws::SimpleDB::Model::ReplaceableAttribute::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ReplaceableAttribute.h:50
Aws::SimpleDB::Model::ReplaceableAttribute::SetName
void SetName(const char *value)
Definition: ReplaceableAttribute.h:65
Aws::SimpleDB::Model::ReplaceableAttribute::ReplaceableAttribute
ReplaceableAttribute()
AWSString.h
Aws::SimpleDB::Model::ReplaceableAttribute::WithValue
ReplaceableAttribute & WithValue(const Aws::String &value)
Definition: ReplaceableAttribute.h:111
Aws::SimpleDB::Model::ReplaceableAttribute::WithName
ReplaceableAttribute & WithName(const char *value)
Definition: ReplaceableAttribute.h:80
Aws::SimpleDB::Model::ReplaceableAttribute::WithValue
ReplaceableAttribute & WithValue(Aws::String &&value)
Definition: ReplaceableAttribute.h:116
Aws
Definition: AccessManagementClient.h:15
Aws::SimpleDB::Model::ReplaceableAttribute::SetValue
void SetValue(const Aws::String &value)
Definition: ReplaceableAttribute.h:96
Aws::SimpleDB::Model::ReplaceableAttribute::SetValue
void SetValue(const char *value)
Definition: ReplaceableAttribute.h:106
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