AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateCondition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sdb/SimpleDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace SimpleDB {
20namespace Model {
21
32 public:
33 AWS_SIMPLEDB_API UpdateCondition() = default;
34 AWS_SIMPLEDB_API UpdateCondition(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_SIMPLEDB_API UpdateCondition& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 UpdateCondition& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
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) {
67 m_valueHasBeenSet = true;
68 m_value = std::forward<ValueT>(value);
69 }
70 template <typename ValueT = Aws::String>
71 UpdateCondition& WithValue(ValueT&& value) {
72 SetValue(std::forward<ValueT>(value));
73 return *this;
74 }
76
78
85 inline bool GetExists() const { return m_exists; }
86 inline bool ExistsHasBeenSet() const { return m_existsHasBeenSet; }
87 inline void SetExists(bool value) {
88 m_existsHasBeenSet = true;
89 m_exists = value;
90 }
91 inline UpdateCondition& WithExists(bool value) {
92 SetExists(value);
93 return *this;
94 }
96 private:
97 Aws::String m_name;
98
99 Aws::String m_value;
100
101 bool m_exists{false};
102 bool m_nameHasBeenSet = false;
103 bool m_valueHasBeenSet = false;
104 bool m_existsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace SimpleDB
109} // 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