AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SubnetCidrReservationIdT = Aws::String>
52 void SetSubnetCidrReservationId(SubnetCidrReservationIdT&& value) { m_subnetCidrReservationIdHasBeenSet = true; m_subnetCidrReservationId = std::forward<SubnetCidrReservationIdT>(value); }
53 template<typename SubnetCidrReservationIdT = Aws::String>
54 SubnetCidrReservation& WithSubnetCidrReservationId(SubnetCidrReservationIdT&& value) { SetSubnetCidrReservationId(std::forward<SubnetCidrReservationIdT>(value)); return *this;}
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) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
65 template<typename SubnetIdT = Aws::String>
66 SubnetCidrReservation& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetCidr() const { return m_cidr; }
74 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
75 template<typename CidrT = Aws::String>
76 void SetCidr(CidrT&& value) { m_cidrHasBeenSet = true; m_cidr = std::forward<CidrT>(value); }
77 template<typename CidrT = Aws::String>
78 SubnetCidrReservation& WithCidr(CidrT&& value) { SetCidr(std::forward<CidrT>(value)); return *this;}
80
82
85 inline SubnetCidrReservationType GetReservationType() const { return m_reservationType; }
86 inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
87 inline void SetReservationType(SubnetCidrReservationType value) { m_reservationTypeHasBeenSet = true; m_reservationType = value; }
90
92
95 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
96 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
97 template<typename OwnerIdT = Aws::String>
98 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
99 template<typename OwnerIdT = Aws::String>
100 SubnetCidrReservation& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
102
104
107 inline const Aws::String& GetDescription() const { return m_description; }
108 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
109 template<typename DescriptionT = Aws::String>
110 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
111 template<typename DescriptionT = Aws::String>
112 SubnetCidrReservation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
114
116
119 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template<typename TagsT = Aws::Vector<Tag>>
122 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
123 template<typename TagsT = Aws::Vector<Tag>>
124 SubnetCidrReservation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
125 template<typename TagsT = Tag>
126 SubnetCidrReservation& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
128 private:
129
130 Aws::String m_subnetCidrReservationId;
131 bool m_subnetCidrReservationIdHasBeenSet = false;
132
133 Aws::String m_subnetId;
134 bool m_subnetIdHasBeenSet = false;
135
136 Aws::String m_cidr;
137 bool m_cidrHasBeenSet = false;
138
140 bool m_reservationTypeHasBeenSet = false;
141
142 Aws::String m_ownerId;
143 bool m_ownerIdHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 Aws::Vector<Tag> m_tags;
149 bool m_tagsHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace EC2
154} // 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