AWS SDK for C++  1.8.95
AWS SDK for C++
Filters.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 Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Connect
24 {
25 namespace Model
26 {
27 
35  {
36  public:
37  Filters();
39  Filters& operator=(Aws::Utils::Json::JsonView jsonValue);
40  Aws::Utils::Json::JsonValue Jsonize() const;
41 
42 
47  inline const Aws::Vector<Aws::String>& GetQueues() const{ return m_queues; }
48 
53  inline bool QueuesHasBeenSet() const { return m_queuesHasBeenSet; }
54 
59  inline void SetQueues(const Aws::Vector<Aws::String>& value) { m_queuesHasBeenSet = true; m_queues = value; }
60 
65  inline void SetQueues(Aws::Vector<Aws::String>&& value) { m_queuesHasBeenSet = true; m_queues = std::move(value); }
66 
71  inline Filters& WithQueues(const Aws::Vector<Aws::String>& value) { SetQueues(value); return *this;}
72 
77  inline Filters& WithQueues(Aws::Vector<Aws::String>&& value) { SetQueues(std::move(value)); return *this;}
78 
83  inline Filters& AddQueues(const Aws::String& value) { m_queuesHasBeenSet = true; m_queues.push_back(value); return *this; }
84 
89  inline Filters& AddQueues(Aws::String&& value) { m_queuesHasBeenSet = true; m_queues.push_back(std::move(value)); return *this; }
90 
95  inline Filters& AddQueues(const char* value) { m_queuesHasBeenSet = true; m_queues.push_back(value); return *this; }
96 
97 
101  inline const Aws::Vector<Channel>& GetChannels() const{ return m_channels; }
102 
106  inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
107 
111  inline void SetChannels(const Aws::Vector<Channel>& value) { m_channelsHasBeenSet = true; m_channels = value; }
112 
116  inline void SetChannels(Aws::Vector<Channel>&& value) { m_channelsHasBeenSet = true; m_channels = std::move(value); }
117 
121  inline Filters& WithChannels(const Aws::Vector<Channel>& value) { SetChannels(value); return *this;}
122 
126  inline Filters& WithChannels(Aws::Vector<Channel>&& value) { SetChannels(std::move(value)); return *this;}
127 
131  inline Filters& AddChannels(const Channel& value) { m_channelsHasBeenSet = true; m_channels.push_back(value); return *this; }
132 
136  inline Filters& AddChannels(Channel&& value) { m_channelsHasBeenSet = true; m_channels.push_back(std::move(value)); return *this; }
137 
138  private:
139 
140  Aws::Vector<Aws::String> m_queues;
141  bool m_queuesHasBeenSet;
142 
143  Aws::Vector<Channel> m_channels;
144  bool m_channelsHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace Connect
149 } // namespace Aws
Filters & AddChannels(Channel &&value)
Definition: Filters.h:136
Filters & WithChannels(const Aws::Vector< Channel > &value)
Definition: Filters.h:121
#define AWS_CONNECT_API
bool QueuesHasBeenSet() const
Definition: Filters.h:53
void SetQueues(Aws::Vector< Aws::String > &&value)
Definition: Filters.h:65
const Aws::Vector< Aws::String > & GetQueues() const
Definition: Filters.h:47
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Filters & AddQueues(Aws::String &&value)
Definition: Filters.h:89
void SetQueues(const Aws::Vector< Aws::String > &value)
Definition: Filters.h:59
Filters & AddChannels(const Channel &value)
Definition: Filters.h:131
bool ChannelsHasBeenSet() const
Definition: Filters.h:106
Filters & AddQueues(const Aws::String &value)
Definition: Filters.h:83
void SetChannels(Aws::Vector< Channel > &&value)
Definition: Filters.h:116
Filters & WithChannels(Aws::Vector< Channel > &&value)
Definition: Filters.h:126
const Aws::Vector< Channel > & GetChannels() const
Definition: Filters.h:101
Filters & WithQueues(Aws::Vector< Aws::String > &&value)
Definition: Filters.h:77
Filters & AddQueues(const char *value)
Definition: Filters.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetChannels(const Aws::Vector< Channel > &value)
Definition: Filters.h:111
Filters & WithQueues(const Aws::Vector< Aws::String > &value)
Definition: Filters.h:71