AWS SDK for C++  1.9.104
AWS SDK for C++
ScheduledActionFilter.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
35  {
36  public:
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 ScheduledActionFilterName& GetName() const{ return m_name; }
49 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
58  inline void SetName(const ScheduledActionFilterName& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(ScheduledActionFilterName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
68  inline ScheduledActionFilter& WithName(const ScheduledActionFilterName& value) { SetName(value); return *this;}
69 
73  inline ScheduledActionFilter& WithName(ScheduledActionFilterName&& value) { SetName(std::move(value)); return *this;}
74 
75 
80  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
81 
86  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
87 
92  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
93 
98  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
99 
104  inline ScheduledActionFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
105 
110  inline ScheduledActionFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
111 
116  inline ScheduledActionFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
117 
122  inline ScheduledActionFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
123 
128  inline ScheduledActionFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
129 
130  private:
131 
133  bool m_nameHasBeenSet;
134 
135  Aws::Vector<Aws::String> m_values;
136  bool m_valuesHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace Redshift
141 } // namespace Aws
Aws::Redshift::Model::ScheduledActionFilter::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::ScheduledActionFilter::operator=
ScheduledActionFilter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ScheduledActionFilter::WithName
ScheduledActionFilter & WithName(const ScheduledActionFilterName &value)
Definition: ScheduledActionFilter.h:68
Aws::Redshift::Model::ScheduledActionFilter::SetName
void SetName(ScheduledActionFilterName &&value)
Definition: ScheduledActionFilter.h:63
Aws::Redshift::Model::ScheduledActionFilter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: ScheduledActionFilter.h:80
Aws::Redshift::Model::ScheduledActionFilter::AddValues
ScheduledActionFilter & AddValues(Aws::String &&value)
Definition: ScheduledActionFilter.h:122
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::Redshift::Model::ScheduledActionFilter::SetName
void SetName(const ScheduledActionFilterName &value)
Definition: ScheduledActionFilter.h:58
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
ScheduledActionFilterName.h
Aws::Redshift::Model::ScheduledActionFilter::GetName
const ScheduledActionFilterName & GetName() const
Definition: ScheduledActionFilter.h:48
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ScheduledActionFilter::AddValues
ScheduledActionFilter & AddValues(const Aws::String &value)
Definition: ScheduledActionFilter.h:116
AWSString.h
Aws::Redshift::Model::ScheduledActionFilter::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::ScheduledActionFilter::WithName
ScheduledActionFilter & WithName(ScheduledActionFilterName &&value)
Definition: ScheduledActionFilter.h:73
Aws::Redshift::Model::ScheduledActionFilter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: ScheduledActionFilter.h:92
Aws::Redshift::Model::ScheduledActionFilter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ScheduledActionFilter.h:53
Aws::Redshift::Model::ScheduledActionFilter::ScheduledActionFilter
ScheduledActionFilter()
Aws::Redshift::Model::ScheduledActionFilter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: ScheduledActionFilter.h:86
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::ScheduledActionFilter::WithValues
ScheduledActionFilter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: ScheduledActionFilter.h:110
Redshift_EXPORTS.h
Aws::Redshift::Model::ScheduledActionFilterName
ScheduledActionFilterName
Definition: ScheduledActionFilterName.h:17
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::Redshift::Model::ScheduledActionFilter::AddValues
ScheduledActionFilter & AddValues(const char *value)
Definition: ScheduledActionFilter.h:128
Aws::Redshift::Model::ScheduledActionFilter::WithValues
ScheduledActionFilter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: ScheduledActionFilter.h:104
Aws::Redshift::Model::ScheduledActionFilter
Definition: ScheduledActionFilter.h:35
Aws::Redshift::Model::ScheduledActionFilter::ScheduledActionFilter
ScheduledActionFilter(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ScheduledActionFilter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: ScheduledActionFilter.h:98