AWS SDK for C++  1.9.68
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 Neptune
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Filter();
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
51  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 
56  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 
66  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 
71  inline Filter& WithName(const Aws::String& value) { SetName(value); return *this;}
72 
76  inline Filter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
77 
81  inline Filter& WithName(const char* value) { SetName(value); return *this;}
82 
83 
87  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
88 
92  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
93 
97  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
98 
102  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
103 
107  inline Filter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
108 
112  inline Filter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
113 
117  inline Filter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
118 
122  inline Filter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
123 
127  inline Filter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
128 
129  private:
130 
131  Aws::String m_name;
132  bool m_nameHasBeenSet;
133 
134  Aws::Vector<Aws::String> m_values;
135  bool m_valuesHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace Neptune
140 } // namespace Aws
Aws::Neptune::Model::Filter
Definition: Filter.h:33
Aws::Neptune::Model::Filter::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Neptune::Model::Filter::Filter
Filter()
Aws::Neptune::Model::Filter::WithValues
Filter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:107
Neptune_EXPORTS.h
Aws::Neptune::Model::Filter::SetName
void SetName(Aws::String &&value)
Definition: Filter.h:61
Aws::Neptune::Model::Filter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: Filter.h:92
Aws::Neptune::Model::Filter::WithName
Filter & WithName(const char *value)
Definition: Filter.h:81
AWS_NEPTUNE_API
#define AWS_NEPTUNE_API
Definition: Neptune_EXPORTS.h:28
Aws::Neptune::Model::Filter::AddValues
Filter & AddValues(const Aws::String &value)
Definition: Filter.h:117
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Neptune::Model::Filter::operator=
Filter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
AWSVector.h
Aws::Neptune::Model::Filter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: Filter.h:87
Aws::Neptune::Model::Filter::WithName
Filter & WithName(const Aws::String &value)
Definition: Filter.h:71
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Neptune::Model::Filter::WithName
Filter & WithName(Aws::String &&value)
Definition: Filter.h:76
Aws::Neptune::Model::Filter::AddValues
Filter & AddValues(Aws::String &&value)
Definition: Filter.h:122
Aws::Neptune::Model::Filter::SetName
void SetName(const Aws::String &value)
Definition: Filter.h:56
Aws::Neptune::Model::Filter::GetName
const Aws::String & GetName() const
Definition: Filter.h:46
AWSString.h
Aws::Neptune::Model::Filter::Filter
Filter(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Neptune::Model::Filter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:97
Aws::Neptune::Model::Filter::SetName
void SetName(const char *value)
Definition: Filter.h:66
Aws::Neptune::Model::Filter::AddValues
Filter & AddValues(const char *value)
Definition: Filter.h:127
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:181
Aws::Neptune::Model::Filter::WithValues
Filter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:112
Aws::Neptune::Model::Filter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Filter.h:51
Aws::Neptune::Model::Filter::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Neptune::Model::Filter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:102