AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateSubnetCidrReservationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/SubnetCidrReservationType.h>
12#include <aws/ec2/model/TagSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API CreateSubnetCidrReservationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSubnetCidrReservation"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
42 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
43 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
44 template <typename SubnetIdT = Aws::String>
45 void SetSubnetId(SubnetIdT&& value) {
46 m_subnetIdHasBeenSet = true;
47 m_subnetId = std::forward<SubnetIdT>(value);
48 }
49 template <typename SubnetIdT = Aws::String>
51 SetSubnetId(std::forward<SubnetIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCidr() const { return m_cidr; }
61 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
62 template <typename CidrT = Aws::String>
63 void SetCidr(CidrT&& value) {
64 m_cidrHasBeenSet = true;
65 m_cidr = std::forward<CidrT>(value);
66 }
67 template <typename CidrT = Aws::String>
69 SetCidr(std::forward<CidrT>(value));
70 return *this;
71 }
73
75
82 inline SubnetCidrReservationType GetReservationType() const { return m_reservationType; }
83 inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
85 m_reservationTypeHasBeenSet = true;
86 m_reservationType = value;
87 }
89 SetReservationType(value);
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
119 inline bool GetDryRun() const { return m_dryRun; }
120 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
121 inline void SetDryRun(bool value) {
122 m_dryRunHasBeenSet = true;
123 m_dryRun = value;
124 }
126 SetDryRun(value);
127 return *this;
128 }
130
132
135 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
136 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
137 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
138 void SetTagSpecifications(TagSpecificationsT&& value) {
139 m_tagSpecificationsHasBeenSet = true;
140 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
141 }
142 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
144 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
145 return *this;
146 }
147 template <typename TagSpecificationsT = TagSpecification>
149 m_tagSpecificationsHasBeenSet = true;
150 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_subnetId;
156
157 Aws::String m_cidr;
158
160
161 Aws::String m_description;
162
163 bool m_dryRun{false};
164
165 Aws::Vector<TagSpecification> m_tagSpecifications;
166 bool m_subnetIdHasBeenSet = false;
167 bool m_cidrHasBeenSet = false;
168 bool m_reservationTypeHasBeenSet = false;
169 bool m_descriptionHasBeenSet = false;
170 bool m_dryRunHasBeenSet = false;
171 bool m_tagSpecificationsHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace EC2
176} // namespace Aws
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AWS_EC2_API Aws::String SerializePayload() const override
CreateSubnetCidrReservationRequest & WithReservationType(SubnetCidrReservationType value)
CreateSubnetCidrReservationRequest & WithSubnetId(SubnetIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateSubnetCidrReservationRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateSubnetCidrReservationRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateSubnetCidrReservationRequest & WithDryRun(bool value)
CreateSubnetCidrReservationRequest & WithCidr(CidrT &&value)
CreateSubnetCidrReservationRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector