AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubnetCidrReservation.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/SubnetCidrReservationType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API SubnetCidrReservation();
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetSubnetCidrReservationId() const{ return m_subnetCidrReservationId; }
50 inline bool SubnetCidrReservationIdHasBeenSet() const { return m_subnetCidrReservationIdHasBeenSet; }
51 inline void SetSubnetCidrReservationId(const Aws::String& value) { m_subnetCidrReservationIdHasBeenSet = true; m_subnetCidrReservationId = value; }
52 inline void SetSubnetCidrReservationId(Aws::String&& value) { m_subnetCidrReservationIdHasBeenSet = true; m_subnetCidrReservationId = std::move(value); }
53 inline void SetSubnetCidrReservationId(const char* value) { m_subnetCidrReservationIdHasBeenSet = true; m_subnetCidrReservationId.assign(value); }
56 inline SubnetCidrReservation& WithSubnetCidrReservationId(const char* value) { SetSubnetCidrReservationId(value); return *this;}
58
60
63 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
64 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
65 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
66 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
67 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
68 inline SubnetCidrReservation& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
69 inline SubnetCidrReservation& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
70 inline SubnetCidrReservation& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
72
74
77 inline const Aws::String& GetCidr() const{ return m_cidr; }
78 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
79 inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
80 inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
81 inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
82 inline SubnetCidrReservation& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
83 inline SubnetCidrReservation& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
84 inline SubnetCidrReservation& WithCidr(const char* value) { SetCidr(value); return *this;}
86
88
91 inline const SubnetCidrReservationType& GetReservationType() const{ return m_reservationType; }
92 inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
93 inline void SetReservationType(const SubnetCidrReservationType& value) { m_reservationTypeHasBeenSet = true; m_reservationType = value; }
94 inline void SetReservationType(SubnetCidrReservationType&& value) { m_reservationTypeHasBeenSet = true; m_reservationType = std::move(value); }
98
100
103 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
104 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
105 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
106 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
107 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
108 inline SubnetCidrReservation& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
109 inline SubnetCidrReservation& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
110 inline SubnetCidrReservation& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
112
114
117 inline const Aws::String& GetDescription() const{ return m_description; }
118 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
119 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
120 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
121 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
122 inline SubnetCidrReservation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
123 inline SubnetCidrReservation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
124 inline SubnetCidrReservation& WithDescription(const char* value) { SetDescription(value); return *this;}
126
128
131 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
134 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
135 inline SubnetCidrReservation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
136 inline SubnetCidrReservation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
137 inline SubnetCidrReservation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
138 inline SubnetCidrReservation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
140 private:
141
142 Aws::String m_subnetCidrReservationId;
143 bool m_subnetCidrReservationIdHasBeenSet = false;
144
145 Aws::String m_subnetId;
146 bool m_subnetIdHasBeenSet = false;
147
148 Aws::String m_cidr;
149 bool m_cidrHasBeenSet = false;
150
151 SubnetCidrReservationType m_reservationType;
152 bool m_reservationTypeHasBeenSet = false;
153
154 Aws::String m_ownerId;
155 bool m_ownerIdHasBeenSet = false;
156
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159
160 Aws::Vector<Tag> m_tags;
161 bool m_tagsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace EC2
166} // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
SubnetCidrReservation & WithDescription(const char *value)
SubnetCidrReservation & WithCidr(const char *value)
SubnetCidrReservation & WithSubnetId(const char *value)
SubnetCidrReservation & AddTags(const Tag &value)
SubnetCidrReservation & WithSubnetCidrReservationId(const Aws::String &value)
SubnetCidrReservation & WithSubnetCidrReservationId(const char *value)
const Aws::String & GetSubnetCidrReservationId() const
SubnetCidrReservation & WithOwnerId(const Aws::String &value)
SubnetCidrReservation & WithReservationType(SubnetCidrReservationType &&value)
SubnetCidrReservation & WithTags(Aws::Vector< Tag > &&value)
SubnetCidrReservation & WithTags(const Aws::Vector< Tag > &value)
void SetCidr(const Aws::String &value)
SubnetCidrReservation & WithDescription(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const SubnetCidrReservationType & GetReservationType() const
void SetSubnetCidrReservationId(const Aws::String &value)
void SetReservationType(const SubnetCidrReservationType &value)
SubnetCidrReservation & WithDescription(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
void SetOwnerId(const Aws::String &value)
SubnetCidrReservation & WithSubnetId(const Aws::String &value)
SubnetCidrReservation & WithCidr(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetSubnetId(const Aws::String &value)
SubnetCidrReservation & WithOwnerId(const char *value)
SubnetCidrReservation & WithSubnetCidrReservationId(Aws::String &&value)
void SetReservationType(SubnetCidrReservationType &&value)
SubnetCidrReservation & WithSubnetId(Aws::String &&value)
AWS_EC2_API SubnetCidrReservation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SubnetCidrReservation & WithOwnerId(Aws::String &&value)
SubnetCidrReservation & WithCidr(Aws::String &&value)
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
void SetSubnetCidrReservationId(Aws::String &&value)
SubnetCidrReservation & AddTags(Tag &&value)
void SetDescription(const Aws::String &value)
SubnetCidrReservation & WithReservationType(const SubnetCidrReservationType &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