AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ByoipCidr.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/AsnAssociation.h>
12#include <aws/ec2/model/ByoipCidrState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
32class ByoipCidr {
33 public:
34 AWS_EC2_API ByoipCidr() = default;
35 AWS_EC2_API ByoipCidr(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API ByoipCidr& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetCidr() const { return m_cidr; }
46 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
47 template <typename CidrT = Aws::String>
48 void SetCidr(CidrT&& value) {
49 m_cidrHasBeenSet = true;
50 m_cidr = std::forward<CidrT>(value);
51 }
52 template <typename CidrT = Aws::String>
53 ByoipCidr& WithCidr(CidrT&& value) {
54 SetCidr(std::forward<CidrT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
71 ByoipCidr& WithDescription(DescriptionT&& value) {
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Vector<AsnAssociation>& GetAsnAssociations() const { return m_asnAssociations; }
82 inline bool AsnAssociationsHasBeenSet() const { return m_asnAssociationsHasBeenSet; }
83 template <typename AsnAssociationsT = Aws::Vector<AsnAssociation>>
84 void SetAsnAssociations(AsnAssociationsT&& value) {
85 m_asnAssociationsHasBeenSet = true;
86 m_asnAssociations = std::forward<AsnAssociationsT>(value);
87 }
88 template <typename AsnAssociationsT = Aws::Vector<AsnAssociation>>
89 ByoipCidr& WithAsnAssociations(AsnAssociationsT&& value) {
90 SetAsnAssociations(std::forward<AsnAssociationsT>(value));
91 return *this;
92 }
93 template <typename AsnAssociationsT = AsnAssociation>
94 ByoipCidr& AddAsnAssociations(AsnAssociationsT&& value) {
95 m_asnAssociationsHasBeenSet = true;
96 m_asnAssociations.emplace_back(std::forward<AsnAssociationsT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
107 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
108 template <typename StatusMessageT = Aws::String>
109 void SetStatusMessage(StatusMessageT&& value) {
110 m_statusMessageHasBeenSet = true;
111 m_statusMessage = std::forward<StatusMessageT>(value);
112 }
113 template <typename StatusMessageT = Aws::String>
114 ByoipCidr& WithStatusMessage(StatusMessageT&& value) {
115 SetStatusMessage(std::forward<StatusMessageT>(value));
116 return *this;
117 }
119
121
138 inline ByoipCidrState GetState() const { return m_state; }
139 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
140 inline void SetState(ByoipCidrState value) {
141 m_stateHasBeenSet = true;
142 m_state = value;
143 }
145 SetState(value);
146 return *this;
147 }
149
151
163 inline const Aws::String& GetNetworkBorderGroup() const { return m_networkBorderGroup; }
164 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
165 template <typename NetworkBorderGroupT = Aws::String>
166 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) {
167 m_networkBorderGroupHasBeenSet = true;
168 m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value);
169 }
170 template <typename NetworkBorderGroupT = Aws::String>
171 ByoipCidr& WithNetworkBorderGroup(NetworkBorderGroupT&& value) {
172 SetNetworkBorderGroup(std::forward<NetworkBorderGroupT>(value));
173 return *this;
174 }
176
178
188 inline const Aws::String& GetAdvertisementType() const { return m_advertisementType; }
189 inline bool AdvertisementTypeHasBeenSet() const { return m_advertisementTypeHasBeenSet; }
190 template <typename AdvertisementTypeT = Aws::String>
191 void SetAdvertisementType(AdvertisementTypeT&& value) {
192 m_advertisementTypeHasBeenSet = true;
193 m_advertisementType = std::forward<AdvertisementTypeT>(value);
194 }
195 template <typename AdvertisementTypeT = Aws::String>
196 ByoipCidr& WithAdvertisementType(AdvertisementTypeT&& value) {
197 SetAdvertisementType(std::forward<AdvertisementTypeT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_cidr;
203
204 Aws::String m_description;
205
206 Aws::Vector<AsnAssociation> m_asnAssociations;
207
208 Aws::String m_statusMessage;
209
211
212 Aws::String m_networkBorderGroup;
213
214 Aws::String m_advertisementType;
215 bool m_cidrHasBeenSet = false;
216 bool m_descriptionHasBeenSet = false;
217 bool m_asnAssociationsHasBeenSet = false;
218 bool m_statusMessageHasBeenSet = false;
219 bool m_stateHasBeenSet = false;
220 bool m_networkBorderGroupHasBeenSet = false;
221 bool m_advertisementTypeHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace EC2
226} // namespace Aws
void SetState(ByoipCidrState value)
Definition ByoipCidr.h:140
ByoipCidr & WithAdvertisementType(AdvertisementTypeT &&value)
Definition ByoipCidr.h:196
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool AdvertisementTypeHasBeenSet() const
Definition ByoipCidr.h:189
const Aws::String & GetDescription() const
Definition ByoipCidr.h:63
ByoipCidrState GetState() const
Definition ByoipCidr.h:138
void SetNetworkBorderGroup(NetworkBorderGroupT &&value)
Definition ByoipCidr.h:166
AWS_EC2_API ByoipCidr()=default
bool StatusMessageHasBeenSet() const
Definition ByoipCidr.h:107
const Aws::String & GetCidr() const
Definition ByoipCidr.h:45
const Aws::String & GetNetworkBorderGroup() const
Definition ByoipCidr.h:163
ByoipCidr & WithStatusMessage(StatusMessageT &&value)
Definition ByoipCidr.h:114
bool StateHasBeenSet() const
Definition ByoipCidr.h:139
bool NetworkBorderGroupHasBeenSet() const
Definition ByoipCidr.h:164
void SetCidr(CidrT &&value)
Definition ByoipCidr.h:48
bool CidrHasBeenSet() const
Definition ByoipCidr.h:46
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API ByoipCidr & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool AsnAssociationsHasBeenSet() const
Definition ByoipCidr.h:82
ByoipCidr & WithState(ByoipCidrState value)
Definition ByoipCidr.h:144
ByoipCidr & AddAsnAssociations(AsnAssociationsT &&value)
Definition ByoipCidr.h:94
ByoipCidr & WithDescription(DescriptionT &&value)
Definition ByoipCidr.h:71
ByoipCidr & WithAsnAssociations(AsnAssociationsT &&value)
Definition ByoipCidr.h:89
const Aws::String & GetStatusMessage() const
Definition ByoipCidr.h:106
AWS_EC2_API ByoipCidr(const Aws::Utils::Xml::XmlNode &xmlNode)
ByoipCidr & WithNetworkBorderGroup(NetworkBorderGroupT &&value)
Definition ByoipCidr.h:171
ByoipCidr & WithCidr(CidrT &&value)
Definition ByoipCidr.h:53
bool DescriptionHasBeenSet() const
Definition ByoipCidr.h:64
void SetDescription(DescriptionT &&value)
Definition ByoipCidr.h:66
void SetAdvertisementType(AdvertisementTypeT &&value)
Definition ByoipCidr.h:191
const Aws::String & GetAdvertisementType() const
Definition ByoipCidr.h:188
void SetAsnAssociations(AsnAssociationsT &&value)
Definition ByoipCidr.h:84
const Aws::Vector< AsnAssociation > & GetAsnAssociations() const
Definition ByoipCidr.h:81
void SetStatusMessage(StatusMessageT &&value)
Definition ByoipCidr.h:109
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