AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/IpamPoolAllocationResourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API IpamPoolAllocation() = default;
32 AWS_EC2_API IpamPoolAllocation(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
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 IpamPoolAllocation& WithCidr(CidrT&& value) {
54 SetCidr(std::forward<CidrT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetIpamPoolAllocationId() const { return m_ipamPoolAllocationId; }
64 inline bool IpamPoolAllocationIdHasBeenSet() const { return m_ipamPoolAllocationIdHasBeenSet; }
65 template <typename IpamPoolAllocationIdT = Aws::String>
66 void SetIpamPoolAllocationId(IpamPoolAllocationIdT&& value) {
67 m_ipamPoolAllocationIdHasBeenSet = true;
68 m_ipamPoolAllocationId = std::forward<IpamPoolAllocationIdT>(value);
69 }
70 template <typename IpamPoolAllocationIdT = Aws::String>
71 IpamPoolAllocation& WithIpamPoolAllocationId(IpamPoolAllocationIdT&& value) {
72 SetIpamPoolAllocationId(std::forward<IpamPoolAllocationIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
89 IpamPoolAllocation& WithDescription(DescriptionT&& value) {
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetResourceId() const { return m_resourceId; }
100 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
101 template <typename ResourceIdT = Aws::String>
102 void SetResourceId(ResourceIdT&& value) {
103 m_resourceIdHasBeenSet = true;
104 m_resourceId = std::forward<ResourceIdT>(value);
105 }
106 template <typename ResourceIdT = Aws::String>
107 IpamPoolAllocation& WithResourceId(ResourceIdT&& value) {
108 SetResourceId(std::forward<ResourceIdT>(value));
109 return *this;
110 }
112
114
117 inline IpamPoolAllocationResourceType GetResourceType() const { return m_resourceType; }
118 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
120 m_resourceTypeHasBeenSet = true;
121 m_resourceType = value;
122 }
124 SetResourceType(value);
125 return *this;
126 }
128
130
133 inline const Aws::String& GetResourceRegion() const { return m_resourceRegion; }
134 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
135 template <typename ResourceRegionT = Aws::String>
136 void SetResourceRegion(ResourceRegionT&& value) {
137 m_resourceRegionHasBeenSet = true;
138 m_resourceRegion = std::forward<ResourceRegionT>(value);
139 }
140 template <typename ResourceRegionT = Aws::String>
141 IpamPoolAllocation& WithResourceRegion(ResourceRegionT&& value) {
142 SetResourceRegion(std::forward<ResourceRegionT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
152 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
153 template <typename ResourceOwnerT = Aws::String>
154 void SetResourceOwner(ResourceOwnerT&& value) {
155 m_resourceOwnerHasBeenSet = true;
156 m_resourceOwner = std::forward<ResourceOwnerT>(value);
157 }
158 template <typename ResourceOwnerT = Aws::String>
159 IpamPoolAllocation& WithResourceOwner(ResourceOwnerT&& value) {
160 SetResourceOwner(std::forward<ResourceOwnerT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_cidr;
166
167 Aws::String m_ipamPoolAllocationId;
168
169 Aws::String m_description;
170
171 Aws::String m_resourceId;
172
174
175 Aws::String m_resourceRegion;
176
177 Aws::String m_resourceOwner;
178 bool m_cidrHasBeenSet = false;
179 bool m_ipamPoolAllocationIdHasBeenSet = false;
180 bool m_descriptionHasBeenSet = false;
181 bool m_resourceIdHasBeenSet = false;
182 bool m_resourceTypeHasBeenSet = false;
183 bool m_resourceRegionHasBeenSet = false;
184 bool m_resourceOwnerHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace EC2
189} // 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)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IpamPoolAllocation & WithResourceId(ResourceIdT &&value)
void SetResourceType(IpamPoolAllocationResourceType value)
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 & WithResourceOwner(ResourceOwnerT &&value)
IpamPoolAllocation & WithResourceType(IpamPoolAllocationResourceType value)
void SetIpamPoolAllocationId(IpamPoolAllocationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream