AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IpamPoolCidr.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 <aws/ec2/model/IpamPoolCidrState.h>
11#include <aws/ec2/model/IpamPoolCidrFailureReason.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API IpamPoolCidr();
37 AWS_EC2_API IpamPoolCidr(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_EC2_API IpamPoolCidr& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
51 inline const Aws::String& GetCidr() const{ return m_cidr; }
52 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
53 inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
54 inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
55 inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
56 inline IpamPoolCidr& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
57 inline IpamPoolCidr& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
58 inline IpamPoolCidr& WithCidr(const char* value) { SetCidr(value); return *this;}
60
62
65 inline const IpamPoolCidrState& GetState() const{ return m_state; }
66 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
67 inline void SetState(const IpamPoolCidrState& value) { m_stateHasBeenSet = true; m_state = value; }
68 inline void SetState(IpamPoolCidrState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
69 inline IpamPoolCidr& WithState(const IpamPoolCidrState& value) { SetState(value); return *this;}
70 inline IpamPoolCidr& WithState(IpamPoolCidrState&& value) { SetState(std::move(value)); return *this;}
72
74
77 inline const IpamPoolCidrFailureReason& GetFailureReason() const{ return m_failureReason; }
78 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
79 inline void SetFailureReason(const IpamPoolCidrFailureReason& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
80 inline void SetFailureReason(IpamPoolCidrFailureReason&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
81 inline IpamPoolCidr& WithFailureReason(const IpamPoolCidrFailureReason& value) { SetFailureReason(value); return *this;}
82 inline IpamPoolCidr& WithFailureReason(IpamPoolCidrFailureReason&& value) { SetFailureReason(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetIpamPoolCidrId() const{ return m_ipamPoolCidrId; }
90 inline bool IpamPoolCidrIdHasBeenSet() const { return m_ipamPoolCidrIdHasBeenSet; }
91 inline void SetIpamPoolCidrId(const Aws::String& value) { m_ipamPoolCidrIdHasBeenSet = true; m_ipamPoolCidrId = value; }
92 inline void SetIpamPoolCidrId(Aws::String&& value) { m_ipamPoolCidrIdHasBeenSet = true; m_ipamPoolCidrId = std::move(value); }
93 inline void SetIpamPoolCidrId(const char* value) { m_ipamPoolCidrIdHasBeenSet = true; m_ipamPoolCidrId.assign(value); }
94 inline IpamPoolCidr& WithIpamPoolCidrId(const Aws::String& value) { SetIpamPoolCidrId(value); return *this;}
95 inline IpamPoolCidr& WithIpamPoolCidrId(Aws::String&& value) { SetIpamPoolCidrId(std::move(value)); return *this;}
96 inline IpamPoolCidr& WithIpamPoolCidrId(const char* value) { SetIpamPoolCidrId(value); return *this;}
98
100
106 inline int GetNetmaskLength() const{ return m_netmaskLength; }
107 inline bool NetmaskLengthHasBeenSet() const { return m_netmaskLengthHasBeenSet; }
108 inline void SetNetmaskLength(int value) { m_netmaskLengthHasBeenSet = true; m_netmaskLength = value; }
109 inline IpamPoolCidr& WithNetmaskLength(int value) { SetNetmaskLength(value); return *this;}
111 private:
112
113 Aws::String m_cidr;
114 bool m_cidrHasBeenSet = false;
115
116 IpamPoolCidrState m_state;
117 bool m_stateHasBeenSet = false;
118
119 IpamPoolCidrFailureReason m_failureReason;
120 bool m_failureReasonHasBeenSet = false;
121
122 Aws::String m_ipamPoolCidrId;
123 bool m_ipamPoolCidrIdHasBeenSet = false;
124
125 int m_netmaskLength;
126 bool m_netmaskLengthHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace EC2
131} // namespace Aws
void SetFailureReason(const IpamPoolCidrFailureReason &value)
IpamPoolCidr & WithFailureReason(IpamPoolCidrFailureReason &&value)
IpamPoolCidr & WithCidr(Aws::String &&value)
void SetState(IpamPoolCidrState &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API IpamPoolCidr(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCidr(const Aws::String &value)
void SetFailureReason(IpamPoolCidrFailureReason &&value)
IpamPoolCidr & WithNetmaskLength(int value)
const IpamPoolCidrState & GetState() const
void SetIpamPoolCidrId(const Aws::String &value)
AWS_EC2_API IpamPoolCidr & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const IpamPoolCidrFailureReason & GetFailureReason() const
IpamPoolCidr & WithState(const IpamPoolCidrState &value)
IpamPoolCidr & WithState(IpamPoolCidrState &&value)
bool IpamPoolCidrIdHasBeenSet() const
void SetState(const IpamPoolCidrState &value)
IpamPoolCidr & WithCidr(const char *value)
void SetCidr(const char *value)
IpamPoolCidr & WithIpamPoolCidrId(const Aws::String &value)
IpamPoolCidr & WithCidr(const Aws::String &value)
IpamPoolCidr & WithIpamPoolCidrId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetCidr() const
void SetCidr(Aws::String &&value)
void SetIpamPoolCidrId(const char *value)
IpamPoolCidr & WithFailureReason(const IpamPoolCidrFailureReason &value)
void SetIpamPoolCidrId(Aws::String &&value)
IpamPoolCidr & WithIpamPoolCidrId(const char *value)
const Aws::String & GetIpamPoolCidrId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream