AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename CidrT = Aws::String>
54 void SetCidr(CidrT&& value) { m_cidrHasBeenSet = true; m_cidr = std::forward<CidrT>(value); }
55 template<typename CidrT = Aws::String>
56 IpamPoolAllocation& WithCidr(CidrT&& value) { SetCidr(std::forward<CidrT>(value)); return *this;}
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) { m_ipamPoolAllocationIdHasBeenSet = true; m_ipamPoolAllocationId = std::forward<IpamPoolAllocationIdT>(value); }
67 template<typename IpamPoolAllocationIdT = Aws::String>
68 IpamPoolAllocation& WithIpamPoolAllocationId(IpamPoolAllocationIdT&& value) { SetIpamPoolAllocationId(std::forward<IpamPoolAllocationIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template<typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
79 template<typename DescriptionT = Aws::String>
80 IpamPoolAllocation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
82
84
87 inline const Aws::String& GetResourceId() const { return m_resourceId; }
88 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
89 template<typename ResourceIdT = Aws::String>
90 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
91 template<typename ResourceIdT = Aws::String>
92 IpamPoolAllocation& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
94
96
99 inline IpamPoolAllocationResourceType GetResourceType() const { return m_resourceType; }
100 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
101 inline void SetResourceType(IpamPoolAllocationResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
104
106
109 inline const Aws::String& GetResourceRegion() const { return m_resourceRegion; }
110 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
111 template<typename ResourceRegionT = Aws::String>
112 void SetResourceRegion(ResourceRegionT&& value) { m_resourceRegionHasBeenSet = true; m_resourceRegion = std::forward<ResourceRegionT>(value); }
113 template<typename ResourceRegionT = Aws::String>
114 IpamPoolAllocation& WithResourceRegion(ResourceRegionT&& value) { SetResourceRegion(std::forward<ResourceRegionT>(value)); return *this;}
116
118
121 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
122 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
123 template<typename ResourceOwnerT = Aws::String>
124 void SetResourceOwner(ResourceOwnerT&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::forward<ResourceOwnerT>(value); }
125 template<typename ResourceOwnerT = Aws::String>
126 IpamPoolAllocation& WithResourceOwner(ResourceOwnerT&& value) { SetResourceOwner(std::forward<ResourceOwnerT>(value)); return *this;}
128 private:
129
130 Aws::String m_cidr;
131 bool m_cidrHasBeenSet = false;
132
133 Aws::String m_ipamPoolAllocationId;
134 bool m_ipamPoolAllocationIdHasBeenSet = false;
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
139 Aws::String m_resourceId;
140 bool m_resourceIdHasBeenSet = false;
141
143 bool m_resourceTypeHasBeenSet = false;
144
145 Aws::String m_resourceRegion;
146 bool m_resourceRegionHasBeenSet = false;
147
148 Aws::String m_resourceOwner;
149 bool m_resourceOwnerHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace EC2
154} // 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