AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
IpamPoolAllocation.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/IpamPoolAllocationResourceType.h>
12#include <aws/ec2/model/Tag.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
32 public:
33 AWS_EC2_API IpamPoolAllocation() = default;
34 AWS_EC2_API IpamPoolAllocation(const Aws::Utils::Xml::XmlNode& xmlNode);
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
47 inline const Aws::String& GetCidr() const { return m_cidr; }
48 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
49 template <typename CidrT = Aws::String>
50 void SetCidr(CidrT&& value) {
51 m_cidrHasBeenSet = true;
52 m_cidr = std::forward<CidrT>(value);
53 }
54 template <typename CidrT = Aws::String>
55 IpamPoolAllocation& WithCidr(CidrT&& value) {
56 SetCidr(std::forward<CidrT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetIpamPoolAllocationId() const { return m_ipamPoolAllocationId; }
66 inline bool IpamPoolAllocationIdHasBeenSet() const { return m_ipamPoolAllocationIdHasBeenSet; }
67 template <typename IpamPoolAllocationIdT = Aws::String>
68 void SetIpamPoolAllocationId(IpamPoolAllocationIdT&& value) {
69 m_ipamPoolAllocationIdHasBeenSet = true;
70 m_ipamPoolAllocationId = std::forward<IpamPoolAllocationIdT>(value);
71 }
72 template <typename IpamPoolAllocationIdT = Aws::String>
73 IpamPoolAllocation& WithIpamPoolAllocationId(IpamPoolAllocationIdT&& value) {
74 SetIpamPoolAllocationId(std::forward<IpamPoolAllocationIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template <typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) {
87 m_descriptionHasBeenSet = true;
88 m_description = std::forward<DescriptionT>(value);
89 }
90 template <typename DescriptionT = Aws::String>
91 IpamPoolAllocation& WithDescription(DescriptionT&& value) {
92 SetDescription(std::forward<DescriptionT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetResourceId() const { return m_resourceId; }
102 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
103 template <typename ResourceIdT = Aws::String>
104 void SetResourceId(ResourceIdT&& value) {
105 m_resourceIdHasBeenSet = true;
106 m_resourceId = std::forward<ResourceIdT>(value);
107 }
108 template <typename ResourceIdT = Aws::String>
109 IpamPoolAllocation& WithResourceId(ResourceIdT&& value) {
110 SetResourceId(std::forward<ResourceIdT>(value));
111 return *this;
112 }
114
116
119 inline IpamPoolAllocationResourceType GetResourceType() const { return m_resourceType; }
120 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
122 m_resourceTypeHasBeenSet = true;
123 m_resourceType = value;
124 }
126 SetResourceType(value);
127 return *this;
128 }
130
132
135 inline const Aws::String& GetResourceRegion() const { return m_resourceRegion; }
136 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
137 template <typename ResourceRegionT = Aws::String>
138 void SetResourceRegion(ResourceRegionT&& value) {
139 m_resourceRegionHasBeenSet = true;
140 m_resourceRegion = std::forward<ResourceRegionT>(value);
141 }
142 template <typename ResourceRegionT = Aws::String>
143 IpamPoolAllocation& WithResourceRegion(ResourceRegionT&& value) {
144 SetResourceRegion(std::forward<ResourceRegionT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
154 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
155 template <typename ResourceOwnerT = Aws::String>
156 void SetResourceOwner(ResourceOwnerT&& value) {
157 m_resourceOwnerHasBeenSet = true;
158 m_resourceOwner = std::forward<ResourceOwnerT>(value);
159 }
160 template <typename ResourceOwnerT = Aws::String>
161 IpamPoolAllocation& WithResourceOwner(ResourceOwnerT&& value) {
162 SetResourceOwner(std::forward<ResourceOwnerT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template <typename TagsT = Aws::Vector<Tag>>
174 void SetTags(TagsT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags = std::forward<TagsT>(value);
177 }
178 template <typename TagsT = Aws::Vector<Tag>>
179 IpamPoolAllocation& WithTags(TagsT&& value) {
180 SetTags(std::forward<TagsT>(value));
181 return *this;
182 }
183 template <typename TagsT = Tag>
184 IpamPoolAllocation& AddTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags.emplace_back(std::forward<TagsT>(value));
187 return *this;
188 }
190 private:
191 Aws::String m_cidr;
192
193 Aws::String m_ipamPoolAllocationId;
194
195 Aws::String m_description;
196
197 Aws::String m_resourceId;
198
200
201 Aws::String m_resourceRegion;
202
203 Aws::String m_resourceOwner;
204
205 Aws::Vector<Tag> m_tags;
206 bool m_cidrHasBeenSet = false;
207 bool m_ipamPoolAllocationIdHasBeenSet = false;
208 bool m_descriptionHasBeenSet = false;
209 bool m_resourceIdHasBeenSet = false;
210 bool m_resourceTypeHasBeenSet = false;
211 bool m_resourceRegionHasBeenSet = false;
212 bool m_resourceOwnerHasBeenSet = false;
213 bool m_tagsHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace EC2
218} // namespace Aws
IpamPoolAllocation & WithIpamPoolAllocationId(IpamPoolAllocationIdT &&value)
IpamPoolAllocation & WithCidr(CidrT &&value)
IpamPoolAllocation & WithResourceRegion(ResourceRegionT &&value)
const Aws::String & GetResourceId() const
const Aws::String & GetDescription() const
AWS_EC2_API IpamPoolAllocation()=default
AWS_EC2_API IpamPoolAllocation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamPoolAllocation & AddTags(TagsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IpamPoolAllocation & WithResourceId(ResourceIdT &&value)
void SetResourceType(IpamPoolAllocationResourceType value)
const Aws::Vector< Tag > & GetTags() const
void SetResourceRegion(ResourceRegionT &&value)
IpamPoolAllocation & WithDescription(DescriptionT &&value)
void SetResourceId(ResourceIdT &&value)
IpamPoolAllocationResourceType GetResourceType() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetResourceOwner(ResourceOwnerT &&value)
const Aws::String & GetCidr() const
const Aws::String & GetIpamPoolAllocationId() const
AWS_EC2_API IpamPoolAllocation(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetResourceOwner() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetResourceRegion() const
IpamPoolAllocation & WithTags(TagsT &&value)
IpamPoolAllocation & WithResourceOwner(ResourceOwnerT &&value)
IpamPoolAllocation & WithResourceType(IpamPoolAllocationResourceType value)
void SetIpamPoolAllocationId(IpamPoolAllocationIdT &&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