AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PublicIpv4PoolRange.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API PublicIpv4PoolRange() = default;
36 AWS_EC2_API PublicIpv4PoolRange(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetFirstAddress() const { return m_firstAddress; }
48 inline bool FirstAddressHasBeenSet() const { return m_firstAddressHasBeenSet; }
49 template<typename FirstAddressT = Aws::String>
50 void SetFirstAddress(FirstAddressT&& value) { m_firstAddressHasBeenSet = true; m_firstAddress = std::forward<FirstAddressT>(value); }
51 template<typename FirstAddressT = Aws::String>
52 PublicIpv4PoolRange& WithFirstAddress(FirstAddressT&& value) { SetFirstAddress(std::forward<FirstAddressT>(value)); return *this;}
54
56
59 inline const Aws::String& GetLastAddress() const { return m_lastAddress; }
60 inline bool LastAddressHasBeenSet() const { return m_lastAddressHasBeenSet; }
61 template<typename LastAddressT = Aws::String>
62 void SetLastAddress(LastAddressT&& value) { m_lastAddressHasBeenSet = true; m_lastAddress = std::forward<LastAddressT>(value); }
63 template<typename LastAddressT = Aws::String>
64 PublicIpv4PoolRange& WithLastAddress(LastAddressT&& value) { SetLastAddress(std::forward<LastAddressT>(value)); return *this;}
66
68
71 inline int GetAddressCount() const { return m_addressCount; }
72 inline bool AddressCountHasBeenSet() const { return m_addressCountHasBeenSet; }
73 inline void SetAddressCount(int value) { m_addressCountHasBeenSet = true; m_addressCount = value; }
74 inline PublicIpv4PoolRange& WithAddressCount(int value) { SetAddressCount(value); return *this;}
76
78
81 inline int GetAvailableAddressCount() const { return m_availableAddressCount; }
82 inline bool AvailableAddressCountHasBeenSet() const { return m_availableAddressCountHasBeenSet; }
83 inline void SetAvailableAddressCount(int value) { m_availableAddressCountHasBeenSet = true; m_availableAddressCount = value; }
86 private:
87
88 Aws::String m_firstAddress;
89 bool m_firstAddressHasBeenSet = false;
90
91 Aws::String m_lastAddress;
92 bool m_lastAddressHasBeenSet = false;
93
94 int m_addressCount{0};
95 bool m_addressCountHasBeenSet = false;
96
97 int m_availableAddressCount{0};
98 bool m_availableAddressCountHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace EC2
103} // namespace Aws
PublicIpv4PoolRange & WithLastAddress(LastAddressT &&value)
void SetLastAddress(LastAddressT &&value)
AWS_EC2_API PublicIpv4PoolRange(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API PublicIpv4PoolRange()=default
PublicIpv4PoolRange & WithFirstAddress(FirstAddressT &&value)
AWS_EC2_API PublicIpv4PoolRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetLastAddress() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PublicIpv4PoolRange & WithAddressCount(int value)
PublicIpv4PoolRange & WithAvailableAddressCount(int value)
void SetFirstAddress(FirstAddressT &&value)
const Aws::String & GetFirstAddress() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream