AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IPRange.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
33 class IPRange
34 {
35 public:
36 AWS_REDSHIFT_API IPRange();
37 AWS_REDSHIFT_API IPRange(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_REDSHIFT_API IPRange& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetStatus() const{ return m_status; }
49 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
51 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
52 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
53 inline IPRange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
54 inline IPRange& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
55 inline IPRange& WithStatus(const char* value) { SetStatus(value); return *this;}
57
59
62 inline const Aws::String& GetCIDRIP() const{ return m_cIDRIP; }
63 inline bool CIDRIPHasBeenSet() const { return m_cIDRIPHasBeenSet; }
64 inline void SetCIDRIP(const Aws::String& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; }
65 inline void SetCIDRIP(Aws::String&& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = std::move(value); }
66 inline void SetCIDRIP(const char* value) { m_cIDRIPHasBeenSet = true; m_cIDRIP.assign(value); }
67 inline IPRange& WithCIDRIP(const Aws::String& value) { SetCIDRIP(value); return *this;}
68 inline IPRange& WithCIDRIP(Aws::String&& value) { SetCIDRIP(std::move(value)); return *this;}
69 inline IPRange& WithCIDRIP(const char* value) { SetCIDRIP(value); return *this;}
71
73
76 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
79 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
80 inline IPRange& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
81 inline IPRange& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
82 inline IPRange& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
83 inline IPRange& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
85 private:
86
87 Aws::String m_status;
88 bool m_statusHasBeenSet = false;
89
90 Aws::String m_cIDRIP;
91 bool m_cIDRIPHasBeenSet = false;
92
93 Aws::Vector<Tag> m_tags;
94 bool m_tagsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Redshift
99} // namespace Aws
IPRange & WithStatus(Aws::String &&value)
Definition IPRange.h:54
IPRange & WithCIDRIP(Aws::String &&value)
Definition IPRange.h:68
void SetStatus(Aws::String &&value)
Definition IPRange.h:51
IPRange & WithCIDRIP(const Aws::String &value)
Definition IPRange.h:67
IPRange & WithStatus(const Aws::String &value)
Definition IPRange.h:53
const Aws::Vector< Tag > & GetTags() const
Definition IPRange.h:76
void SetTags(Aws::Vector< Tag > &&value)
Definition IPRange.h:79
AWS_REDSHIFT_API IPRange(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCIDRIP(Aws::String &&value)
Definition IPRange.h:65
void SetTags(const Aws::Vector< Tag > &value)
Definition IPRange.h:78
const Aws::String & GetCIDRIP() const
Definition IPRange.h:62
IPRange & AddTags(Tag &&value)
Definition IPRange.h:83
void SetStatus(const Aws::String &value)
Definition IPRange.h:50
void SetCIDRIP(const Aws::String &value)
Definition IPRange.h:64
void SetCIDRIP(const char *value)
Definition IPRange.h:66
IPRange & AddTags(const Tag &value)
Definition IPRange.h:82
IPRange & WithTags(Aws::Vector< Tag > &&value)
Definition IPRange.h:81
const Aws::String & GetStatus() const
Definition IPRange.h:48
AWS_REDSHIFT_API IPRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool TagsHasBeenSet() const
Definition IPRange.h:77
void SetStatus(const char *value)
Definition IPRange.h:52
AWS_REDSHIFT_API IPRange()
IPRange & WithTags(const Aws::Vector< Tag > &value)
Definition IPRange.h:80
bool StatusHasBeenSet() const
Definition IPRange.h:49
IPRange & WithCIDRIP(const char *value)
Definition IPRange.h:69
IPRange & WithStatus(const char *value)
Definition IPRange.h:55
bool CIDRIPHasBeenSet() const
Definition IPRange.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream