AWS SDK for C++  1.8.183
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();
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
Aws::DocDB::Model::Filter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:99
Aws::DocDB::Model::Filter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:104
Aws::DocDB::Model::Filter::GetName
const Aws::String & GetName() const
Definition: Filter.h:48
Aws::DocDB::Model::Filter::AddValues
Filter & AddValues(const Aws::String &value)
Definition: Filter.h:119
Aws::DocDB::Model::Filter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: Filter.h:89
Aws::DocDB::Model::Filter::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::DocDB::Model::Filter::operator=
Filter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSVector.h
Aws::DocDB::Model::Filter::WithName
Filter & WithName(Aws::String &&value)
Definition: Filter.h:78
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::DocDB::Model::Filter::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_DOCDB_API
#define AWS_DOCDB_API
Definition: DocDB_EXPORTS.h:28
Aws::DocDB::Model::Filter::Filter
Filter()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::DocDB::Model::Filter::Filter
Filter(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::DocDB::Model::Filter::SetName
void SetName(Aws::String &&value)
Definition: Filter.h:63
Aws::DocDB::Model::Filter::WithName
Filter & WithName(const Aws::String &value)
Definition: Filter.h:73
Aws::DocDB::Model::Filter::SetName
void SetName(const char *value)
Definition: Filter.h:68
AWSString.h
Aws::DocDB::Model::Filter::WithName
Filter & WithName(const char *value)
Definition: Filter.h:83
DocDB_EXPORTS.h
Aws::DocDB::Model::Filter::WithValues
Filter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:114
Aws::DocDB::Model::Filter::WithValues
Filter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:109
Aws::DocDB::Model::Filter::SetName
void SetName(const Aws::String &value)
Definition: Filter.h:58
Aws::DocDB::Model::Filter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Filter.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:171
Aws::DocDB::Model::Filter
Definition: Filter.h:35
Aws::DocDB::Model::Filter::AddValues
Filter & AddValues(Aws::String &&value)
Definition: Filter.h:124
Aws::DocDB::Model::Filter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: Filter.h:94
Aws::DocDB::Model::Filter::AddValues
Filter & AddValues(const char *value)
Definition: Filter.h:129