AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateCondition.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 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
59  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 
69  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 
74  inline UpdateCondition& WithName(const Aws::String& value) { SetName(value); return *this;}
75 
79  inline UpdateCondition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 
84  inline UpdateCondition& WithName(const char* value) { SetName(value); return *this;}
85 
86 
91  inline const Aws::String& GetValue() const{ return m_value; }
92 
97  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
98 
103  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
104 
109  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
110 
115  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
116 
121  inline UpdateCondition& WithValue(const Aws::String& value) { SetValue(value); return *this;}
122 
127  inline UpdateCondition& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
128 
133  inline UpdateCondition& WithValue(const char* value) { SetValue(value); return *this;}
134 
135 
143  inline bool GetExists() const{ return m_exists; }
144 
152  inline bool ExistsHasBeenSet() const { return m_existsHasBeenSet; }
153 
161  inline void SetExists(bool value) { m_existsHasBeenSet = true; m_exists = value; }
162 
170  inline UpdateCondition& WithExists(bool value) { SetExists(value); return *this;}
171 
172  private:
173 
174  Aws::String m_name;
175  bool m_nameHasBeenSet;
176 
177  Aws::String m_value;
178  bool m_valueHasBeenSet;
179 
180  bool m_exists;
181  bool m_existsHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace SimpleDB
186 } // namespace Aws
Aws::SimpleDB::Model::UpdateCondition::SetExists
void SetExists(bool value)
Definition: UpdateCondition.h:161
Aws::SimpleDB::Model::UpdateCondition::WithName
UpdateCondition & WithName(const char *value)
Definition: UpdateCondition.h:84
Aws::SimpleDB::Model::UpdateCondition::SetName
void SetName(const Aws::String &value)
Definition: UpdateCondition.h:59
Aws::SimpleDB::Model::UpdateCondition
Definition: UpdateCondition.h:36
Aws::SimpleDB::Model::UpdateCondition::WithName
UpdateCondition & WithName(Aws::String &&value)
Definition: UpdateCondition.h:79
Aws::SimpleDB::Model::UpdateCondition::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateCondition.h:54
Aws::SimpleDB::Model::UpdateCondition::GetExists
bool GetExists() const
Definition: UpdateCondition.h:143
Aws::SimpleDB::Model::UpdateCondition::GetName
const Aws::String & GetName() const
Definition: UpdateCondition.h:49
Aws::SimpleDB::Model::UpdateCondition::WithValue
UpdateCondition & WithValue(const char *value)
Definition: UpdateCondition.h:133
AWSStreamFwd.h
Aws::SimpleDB::Model::UpdateCondition::SetName
void SetName(const char *value)
Definition: UpdateCondition.h:69
Aws::SimpleDB::Model::UpdateCondition::SetValue
void SetValue(const Aws::String &value)
Definition: UpdateCondition.h:103
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::UpdateCondition::UpdateCondition
UpdateCondition(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SimpleDB::Model::UpdateCondition::ExistsHasBeenSet
bool ExistsHasBeenSet() const
Definition: UpdateCondition.h:152
Aws::SimpleDB::Model::UpdateCondition::WithExists
UpdateCondition & WithExists(bool value)
Definition: UpdateCondition.h:170
Aws::SimpleDB::Model::UpdateCondition::SetValue
void SetValue(Aws::String &&value)
Definition: UpdateCondition.h:109
AWSString.h
Aws::SimpleDB::Model::UpdateCondition::SetName
void SetName(Aws::String &&value)
Definition: UpdateCondition.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::SimpleDB::Model::UpdateCondition::WithValue
UpdateCondition & WithValue(Aws::String &&value)
Definition: UpdateCondition.h:127
Aws::SimpleDB::Model::UpdateCondition::SetValue
void SetValue(const char *value)
Definition: UpdateCondition.h:115
Aws::SimpleDB::Model::UpdateCondition::WithValue
UpdateCondition & WithValue(const Aws::String &value)
Definition: UpdateCondition.h:121
Aws::SimpleDB::Model::UpdateCondition::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: UpdateCondition.h:97
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::UpdateCondition::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SimpleDB::Model::UpdateCondition::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SimpleDB::Model::UpdateCondition::WithName
UpdateCondition & WithName(const Aws::String &value)
Definition: UpdateCondition.h:74
Aws::SimpleDB::Model::UpdateCondition::GetValue
const Aws::String & GetValue() const
Definition: UpdateCondition.h:91
Aws::SimpleDB::Model::UpdateCondition::operator=
UpdateCondition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SimpleDB::Model::UpdateCondition::UpdateCondition
UpdateCondition()