AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IpamPoolAllocation.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/IpamPoolAllocationResourceType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API IpamPoolAllocation();
37 AWS_EC2_API IpamPoolAllocation(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
51 inline const Aws::String& GetCidr() const{ return m_cidr; }
52 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
53 inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
54 inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
55 inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
56 inline IpamPoolAllocation& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
57 inline IpamPoolAllocation& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
58 inline IpamPoolAllocation& WithCidr(const char* value) { SetCidr(value); return *this;}
60
62
65 inline const Aws::String& GetIpamPoolAllocationId() const{ return m_ipamPoolAllocationId; }
66 inline bool IpamPoolAllocationIdHasBeenSet() const { return m_ipamPoolAllocationIdHasBeenSet; }
67 inline void SetIpamPoolAllocationId(const Aws::String& value) { m_ipamPoolAllocationIdHasBeenSet = true; m_ipamPoolAllocationId = value; }
68 inline void SetIpamPoolAllocationId(Aws::String&& value) { m_ipamPoolAllocationIdHasBeenSet = true; m_ipamPoolAllocationId = std::move(value); }
69 inline void SetIpamPoolAllocationId(const char* value) { m_ipamPoolAllocationIdHasBeenSet = true; m_ipamPoolAllocationId.assign(value); }
71 inline IpamPoolAllocation& WithIpamPoolAllocationId(Aws::String&& value) { SetIpamPoolAllocationId(std::move(value)); return *this;}
72 inline IpamPoolAllocation& WithIpamPoolAllocationId(const char* value) { SetIpamPoolAllocationId(value); return *this;}
74
76
79 inline const Aws::String& GetDescription() const{ return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
84 inline IpamPoolAllocation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
85 inline IpamPoolAllocation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline IpamPoolAllocation& WithDescription(const char* value) { SetDescription(value); return *this;}
88
90
93 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
94 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
95 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
96 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
97 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
98 inline IpamPoolAllocation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
99 inline IpamPoolAllocation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
100 inline IpamPoolAllocation& WithResourceId(const char* value) { SetResourceId(value); return *this;}
102
104
107 inline const IpamPoolAllocationResourceType& GetResourceType() const{ return m_resourceType; }
108 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
109 inline void SetResourceType(const IpamPoolAllocationResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
110 inline void SetResourceType(IpamPoolAllocationResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
112 inline IpamPoolAllocation& WithResourceType(IpamPoolAllocationResourceType&& value) { SetResourceType(std::move(value)); return *this;}
114
116
119 inline const Aws::String& GetResourceRegion() const{ return m_resourceRegion; }
120 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
121 inline void SetResourceRegion(const Aws::String& value) { m_resourceRegionHasBeenSet = true; m_resourceRegion = value; }
122 inline void SetResourceRegion(Aws::String&& value) { m_resourceRegionHasBeenSet = true; m_resourceRegion = std::move(value); }
123 inline void SetResourceRegion(const char* value) { m_resourceRegionHasBeenSet = true; m_resourceRegion.assign(value); }
124 inline IpamPoolAllocation& WithResourceRegion(const Aws::String& value) { SetResourceRegion(value); return *this;}
125 inline IpamPoolAllocation& WithResourceRegion(Aws::String&& value) { SetResourceRegion(std::move(value)); return *this;}
126 inline IpamPoolAllocation& WithResourceRegion(const char* value) { SetResourceRegion(value); return *this;}
128
130
133 inline const Aws::String& GetResourceOwner() const{ return m_resourceOwner; }
134 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
135 inline void SetResourceOwner(const Aws::String& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
136 inline void SetResourceOwner(Aws::String&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
137 inline void SetResourceOwner(const char* value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner.assign(value); }
138 inline IpamPoolAllocation& WithResourceOwner(const Aws::String& value) { SetResourceOwner(value); return *this;}
139 inline IpamPoolAllocation& WithResourceOwner(Aws::String&& value) { SetResourceOwner(std::move(value)); return *this;}
140 inline IpamPoolAllocation& WithResourceOwner(const char* value) { SetResourceOwner(value); return *this;}
142 private:
143
144 Aws::String m_cidr;
145 bool m_cidrHasBeenSet = false;
146
147 Aws::String m_ipamPoolAllocationId;
148 bool m_ipamPoolAllocationIdHasBeenSet = false;
149
150 Aws::String m_description;
151 bool m_descriptionHasBeenSet = false;
152
153 Aws::String m_resourceId;
154 bool m_resourceIdHasBeenSet = false;
155
156 IpamPoolAllocationResourceType m_resourceType;
157 bool m_resourceTypeHasBeenSet = false;
158
159 Aws::String m_resourceRegion;
160 bool m_resourceRegionHasBeenSet = false;
161
162 Aws::String m_resourceOwner;
163 bool m_resourceOwnerHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace EC2
168} // namespace Aws
IpamPoolAllocation & WithCidr(const Aws::String &value)
IpamPoolAllocation & WithResourceId(const char *value)
const Aws::String & GetResourceId() const
const Aws::String & GetDescription() const
IpamPoolAllocation & WithCidr(Aws::String &&value)
AWS_EC2_API IpamPoolAllocation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamPoolAllocation & WithResourceType(IpamPoolAllocationResourceType &&value)
IpamPoolAllocation & WithResourceRegion(const char *value)
void SetDescription(Aws::String &&value)
void SetResourceRegion(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetResourceId(Aws::String &&value)
void SetResourceRegion(Aws::String &&value)
IpamPoolAllocation & WithCidr(const char *value)
void SetResourceType(const IpamPoolAllocationResourceType &value)
IpamPoolAllocation & WithIpamPoolAllocationId(const char *value)
IpamPoolAllocation & WithIpamPoolAllocationId(const Aws::String &value)
void SetIpamPoolAllocationId(const Aws::String &value)
void SetCidr(const Aws::String &value)
IpamPoolAllocation & WithResourceId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IpamPoolAllocation & WithResourceType(const IpamPoolAllocationResourceType &value)
IpamPoolAllocation & WithResourceOwner(const Aws::String &value)
void SetIpamPoolAllocationId(const char *value)
const Aws::String & GetCidr() const
IpamPoolAllocation & WithDescription(Aws::String &&value)
const Aws::String & GetIpamPoolAllocationId() const
void SetResourceId(const Aws::String &value)
AWS_EC2_API IpamPoolAllocation(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamPoolAllocation & WithDescription(const char *value)
const Aws::String & GetResourceOwner() const
IpamPoolAllocation & WithResourceOwner(const char *value)
IpamPoolAllocation & WithResourceId(Aws::String &&value)
IpamPoolAllocation & WithResourceOwner(Aws::String &&value)
IpamPoolAllocation & WithDescription(const Aws::String &value)
void SetIpamPoolAllocationId(Aws::String &&value)
IpamPoolAllocation & WithResourceRegion(const Aws::String &value)
void SetDescription(const Aws::String &value)
const Aws::String & GetResourceRegion() const
void SetResourceType(IpamPoolAllocationResourceType &&value)
void SetResourceOwner(const Aws::String &value)
const IpamPoolAllocationResourceType & GetResourceType() const
IpamPoolAllocation & WithIpamPoolAllocationId(Aws::String &&value)
void SetResourceOwner(Aws::String &&value)
void SetResourceRegion(const Aws::String &value)
IpamPoolAllocation & WithResourceRegion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream