AWS SDK for C++  1.9.69
AWS SDK for C++
PublicIpv4PoolRange.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetFirstAddress() const{ return m_firstAddress; }
47 
51  inline bool FirstAddressHasBeenSet() const { return m_firstAddressHasBeenSet; }
52 
56  inline void SetFirstAddress(const Aws::String& value) { m_firstAddressHasBeenSet = true; m_firstAddress = value; }
57 
61  inline void SetFirstAddress(Aws::String&& value) { m_firstAddressHasBeenSet = true; m_firstAddress = std::move(value); }
62 
66  inline void SetFirstAddress(const char* value) { m_firstAddressHasBeenSet = true; m_firstAddress.assign(value); }
67 
71  inline PublicIpv4PoolRange& WithFirstAddress(const Aws::String& value) { SetFirstAddress(value); return *this;}
72 
76  inline PublicIpv4PoolRange& WithFirstAddress(Aws::String&& value) { SetFirstAddress(std::move(value)); return *this;}
77 
81  inline PublicIpv4PoolRange& WithFirstAddress(const char* value) { SetFirstAddress(value); return *this;}
82 
83 
87  inline const Aws::String& GetLastAddress() const{ return m_lastAddress; }
88 
92  inline bool LastAddressHasBeenSet() const { return m_lastAddressHasBeenSet; }
93 
97  inline void SetLastAddress(const Aws::String& value) { m_lastAddressHasBeenSet = true; m_lastAddress = value; }
98 
102  inline void SetLastAddress(Aws::String&& value) { m_lastAddressHasBeenSet = true; m_lastAddress = std::move(value); }
103 
107  inline void SetLastAddress(const char* value) { m_lastAddressHasBeenSet = true; m_lastAddress.assign(value); }
108 
112  inline PublicIpv4PoolRange& WithLastAddress(const Aws::String& value) { SetLastAddress(value); return *this;}
113 
117  inline PublicIpv4PoolRange& WithLastAddress(Aws::String&& value) { SetLastAddress(std::move(value)); return *this;}
118 
122  inline PublicIpv4PoolRange& WithLastAddress(const char* value) { SetLastAddress(value); return *this;}
123 
124 
128  inline int GetAddressCount() const{ return m_addressCount; }
129 
133  inline bool AddressCountHasBeenSet() const { return m_addressCountHasBeenSet; }
134 
138  inline void SetAddressCount(int value) { m_addressCountHasBeenSet = true; m_addressCount = value; }
139 
143  inline PublicIpv4PoolRange& WithAddressCount(int value) { SetAddressCount(value); return *this;}
144 
145 
149  inline int GetAvailableAddressCount() const{ return m_availableAddressCount; }
150 
154  inline bool AvailableAddressCountHasBeenSet() const { return m_availableAddressCountHasBeenSet; }
155 
159  inline void SetAvailableAddressCount(int value) { m_availableAddressCountHasBeenSet = true; m_availableAddressCount = value; }
160 
164  inline PublicIpv4PoolRange& WithAvailableAddressCount(int value) { SetAvailableAddressCount(value); return *this;}
165 
166  private:
167 
168  Aws::String m_firstAddress;
169  bool m_firstAddressHasBeenSet;
170 
171  Aws::String m_lastAddress;
172  bool m_lastAddressHasBeenSet;
173 
174  int m_addressCount;
175  bool m_addressCountHasBeenSet;
176 
177  int m_availableAddressCount;
178  bool m_availableAddressCountHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace EC2
183 } // namespace Aws
Aws::EC2::Model::PublicIpv4PoolRange::WithFirstAddress
PublicIpv4PoolRange & WithFirstAddress(const char *value)
Definition: PublicIpv4PoolRange.h:81
Aws::EC2::Model::PublicIpv4PoolRange::WithAddressCount
PublicIpv4PoolRange & WithAddressCount(int value)
Definition: PublicIpv4PoolRange.h:143
Aws::EC2::Model::PublicIpv4PoolRange::SetFirstAddress
void SetFirstAddress(const Aws::String &value)
Definition: PublicIpv4PoolRange.h:56
Aws::EC2::Model::PublicIpv4PoolRange::GetLastAddress
const Aws::String & GetLastAddress() const
Definition: PublicIpv4PoolRange.h:87
Aws::EC2::Model::PublicIpv4PoolRange::SetLastAddress
void SetLastAddress(Aws::String &&value)
Definition: PublicIpv4PoolRange.h:102
Aws::EC2::Model::PublicIpv4PoolRange::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::PublicIpv4PoolRange::SetFirstAddress
void SetFirstAddress(Aws::String &&value)
Definition: PublicIpv4PoolRange.h:61
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PublicIpv4PoolRange::operator=
PublicIpv4PoolRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PublicIpv4PoolRange::WithFirstAddress
PublicIpv4PoolRange & WithFirstAddress(const Aws::String &value)
Definition: PublicIpv4PoolRange.h:71
AWSStreamFwd.h
Aws::EC2::Model::PublicIpv4PoolRange::SetAddressCount
void SetAddressCount(int value)
Definition: PublicIpv4PoolRange.h:138
Aws::EC2::Model::PublicIpv4PoolRange
Definition: PublicIpv4PoolRange.h:33
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PublicIpv4PoolRange::WithLastAddress
PublicIpv4PoolRange & WithLastAddress(const char *value)
Definition: PublicIpv4PoolRange.h:122
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PublicIpv4PoolRange::PublicIpv4PoolRange
PublicIpv4PoolRange()
Aws::EC2::Model::PublicIpv4PoolRange::GetAddressCount
int GetAddressCount() const
Definition: PublicIpv4PoolRange.h:128
Aws::EC2::Model::PublicIpv4PoolRange::PublicIpv4PoolRange
PublicIpv4PoolRange(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PublicIpv4PoolRange::WithLastAddress
PublicIpv4PoolRange & WithLastAddress(const Aws::String &value)
Definition: PublicIpv4PoolRange.h:112
AWSString.h
Aws::EC2::Model::PublicIpv4PoolRange::SetAvailableAddressCount
void SetAvailableAddressCount(int value)
Definition: PublicIpv4PoolRange.h:159
Aws::EC2::Model::PublicIpv4PoolRange::SetLastAddress
void SetLastAddress(const char *value)
Definition: PublicIpv4PoolRange.h:107
Aws::EC2::Model::PublicIpv4PoolRange::GetAvailableAddressCount
int GetAvailableAddressCount() const
Definition: PublicIpv4PoolRange.h:149
Aws::EC2::Model::PublicIpv4PoolRange::GetFirstAddress
const Aws::String & GetFirstAddress() const
Definition: PublicIpv4PoolRange.h:46
Aws::EC2::Model::PublicIpv4PoolRange::FirstAddressHasBeenSet
bool FirstAddressHasBeenSet() const
Definition: PublicIpv4PoolRange.h:51
Aws::EC2::Model::PublicIpv4PoolRange::WithAvailableAddressCount
PublicIpv4PoolRange & WithAvailableAddressCount(int value)
Definition: PublicIpv4PoolRange.h:164
Aws::EC2::Model::PublicIpv4PoolRange::LastAddressHasBeenSet
bool LastAddressHasBeenSet() const
Definition: PublicIpv4PoolRange.h:92
Aws::EC2::Model::PublicIpv4PoolRange::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PublicIpv4PoolRange::AvailableAddressCountHasBeenSet
bool AvailableAddressCountHasBeenSet() const
Definition: PublicIpv4PoolRange.h:154
Aws::EC2::Model::PublicIpv4PoolRange::SetFirstAddress
void SetFirstAddress(const char *value)
Definition: PublicIpv4PoolRange.h:66
Aws::EC2::Model::PublicIpv4PoolRange::WithFirstAddress
PublicIpv4PoolRange & WithFirstAddress(Aws::String &&value)
Definition: PublicIpv4PoolRange.h:76
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::EC2::Model::PublicIpv4PoolRange::AddressCountHasBeenSet
bool AddressCountHasBeenSet() const
Definition: PublicIpv4PoolRange.h:133
Aws::EC2::Model::PublicIpv4PoolRange::SetLastAddress
void SetLastAddress(const Aws::String &value)
Definition: PublicIpv4PoolRange.h:97
EC2_EXPORTS.h
Aws::EC2::Model::PublicIpv4PoolRange::WithLastAddress
PublicIpv4PoolRange & WithLastAddress(Aws::String &&value)
Definition: PublicIpv4PoolRange.h:117