AWS SDK for C++  1.9.130
AWS SDK for C++
Filter.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
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 EC2
23 {
24 namespace Model
25 {
26 
36  {
37  public:
38  Filter();
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
59  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 
69  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 
74  inline Filter& WithName(const Aws::String& value) { SetName(value); return *this;}
75 
79  inline Filter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 
84  inline Filter& WithName(const char* value) { SetName(value); return *this;}
85 
86 
90  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
91 
95  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
96 
100  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
101 
105  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
106 
110  inline Filter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
111 
115  inline Filter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
116 
120  inline Filter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
121 
125  inline Filter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
126 
130  inline Filter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
131 
132  private:
133 
134  Aws::String m_name;
135  bool m_nameHasBeenSet;
136 
137  Aws::Vector<Aws::String> m_values;
138  bool m_valuesHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace EC2
143 } // namespace Aws
Aws::EC2::Model::Filter::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::Filter::WithValues
Filter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:115
Aws::EC2::Model::Filter::WithValues
Filter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:110
Aws::EC2::Model::Filter::WithName
Filter & WithName(Aws::String &&value)
Definition: Filter.h:79
Aws::EC2::Model::Filter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: Filter.h:90
Aws::EC2::Model::Filter::SetName
void SetName(Aws::String &&value)
Definition: Filter.h:64
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::Filter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:105
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::Filter::AddValues
Filter & AddValues(Aws::String &&value)
Definition: Filter.h:125
AWSVector.h
Aws::EC2::Model::Filter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: Filter.h:95
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::Filter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:100
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::Filter::operator=
Filter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::Filter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Filter.h:54
Aws::EC2::Model::Filter::SetName
void SetName(const char *value)
Definition: Filter.h:69
Aws::EC2::Model::Filter::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::Filter::Filter
Filter()
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::Filter::SetName
void SetName(const Aws::String &value)
Definition: Filter.h:59
Aws::EC2::Model::Filter::AddValues
Filter & AddValues(const Aws::String &value)
Definition: Filter.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::Filter::WithName
Filter & WithName(const Aws::String &value)
Definition: Filter.h:74
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::Filter::GetName
const Aws::String & GetName() const
Definition: Filter.h:49
Aws::EC2::Model::Filter::WithName
Filter & WithName(const char *value)
Definition: Filter.h:84
Aws::EC2::Model::Filter::Filter
Filter(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::Filter::AddValues
Filter & AddValues(const char *value)
Definition: Filter.h:130