AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PublicIpv4PoolRange.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API PublicIpv4PoolRange() = default;
31 AWS_EC2_API PublicIpv4PoolRange(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetFirstAddress() const { return m_firstAddress; }
42 inline bool FirstAddressHasBeenSet() const { return m_firstAddressHasBeenSet; }
43 template <typename FirstAddressT = Aws::String>
44 void SetFirstAddress(FirstAddressT&& value) {
45 m_firstAddressHasBeenSet = true;
46 m_firstAddress = std::forward<FirstAddressT>(value);
47 }
48 template <typename FirstAddressT = Aws::String>
49 PublicIpv4PoolRange& WithFirstAddress(FirstAddressT&& value) {
50 SetFirstAddress(std::forward<FirstAddressT>(value));
51 return *this;
52 }
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) {
63 m_lastAddressHasBeenSet = true;
64 m_lastAddress = std::forward<LastAddressT>(value);
65 }
66 template <typename LastAddressT = Aws::String>
67 PublicIpv4PoolRange& WithLastAddress(LastAddressT&& value) {
68 SetLastAddress(std::forward<LastAddressT>(value));
69 return *this;
70 }
72
74
77 inline int GetAddressCount() const { return m_addressCount; }
78 inline bool AddressCountHasBeenSet() const { return m_addressCountHasBeenSet; }
79 inline void SetAddressCount(int value) {
80 m_addressCountHasBeenSet = true;
81 m_addressCount = value;
82 }
84 SetAddressCount(value);
85 return *this;
86 }
88
90
93 inline int GetAvailableAddressCount() const { return m_availableAddressCount; }
94 inline bool AvailableAddressCountHasBeenSet() const { return m_availableAddressCountHasBeenSet; }
95 inline void SetAvailableAddressCount(int value) {
96 m_availableAddressCountHasBeenSet = true;
97 m_availableAddressCount = value;
98 }
101 return *this;
102 }
104 private:
105 Aws::String m_firstAddress;
106
107 Aws::String m_lastAddress;
108
109 int m_addressCount{0};
110
111 int m_availableAddressCount{0};
112 bool m_firstAddressHasBeenSet = false;
113 bool m_lastAddressHasBeenSet = false;
114 bool m_addressCountHasBeenSet = false;
115 bool m_availableAddressCountHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace EC2
120} // 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