AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SubnetCidrReservation.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/SubnetCidrReservationType.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
31 public:
32 AWS_EC2_API SubnetCidrReservation() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetSubnetCidrReservationId() const { return m_subnetCidrReservationId; }
44 inline bool SubnetCidrReservationIdHasBeenSet() const { return m_subnetCidrReservationIdHasBeenSet; }
45 template <typename SubnetCidrReservationIdT = Aws::String>
46 void SetSubnetCidrReservationId(SubnetCidrReservationIdT&& value) {
47 m_subnetCidrReservationIdHasBeenSet = true;
48 m_subnetCidrReservationId = std::forward<SubnetCidrReservationIdT>(value);
49 }
50 template <typename SubnetCidrReservationIdT = Aws::String>
51 SubnetCidrReservation& WithSubnetCidrReservationId(SubnetCidrReservationIdT&& value) {
52 SetSubnetCidrReservationId(std::forward<SubnetCidrReservationIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
62 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
63 template <typename SubnetIdT = Aws::String>
64 void SetSubnetId(SubnetIdT&& value) {
65 m_subnetIdHasBeenSet = true;
66 m_subnetId = std::forward<SubnetIdT>(value);
67 }
68 template <typename SubnetIdT = Aws::String>
69 SubnetCidrReservation& WithSubnetId(SubnetIdT&& value) {
70 SetSubnetId(std::forward<SubnetIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetCidr() const { return m_cidr; }
80 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
81 template <typename CidrT = Aws::String>
82 void SetCidr(CidrT&& value) {
83 m_cidrHasBeenSet = true;
84 m_cidr = std::forward<CidrT>(value);
85 }
86 template <typename CidrT = Aws::String>
88 SetCidr(std::forward<CidrT>(value));
89 return *this;
90 }
92
94
97 inline SubnetCidrReservationType GetReservationType() const { return m_reservationType; }
98 inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
100 m_reservationTypeHasBeenSet = true;
101 m_reservationType = value;
102 }
104 SetReservationType(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
114 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
115 template <typename OwnerIdT = Aws::String>
116 void SetOwnerId(OwnerIdT&& value) {
117 m_ownerIdHasBeenSet = true;
118 m_ownerId = std::forward<OwnerIdT>(value);
119 }
120 template <typename OwnerIdT = Aws::String>
122 SetOwnerId(std::forward<OwnerIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template <typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) {
135 m_descriptionHasBeenSet = true;
136 m_description = std::forward<DescriptionT>(value);
137 }
138 template <typename DescriptionT = Aws::String>
139 SubnetCidrReservation& WithDescription(DescriptionT&& value) {
140 SetDescription(std::forward<DescriptionT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template <typename TagsT = Aws::Vector<Tag>>
152 void SetTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags = std::forward<TagsT>(value);
155 }
156 template <typename TagsT = Aws::Vector<Tag>>
158 SetTags(std::forward<TagsT>(value));
159 return *this;
160 }
161 template <typename TagsT = Tag>
163 m_tagsHasBeenSet = true;
164 m_tags.emplace_back(std::forward<TagsT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_subnetCidrReservationId;
170
171 Aws::String m_subnetId;
172
173 Aws::String m_cidr;
174
176
177 Aws::String m_ownerId;
178
179 Aws::String m_description;
180
181 Aws::Vector<Tag> m_tags;
182 bool m_subnetCidrReservationIdHasBeenSet = false;
183 bool m_subnetIdHasBeenSet = false;
184 bool m_cidrHasBeenSet = false;
185 bool m_reservationTypeHasBeenSet = false;
186 bool m_ownerIdHasBeenSet = false;
187 bool m_descriptionHasBeenSet = false;
188 bool m_tagsHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace EC2
193} // namespace Aws
SubnetCidrReservation & WithOwnerId(OwnerIdT &&value)
SubnetCidrReservation & WithReservationType(SubnetCidrReservationType value)
SubnetCidrReservation & WithSubnetCidrReservationId(SubnetCidrReservationIdT &&value)
SubnetCidrReservationType GetReservationType() const
SubnetCidrReservation & WithCidr(CidrT &&value)
const Aws::String & GetSubnetCidrReservationId() const
void SetSubnetCidrReservationId(SubnetCidrReservationIdT &&value)
void SetReservationType(SubnetCidrReservationType value)
SubnetCidrReservation & WithSubnetId(SubnetIdT &&value)
SubnetCidrReservation & AddTags(TagsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SubnetCidrReservation & WithDescription(DescriptionT &&value)
SubnetCidrReservation & WithTags(TagsT &&value)
AWS_EC2_API SubnetCidrReservation()=default
const Aws::Vector< Tag > & GetTags() const
AWS_EC2_API SubnetCidrReservation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API SubnetCidrReservation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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