AWS SDK for C++  1.8.95
AWS SDK for C++
Filter.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace DocDB
23 {
24 namespace Model
25 {
26 
35  {
36  public:
37  Filter();
38  Filter(const Aws::Utils::Xml::XmlNode& xmlNode);
39  Filter& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
73  inline Filter& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
78  inline Filter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
83  inline Filter& WithName(const char* value) { SetName(value); return *this;}
84 
85 
89  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
90 
94  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
95 
99  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
100 
104  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
105 
109  inline Filter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
110 
114  inline Filter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
115 
119  inline Filter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
120 
124  inline Filter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
125 
129  inline Filter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
130 
131  private:
132 
133  Aws::String m_name;
134  bool m_nameHasBeenSet;
135 
136  Aws::Vector<Aws::String> m_values;
137  bool m_valuesHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace DocDB
142 } // namespace Aws
void SetName(const char *value)
Definition: Filter.h:68
void SetName(Aws::String &&value)
Definition: Filter.h:63
Filter & WithName(const char *value)
Definition: Filter.h:83
Filter & AddValues(Aws::String &&value)
Definition: Filter.h:124
const Aws::Vector< Aws::String > & GetValues() const
Definition: Filter.h:89
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
int index
Definition: cJSON.h:171
const Aws::String & GetName() const
Definition: Filter.h:48
Filter & AddValues(const char *value)
Definition: Filter.h:129
Filter & AddValues(const Aws::String &value)
Definition: Filter.h:119
bool NameHasBeenSet() const
Definition: Filter.h:53
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
void SetName(const Aws::String &value)
Definition: Filter.h:58
bool ValuesHasBeenSet() const
Definition: Filter.h:94
Filter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:109
#define AWS_DOCDB_API
Definition: DocDB_EXPORTS.h:28
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:99
Filter & WithName(const Aws::String &value)
Definition: Filter.h:73
Filter & WithName(Aws::String &&value)
Definition: Filter.h:78
Filter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:114
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:104