AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSubnetCidrReservationRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.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/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace 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_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
47 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
48 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
49 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
50 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
51 inline CreateSubnetCidrReservationRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
52 inline CreateSubnetCidrReservationRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
53 inline CreateSubnetCidrReservationRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
55
57
60 inline const Aws::String& GetCidr() const{ return m_cidr; }
61 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
62 inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
63 inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
64 inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
65 inline CreateSubnetCidrReservationRequest& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
66 inline CreateSubnetCidrReservationRequest& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
67 inline CreateSubnetCidrReservationRequest& WithCidr(const char* value) { SetCidr(value); return *this;}
69
71
78 inline const SubnetCidrReservationType& GetReservationType() const{ return m_reservationType; }
79 inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
80 inline void SetReservationType(const SubnetCidrReservationType& value) { m_reservationTypeHasBeenSet = true; m_reservationType = value; }
81 inline void SetReservationType(SubnetCidrReservationType&& value) { m_reservationTypeHasBeenSet = true; m_reservationType = std::move(value); }
85
87
90 inline const Aws::String& GetDescription() const{ return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
94 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
96 inline CreateSubnetCidrReservationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
97 inline CreateSubnetCidrReservationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
99
101
107 inline bool GetDryRun() const{ return m_dryRun; }
108 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
109 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
110 inline CreateSubnetCidrReservationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
112
114
117 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
118 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
119 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
120 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
123 inline CreateSubnetCidrReservationRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
124 inline CreateSubnetCidrReservationRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
126 private:
127
128 Aws::String m_subnetId;
129 bool m_subnetIdHasBeenSet = false;
130
131 Aws::String m_cidr;
132 bool m_cidrHasBeenSet = false;
133
134 SubnetCidrReservationType m_reservationType;
135 bool m_reservationTypeHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
140 bool m_dryRun;
141 bool m_dryRunHasBeenSet = false;
142
143 Aws::Vector<TagSpecification> m_tagSpecifications;
144 bool m_tagSpecificationsHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace EC2
149} // namespace Aws
CreateSubnetCidrReservationRequest & WithSubnetId(const Aws::String &value)
CreateSubnetCidrReservationRequest & WithCidr(const char *value)
CreateSubnetCidrReservationRequest & WithDescription(const char *value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateSubnetCidrReservationRequest & WithReservationType(SubnetCidrReservationType &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateSubnetCidrReservationRequest & AddTagSpecifications(TagSpecification &&value)
CreateSubnetCidrReservationRequest & WithDescription(Aws::String &&value)
CreateSubnetCidrReservationRequest & WithSubnetId(Aws::String &&value)
void SetReservationType(const SubnetCidrReservationType &value)
CreateSubnetCidrReservationRequest & WithCidr(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateSubnetCidrReservationRequest & WithSubnetId(const char *value)
CreateSubnetCidrReservationRequest & AddTagSpecifications(const TagSpecification &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateSubnetCidrReservationRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateSubnetCidrReservationRequest & WithCidr(const Aws::String &value)
CreateSubnetCidrReservationRequest & WithDryRun(bool value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateSubnetCidrReservationRequest & WithDescription(const Aws::String &value)
CreateSubnetCidrReservationRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateSubnetCidrReservationRequest & WithReservationType(const SubnetCidrReservationType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector