AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateCondition.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
36 {
37 public:
38 AWS_SIMPLEDB_API UpdateCondition() = default;
39 AWS_SIMPLEDB_API UpdateCondition(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_SIMPLEDB_API UpdateCondition& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 UpdateCondition& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
63 inline const Aws::String& GetValue() const { return m_value; }
64 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
65 template<typename ValueT = Aws::String>
66 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
67 template<typename ValueT = Aws::String>
68 UpdateCondition& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
70
72
79 inline bool GetExists() const { return m_exists; }
80 inline bool ExistsHasBeenSet() const { return m_existsHasBeenSet; }
81 inline void SetExists(bool value) { m_existsHasBeenSet = true; m_exists = value; }
82 inline UpdateCondition& WithExists(bool value) { SetExists(value); return *this;}
84 private:
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88
89 Aws::String m_value;
90 bool m_valueHasBeenSet = false;
91
92 bool m_exists{false};
93 bool m_existsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SimpleDB
98} // namespace Aws
AWS_SIMPLEDB_API UpdateCondition(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetName() const
AWS_SIMPLEDB_API UpdateCondition()=default
AWS_SIMPLEDB_API UpdateCondition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
UpdateCondition & WithValue(ValueT &&value)
const Aws::String & GetValue() const
UpdateCondition & WithName(NameT &&value)
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
UpdateCondition & WithExists(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream