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 Neptune
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Filter();
36  Filter(const Aws::Utils::Xml::XmlNode& xmlNode);
37  Filter& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
Filter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:112
#define AWS_NEPTUNE_API
void SetName(const Aws::String &value)
Definition: Filter.h:56
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
bool ValuesHasBeenSet() const
Definition: Filter.h:92
const Aws::Vector< Aws::String > & GetValues() const
Definition: Filter.h:87
int index
Definition: cJSON.h:171
Filter & AddValues(const char *value)
Definition: Filter.h:127
Filter & WithName(const Aws::String &value)
Definition: Filter.h:71
Filter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:107
Filter & WithName(const char *value)
Definition: Filter.h:81
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Filter & AddValues(Aws::String &&value)
Definition: Filter.h:122
const Aws::String & GetName() const
Definition: Filter.h:46
void SetName(Aws::String &&value)
Definition: Filter.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
bool NameHasBeenSet() const
Definition: Filter.h:51
void SetName(const char *value)
Definition: Filter.h:66
Filter & WithName(Aws::String &&value)
Definition: Filter.h:76
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:102
Filter & AddValues(const Aws::String &value)
Definition: Filter.h:117
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:97