AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
IpamRoutingPolicyRegistration.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/IpamRoutingPolicyRegistrationState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
32 public:
33 AWS_EC2_API IpamRoutingPolicyRegistration() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetCidr() const { return m_cidr; }
45 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
46 template <typename CidrT = Aws::String>
47 void SetCidr(CidrT&& value) {
48 m_cidrHasBeenSet = true;
49 m_cidr = std::forward<CidrT>(value);
50 }
51 template <typename CidrT = Aws::String>
53 SetCidr(std::forward<CidrT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<Aws::String>& GetAsns() const { return m_asns; }
63 inline bool AsnsHasBeenSet() const { return m_asnsHasBeenSet; }
64 template <typename AsnsT = Aws::Vector<Aws::String>>
65 void SetAsns(AsnsT&& value) {
66 m_asnsHasBeenSet = true;
67 m_asns = std::forward<AsnsT>(value);
68 }
69 template <typename AsnsT = Aws::Vector<Aws::String>>
71 SetAsns(std::forward<AsnsT>(value));
72 return *this;
73 }
74 template <typename AsnsT = Aws::String>
76 m_asnsHasBeenSet = true;
77 m_asns.emplace_back(std::forward<AsnsT>(value));
78 return *this;
79 }
81
83
88 inline bool GetPermitMoreSpecificAnnouncements() const { return m_permitMoreSpecificAnnouncements; }
89 inline bool PermitMoreSpecificAnnouncementsHasBeenSet() const { return m_permitMoreSpecificAnnouncementsHasBeenSet; }
90 inline void SetPermitMoreSpecificAnnouncements(bool value) {
91 m_permitMoreSpecificAnnouncementsHasBeenSet = true;
92 m_permitMoreSpecificAnnouncements = value;
93 }
96 return *this;
97 }
99
101
104 inline int GetMaxLength() const { return m_maxLength; }
105 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
106 inline void SetMaxLength(int value) {
107 m_maxLengthHasBeenSet = true;
108 m_maxLength = value;
109 }
111 SetMaxLength(value);
112 return *this;
113 }
115
117
120 inline const Aws::String& GetDescription() const { return m_description; }
121 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
122 template <typename DescriptionT = Aws::String>
123 void SetDescription(DescriptionT&& value) {
124 m_descriptionHasBeenSet = true;
125 m_description = std::forward<DescriptionT>(value);
126 }
127 template <typename DescriptionT = Aws::String>
129 SetDescription(std::forward<DescriptionT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetLatestDeltaId() const { return m_latestDeltaId; }
139 inline bool LatestDeltaIdHasBeenSet() const { return m_latestDeltaIdHasBeenSet; }
140 template <typename LatestDeltaIdT = Aws::String>
141 void SetLatestDeltaId(LatestDeltaIdT&& value) {
142 m_latestDeltaIdHasBeenSet = true;
143 m_latestDeltaId = std::forward<LatestDeltaIdT>(value);
144 }
145 template <typename LatestDeltaIdT = Aws::String>
147 SetLatestDeltaId(std::forward<LatestDeltaIdT>(value));
148 return *this;
149 }
151
153
160 inline IpamRoutingPolicyRegistrationState GetState() const { return m_state; }
161 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
163 m_stateHasBeenSet = true;
164 m_state = value;
165 }
167 SetState(value);
168 return *this;
169 }
171 private:
172 Aws::String m_cidr;
173
175
176 bool m_permitMoreSpecificAnnouncements{false};
177
178 int m_maxLength{0};
179
180 Aws::String m_description;
181
182 Aws::String m_latestDeltaId;
183
185 bool m_cidrHasBeenSet = false;
186 bool m_asnsHasBeenSet = false;
187 bool m_permitMoreSpecificAnnouncementsHasBeenSet = false;
188 bool m_maxLengthHasBeenSet = false;
189 bool m_descriptionHasBeenSet = false;
190 bool m_latestDeltaIdHasBeenSet = false;
191 bool m_stateHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace EC2
196} // namespace Aws
AWS_EC2_API IpamRoutingPolicyRegistration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API IpamRoutingPolicyRegistration(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamRoutingPolicyRegistration & WithMaxLength(int value)
IpamRoutingPolicyRegistration & AddAsns(AsnsT &&value)
IpamRoutingPolicyRegistration & WithCidr(CidrT &&value)
IpamRoutingPolicyRegistration & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetAsns() const
IpamRoutingPolicyRegistration & WithPermitMoreSpecificAnnouncements(bool value)
IpamRoutingPolicyRegistration & WithState(IpamRoutingPolicyRegistrationState value)
IpamRoutingPolicyRegistration & WithAsns(AsnsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetState(IpamRoutingPolicyRegistrationState value)
IpamRoutingPolicyRegistrationState GetState() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IpamRoutingPolicyRegistration & WithLatestDeltaId(LatestDeltaIdT &&value)
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