AWS SDK for C++  1.9.104
AWS SDK for C++
IPRange.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/redshift/model/Tag.h>
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 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetStatus() const{ return m_status; }
48 
52  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
53 
57  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
58 
62  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
63 
67  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
68 
72  inline IPRange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
73 
77  inline IPRange& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
78 
82  inline IPRange& WithStatus(const char* value) { SetStatus(value); return *this;}
83 
84 
88  inline const Aws::String& GetCIDRIP() const{ return m_cIDRIP; }
89 
93  inline bool CIDRIPHasBeenSet() const { return m_cIDRIPHasBeenSet; }
94 
98  inline void SetCIDRIP(const Aws::String& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; }
99 
103  inline void SetCIDRIP(Aws::String&& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = std::move(value); }
104 
108  inline void SetCIDRIP(const char* value) { m_cIDRIPHasBeenSet = true; m_cIDRIP.assign(value); }
109 
113  inline IPRange& WithCIDRIP(const Aws::String& value) { SetCIDRIP(value); return *this;}
114 
118  inline IPRange& WithCIDRIP(Aws::String&& value) { SetCIDRIP(std::move(value)); return *this;}
119 
123  inline IPRange& WithCIDRIP(const char* value) { SetCIDRIP(value); return *this;}
124 
125 
129  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
130 
134  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 
139  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
140 
144  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
145 
149  inline IPRange& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
150 
154  inline IPRange& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
155 
159  inline IPRange& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
160 
164  inline IPRange& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
165 
166  private:
167 
168  Aws::String m_status;
169  bool m_statusHasBeenSet;
170 
171  Aws::String m_cIDRIP;
172  bool m_cIDRIPHasBeenSet;
173 
174  Aws::Vector<Tag> m_tags;
175  bool m_tagsHasBeenSet;
176  };
177 
178 } // namespace Model
179 } // namespace Redshift
180 } // namespace Aws
Aws::Redshift::Model::IPRange
Definition: IPRange.h:34
Aws::Redshift::Model::IPRange::SetStatus
void SetStatus(const Aws::String &value)
Definition: IPRange.h:57
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::IPRange::GetCIDRIP
const Aws::String & GetCIDRIP() const
Definition: IPRange.h:88
Aws::Redshift::Model::IPRange::WithCIDRIP
IPRange & WithCIDRIP(const char *value)
Definition: IPRange.h:123
Aws::Redshift::Model::IPRange::AddTags
IPRange & AddTags(const Tag &value)
Definition: IPRange.h:159
Aws::Redshift::Model::IPRange::SetStatus
void SetStatus(Aws::String &&value)
Definition: IPRange.h:62
Aws::Redshift::Model::IPRange::operator=
IPRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::IPRange::CIDRIPHasBeenSet
bool CIDRIPHasBeenSet() const
Definition: IPRange.h:93
Aws::Redshift::Model::IPRange::IPRange
IPRange()
Aws::Redshift::Model::IPRange::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: IPRange.h:139
Aws::Redshift::Model::IPRange::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: IPRange.h:134
Tag.h
Aws::Redshift::Model::IPRange::SetCIDRIP
void SetCIDRIP(Aws::String &&value)
Definition: IPRange.h:103
Aws::Redshift::Model::IPRange::WithStatus
IPRange & WithStatus(const char *value)
Definition: IPRange.h:82
Aws::Redshift::Model::IPRange::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::Redshift::Model::IPRange::WithTags
IPRange & WithTags(const Aws::Vector< Tag > &value)
Definition: IPRange.h:149
Aws::Redshift::Model::IPRange::WithTags
IPRange & WithTags(Aws::Vector< Tag > &&value)
Definition: IPRange.h:154
Aws::Redshift::Model::IPRange::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::IPRange::WithStatus
IPRange & WithStatus(const Aws::String &value)
Definition: IPRange.h:72
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::IPRange::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: IPRange.h:52
Aws::Redshift::Model::IPRange::SetStatus
void SetStatus(const char *value)
Definition: IPRange.h:67
AWSString.h
Aws::Redshift::Model::IPRange::WithCIDRIP
IPRange & WithCIDRIP(const Aws::String &value)
Definition: IPRange.h:113
Aws::Redshift::Model::IPRange::SetCIDRIP
void SetCIDRIP(const Aws::String &value)
Definition: IPRange.h:98
Aws::Redshift::Model::IPRange::WithStatus
IPRange & WithStatus(Aws::String &&value)
Definition: IPRange.h:77
Aws::Redshift::Model::IPRange::IPRange
IPRange(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::IPRange::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: IPRange.h:129
Aws::Redshift::Model::IPRange::SetCIDRIP
void SetCIDRIP(const char *value)
Definition: IPRange.h:108
Redshift_EXPORTS.h
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::IPRange::WithCIDRIP
IPRange & WithCIDRIP(Aws::String &&value)
Definition: IPRange.h:118
Aws::Redshift::Model::IPRange::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: IPRange.h:144
Aws::Redshift::Model::IPRange::AddTags
IPRange & AddTags(Tag &&value)
Definition: IPRange.h:164
Aws::Redshift::Model::IPRange::GetStatus
const Aws::String & GetStatus() const
Definition: IPRange.h:47