AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
27 AWS_EC2_API CreateSubnetCidrReservationRequest() = default;
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 template<typename SubnetIdT = Aws::String>
49 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
50 template<typename SubnetIdT = Aws::String>
51 CreateSubnetCidrReservationRequest& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetCidr() const { return m_cidr; }
59 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
60 template<typename CidrT = Aws::String>
61 void SetCidr(CidrT&& value) { m_cidrHasBeenSet = true; m_cidr = std::forward<CidrT>(value); }
62 template<typename CidrT = Aws::String>
63 CreateSubnetCidrReservationRequest& WithCidr(CidrT&& value) { SetCidr(std::forward<CidrT>(value)); return *this;}
65
67
74 inline SubnetCidrReservationType GetReservationType() const { return m_reservationType; }
75 inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
76 inline void SetReservationType(SubnetCidrReservationType value) { m_reservationTypeHasBeenSet = true; m_reservationType = value; }
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template<typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
88 template<typename DescriptionT = Aws::String>
89 CreateSubnetCidrReservationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
91
93
99 inline bool GetDryRun() const { return m_dryRun; }
100 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
101 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
102 inline CreateSubnetCidrReservationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
104
106
109 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
110 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
111 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
112 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
113 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
114 CreateSubnetCidrReservationRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
115 template<typename TagSpecificationsT = TagSpecification>
116 CreateSubnetCidrReservationRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
118 private:
119
120 Aws::String m_subnetId;
121 bool m_subnetIdHasBeenSet = false;
122
123 Aws::String m_cidr;
124 bool m_cidrHasBeenSet = false;
125
127 bool m_reservationTypeHasBeenSet = false;
128
129 Aws::String m_description;
130 bool m_descriptionHasBeenSet = false;
131
132 bool m_dryRun{false};
133 bool m_dryRunHasBeenSet = false;
134
135 Aws::Vector<TagSpecification> m_tagSpecifications;
136 bool m_tagSpecificationsHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace EC2
141} // 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