AWS SDK for C++

AWS SDK for C++ Version 1.11.872

Loading...
Searching...
No Matches
IpamInternetRegistryAssociation.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/IpamInternetRegistryAssociationState.h>
12#include <aws/ec2/model/Rir.h>
13#include <aws/ec2/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2 {
24namespace Model {
25
34 public:
35 AWS_EC2_API IpamInternetRegistryAssociation() = default;
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
43
47 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
48 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
49 template <typename OwnerIdT = Aws::String>
50 void SetOwnerId(OwnerIdT&& value) {
51 m_ownerIdHasBeenSet = true;
52 m_ownerId = std::forward<OwnerIdT>(value);
53 }
54 template <typename OwnerIdT = Aws::String>
56 SetOwnerId(std::forward<OwnerIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetIpamInternetRegistryAssociationId() const { return m_ipamInternetRegistryAssociationId; }
66 inline bool IpamInternetRegistryAssociationIdHasBeenSet() const { return m_ipamInternetRegistryAssociationIdHasBeenSet; }
67 template <typename IpamInternetRegistryAssociationIdT = Aws::String>
68 void SetIpamInternetRegistryAssociationId(IpamInternetRegistryAssociationIdT&& value) {
69 m_ipamInternetRegistryAssociationIdHasBeenSet = true;
70 m_ipamInternetRegistryAssociationId = std::forward<IpamInternetRegistryAssociationIdT>(value);
71 }
72 template <typename IpamInternetRegistryAssociationIdT = Aws::String>
73 IpamInternetRegistryAssociation& WithIpamInternetRegistryAssociationId(IpamInternetRegistryAssociationIdT&& value) {
74 SetIpamInternetRegistryAssociationId(std::forward<IpamInternetRegistryAssociationIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetIpamInternetRegistryAssociationArn() const { return m_ipamInternetRegistryAssociationArn; }
84 inline bool IpamInternetRegistryAssociationArnHasBeenSet() const { return m_ipamInternetRegistryAssociationArnHasBeenSet; }
85 template <typename IpamInternetRegistryAssociationArnT = Aws::String>
86 void SetIpamInternetRegistryAssociationArn(IpamInternetRegistryAssociationArnT&& value) {
87 m_ipamInternetRegistryAssociationArnHasBeenSet = true;
88 m_ipamInternetRegistryAssociationArn = std::forward<IpamInternetRegistryAssociationArnT>(value);
89 }
90 template <typename IpamInternetRegistryAssociationArnT = Aws::String>
91 IpamInternetRegistryAssociation& WithIpamInternetRegistryAssociationArn(IpamInternetRegistryAssociationArnT&& value) {
92 SetIpamInternetRegistryAssociationArn(std::forward<IpamInternetRegistryAssociationArnT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetIpamId() const { return m_ipamId; }
102 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
103 template <typename IpamIdT = Aws::String>
104 void SetIpamId(IpamIdT&& value) {
105 m_ipamIdHasBeenSet = true;
106 m_ipamId = std::forward<IpamIdT>(value);
107 }
108 template <typename IpamIdT = Aws::String>
110 SetIpamId(std::forward<IpamIdT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetIpamRegion() const { return m_ipamRegion; }
120 inline bool IpamRegionHasBeenSet() const { return m_ipamRegionHasBeenSet; }
121 template <typename IpamRegionT = Aws::String>
122 void SetIpamRegion(IpamRegionT&& value) {
123 m_ipamRegionHasBeenSet = true;
124 m_ipamRegion = std::forward<IpamRegionT>(value);
125 }
126 template <typename IpamRegionT = Aws::String>
128 SetIpamRegion(std::forward<IpamRegionT>(value));
129 return *this;
130 }
132
134
141 inline Rir GetRir() const { return m_rir; }
142 inline bool RirHasBeenSet() const { return m_rirHasBeenSet; }
143 inline void SetRir(Rir value) {
144 m_rirHasBeenSet = true;
145 m_rir = value;
146 }
148 SetRir(value);
149 return *this;
150 }
152
154
157 inline const Aws::String& GetOrganizationHandle() const { return m_organizationHandle; }
158 inline bool OrganizationHandleHasBeenSet() const { return m_organizationHandleHasBeenSet; }
159 template <typename OrganizationHandleT = Aws::String>
160 void SetOrganizationHandle(OrganizationHandleT&& value) {
161 m_organizationHandleHasBeenSet = true;
162 m_organizationHandle = std::forward<OrganizationHandleT>(value);
163 }
164 template <typename OrganizationHandleT = Aws::String>
166 SetOrganizationHandle(std::forward<OrganizationHandleT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetDescription() const { return m_description; }
176 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
177 template <typename DescriptionT = Aws::String>
178 void SetDescription(DescriptionT&& value) {
179 m_descriptionHasBeenSet = true;
180 m_description = std::forward<DescriptionT>(value);
181 }
182 template <typename DescriptionT = Aws::String>
184 SetDescription(std::forward<DescriptionT>(value));
185 return *this;
186 }
188
190
198 inline IpamInternetRegistryAssociationState GetState() const { return m_state; }
199 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
201 m_stateHasBeenSet = true;
202 m_state = value;
203 }
205 SetState(value);
206 return *this;
207 }
209
211
215 inline const Aws::String& GetChildRequestXml() const { return m_childRequestXml; }
216 inline bool ChildRequestXmlHasBeenSet() const { return m_childRequestXmlHasBeenSet; }
217 template <typename ChildRequestXmlT = Aws::String>
218 void SetChildRequestXml(ChildRequestXmlT&& value) {
219 m_childRequestXmlHasBeenSet = true;
220 m_childRequestXml = std::forward<ChildRequestXmlT>(value);
221 }
222 template <typename ChildRequestXmlT = Aws::String>
224 SetChildRequestXml(std::forward<ChildRequestXmlT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
234 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
235 template <typename TagsT = Aws::Vector<Tag>>
236 void SetTags(TagsT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags = std::forward<TagsT>(value);
239 }
240 template <typename TagsT = Aws::Vector<Tag>>
242 SetTags(std::forward<TagsT>(value));
243 return *this;
244 }
245 template <typename TagsT = Tag>
247 m_tagsHasBeenSet = true;
248 m_tags.emplace_back(std::forward<TagsT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_ownerId;
254
255 Aws::String m_ipamInternetRegistryAssociationId;
256
257 Aws::String m_ipamInternetRegistryAssociationArn;
258
259 Aws::String m_ipamId;
260
261 Aws::String m_ipamRegion;
262
263 Rir m_rir{Rir::NOT_SET};
264
265 Aws::String m_organizationHandle;
266
267 Aws::String m_description;
268
270
271 Aws::String m_childRequestXml;
272
273 Aws::Vector<Tag> m_tags;
274 bool m_ownerIdHasBeenSet = false;
275 bool m_ipamInternetRegistryAssociationIdHasBeenSet = false;
276 bool m_ipamInternetRegistryAssociationArnHasBeenSet = false;
277 bool m_ipamIdHasBeenSet = false;
278 bool m_ipamRegionHasBeenSet = false;
279 bool m_rirHasBeenSet = false;
280 bool m_organizationHandleHasBeenSet = false;
281 bool m_descriptionHasBeenSet = false;
282 bool m_stateHasBeenSet = false;
283 bool m_childRequestXmlHasBeenSet = false;
284 bool m_tagsHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace EC2
289} // namespace Aws
IpamInternetRegistryAssociation & WithIpamRegion(IpamRegionT &&value)
IpamInternetRegistryAssociation & WithRir(Rir value)
IpamInternetRegistryAssociation & WithOwnerId(OwnerIdT &&value)
void SetIpamInternetRegistryAssociationArn(IpamInternetRegistryAssociationArnT &&value)
IpamInternetRegistryAssociation & WithState(IpamInternetRegistryAssociationState value)
IpamInternetRegistryAssociation & WithChildRequestXml(ChildRequestXmlT &&value)
void SetIpamInternetRegistryAssociationId(IpamInternetRegistryAssociationIdT &&value)
IpamInternetRegistryAssociation & AddTags(TagsT &&value)
IpamInternetRegistryAssociation & WithTags(TagsT &&value)
AWS_EC2_API IpamInternetRegistryAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API IpamInternetRegistryAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(IpamInternetRegistryAssociationState value)
IpamInternetRegistryAssociation & WithIpamInternetRegistryAssociationId(IpamInternetRegistryAssociationIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IpamInternetRegistryAssociation & WithOrganizationHandle(OrganizationHandleT &&value)
IpamInternetRegistryAssociationState GetState() const
IpamInternetRegistryAssociation & WithIpamInternetRegistryAssociationArn(IpamInternetRegistryAssociationArnT &&value)
IpamInternetRegistryAssociation & WithIpamId(IpamIdT &&value)
IpamInternetRegistryAssociation & WithDescription(DescriptionT &&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