AWS SDK for C++  1.9.126
AWS SDK for C++
CreateSubnetCidrReservationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateSubnetCidrReservation"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
46 
50  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
51 
55  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
56 
60  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
61 
65  inline CreateSubnetCidrReservationRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
66 
70  inline CreateSubnetCidrReservationRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
71 
75  inline CreateSubnetCidrReservationRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
76 
80  inline CreateSubnetCidrReservationRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
81 
82 
86  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
87 
91  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
92 
96  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
97 
101  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
102 
106  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
107 
111  inline CreateSubnetCidrReservationRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
112 
116  inline CreateSubnetCidrReservationRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
117 
121  inline CreateSubnetCidrReservationRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
122 
123 
127  inline const Aws::String& GetCidr() const{ return m_cidr; }
128 
132  inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
133 
137  inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
138 
142  inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
143 
147  inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
148 
152  inline CreateSubnetCidrReservationRequest& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
153 
157  inline CreateSubnetCidrReservationRequest& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
158 
162  inline CreateSubnetCidrReservationRequest& WithCidr(const char* value) { SetCidr(value); return *this;}
163 
164 
176  inline const SubnetCidrReservationType& GetReservationType() const{ return m_reservationType; }
177 
189  inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
190 
202  inline void SetReservationType(const SubnetCidrReservationType& value) { m_reservationTypeHasBeenSet = true; m_reservationType = value; }
203 
215  inline void SetReservationType(SubnetCidrReservationType&& value) { m_reservationTypeHasBeenSet = true; m_reservationType = std::move(value); }
216 
228  inline CreateSubnetCidrReservationRequest& WithReservationType(const SubnetCidrReservationType& value) { SetReservationType(value); return *this;}
229 
241  inline CreateSubnetCidrReservationRequest& WithReservationType(SubnetCidrReservationType&& value) { SetReservationType(std::move(value)); return *this;}
242 
243 
247  inline const Aws::String& GetDescription() const{ return m_description; }
248 
252  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
253 
257  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
258 
262  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
263 
267  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
268 
272  inline CreateSubnetCidrReservationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
273 
277  inline CreateSubnetCidrReservationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
278 
282  inline CreateSubnetCidrReservationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
283 
284 
291  inline bool GetDryRun() const{ return m_dryRun; }
292 
299  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
300 
307  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
308 
315  inline CreateSubnetCidrReservationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
316 
317  private:
318 
319  Aws::Vector<TagSpecification> m_tagSpecifications;
320  bool m_tagSpecificationsHasBeenSet;
321 
322  Aws::String m_subnetId;
323  bool m_subnetIdHasBeenSet;
324 
325  Aws::String m_cidr;
326  bool m_cidrHasBeenSet;
327 
328  SubnetCidrReservationType m_reservationType;
329  bool m_reservationTypeHasBeenSet;
330 
331  Aws::String m_description;
332  bool m_descriptionHasBeenSet;
333 
334  bool m_dryRun;
335  bool m_dryRunHasBeenSet;
336  };
337 
338 } // namespace Model
339 } // namespace EC2
340 } // namespace Aws
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithSubnetId
CreateSubnetCidrReservationRequest & WithSubnetId(Aws::String &&value)
Definition: CreateSubnetCidrReservationRequest.h:116
TagSpecification.h
Aws::EC2::Model::CreateSubnetCidrReservationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetSubnetId
void SetSubnetId(const char *value)
Definition: CreateSubnetCidrReservationRequest.h:106
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithDescription
CreateSubnetCidrReservationRequest & WithDescription(const char *value)
Definition: CreateSubnetCidrReservationRequest.h:282
Aws::EC2::Model::CreateSubnetCidrReservationRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateSubnetCidrReservationRequest.h:45
Aws::EC2::Model::CreateSubnetCidrReservationRequest::GetCidr
const Aws::String & GetCidr() const
Definition: CreateSubnetCidrReservationRequest.h:127
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: CreateSubnetCidrReservationRequest.h:101
SubnetCidrReservationType.h
Aws::EC2::Model::CreateSubnetCidrReservationRequest
Definition: CreateSubnetCidrReservationRequest.h:25
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetCidr
void SetCidr(Aws::String &&value)
Definition: CreateSubnetCidrReservationRequest.h:142
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithCidr
CreateSubnetCidrReservationRequest & WithCidr(Aws::String &&value)
Definition: CreateSubnetCidrReservationRequest.h:157
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithDescription
CreateSubnetCidrReservationRequest & WithDescription(const Aws::String &value)
Definition: CreateSubnetCidrReservationRequest.h:272
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: CreateSubnetCidrReservationRequest.h:96
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithSubnetId
CreateSubnetCidrReservationRequest & WithSubnetId(const char *value)
Definition: CreateSubnetCidrReservationRequest.h:121
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateSubnetCidrReservationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSubnetCidrReservationRequest.h:33
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateSubnetCidrReservationRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateSubnetCidrReservationRequest.h:252
Aws::EC2::Model::CreateSubnetCidrReservationRequest::CreateSubnetCidrReservationRequest
CreateSubnetCidrReservationRequest()
AWSVector.h
Aws::EC2::Model::CreateSubnetCidrReservationRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateSubnetCidrReservationRequest.h:299
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithDryRun
CreateSubnetCidrReservationRequest & WithDryRun(bool value)
Definition: CreateSubnetCidrReservationRequest.h:315
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: CreateSubnetCidrReservationRequest.h:91
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetReservationType
void SetReservationType(const SubnetCidrReservationType &value)
Definition: CreateSubnetCidrReservationRequest.h:202
Aws::EC2::Model::SubnetCidrReservationType
SubnetCidrReservationType
Definition: SubnetCidrReservationType.h:17
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateSubnetCidrReservationRequest.h:262
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetCidr
void SetCidr(const char *value)
Definition: CreateSubnetCidrReservationRequest.h:147
Aws::EC2::Model::CreateSubnetCidrReservationRequest::GetReservationType
const SubnetCidrReservationType & GetReservationType() const
Definition: CreateSubnetCidrReservationRequest.h:176
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithSubnetId
CreateSubnetCidrReservationRequest & WithSubnetId(const Aws::String &value)
Definition: CreateSubnetCidrReservationRequest.h:111
EC2Request.h
Aws::EC2::Model::CreateSubnetCidrReservationRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateSubnetCidrReservationRequest.h:50
Aws::EC2::Model::CreateSubnetCidrReservationRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateSubnetCidrReservationRequest.h:247
AWSString.h
Aws::EC2::Model::CreateSubnetCidrReservationRequest::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: CreateSubnetCidrReservationRequest.h:86
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithCidr
CreateSubnetCidrReservationRequest & WithCidr(const Aws::String &value)
Definition: CreateSubnetCidrReservationRequest.h:152
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithCidr
CreateSubnetCidrReservationRequest & WithCidr(const char *value)
Definition: CreateSubnetCidrReservationRequest.h:162
Aws::EC2::Model::CreateSubnetCidrReservationRequest::CidrHasBeenSet
bool CidrHasBeenSet() const
Definition: CreateSubnetCidrReservationRequest.h:132
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithReservationType
CreateSubnetCidrReservationRequest & WithReservationType(SubnetCidrReservationType &&value)
Definition: CreateSubnetCidrReservationRequest.h:241
Aws::EC2::Model::CreateSubnetCidrReservationRequest::AddTagSpecifications
CreateSubnetCidrReservationRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateSubnetCidrReservationRequest.h:75
Aws::EC2::Model::CreateSubnetCidrReservationRequest::ReservationTypeHasBeenSet
bool ReservationTypeHasBeenSet() const
Definition: CreateSubnetCidrReservationRequest.h:189
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetReservationType
void SetReservationType(SubnetCidrReservationType &&value)
Definition: CreateSubnetCidrReservationRequest.h:215
Aws::EC2::Model::CreateSubnetCidrReservationRequest::GetDryRun
bool GetDryRun() const
Definition: CreateSubnetCidrReservationRequest.h:291
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithTagSpecifications
CreateSubnetCidrReservationRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateSubnetCidrReservationRequest.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithReservationType
CreateSubnetCidrReservationRequest & WithReservationType(const SubnetCidrReservationType &value)
Definition: CreateSubnetCidrReservationRequest.h:228
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithDescription
CreateSubnetCidrReservationRequest & WithDescription(Aws::String &&value)
Definition: CreateSubnetCidrReservationRequest.h:277
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateSubnetCidrReservationRequest.h:307
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetCidr
void SetCidr(const Aws::String &value)
Definition: CreateSubnetCidrReservationRequest.h:137
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateSubnetCidrReservationRequest.h:267
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateSubnetCidrReservationRequest.h:60
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::CreateSubnetCidrReservationRequest::WithTagSpecifications
CreateSubnetCidrReservationRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateSubnetCidrReservationRequest.h:70
EC2_EXPORTS.h
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateSubnetCidrReservationRequest.h:257
Aws::EC2::Model::CreateSubnetCidrReservationRequest::AddTagSpecifications
CreateSubnetCidrReservationRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateSubnetCidrReservationRequest.h:80
Aws::EC2::Model::CreateSubnetCidrReservationRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateSubnetCidrReservationRequest.h:55