AWS SDK for C++

AWS SDK for C++ Version 1.11.605

Loading...
Searching...
No Matches
AllocateIpamPoolCidrRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API AllocateIpamPoolCidrRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AllocateIpamPoolCidr"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline bool GetDryRun() const { return m_dryRun; }
49 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
50 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 inline AllocateIpamPoolCidrRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
53
55
58 inline const Aws::String& GetIpamPoolId() const { return m_ipamPoolId; }
59 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
60 template<typename IpamPoolIdT = Aws::String>
61 void SetIpamPoolId(IpamPoolIdT&& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = std::forward<IpamPoolIdT>(value); }
62 template<typename IpamPoolIdT = Aws::String>
63 AllocateIpamPoolCidrRequest& WithIpamPoolId(IpamPoolIdT&& value) { SetIpamPoolId(std::forward<IpamPoolIdT>(value)); return *this;}
65
67
76 inline const Aws::String& GetCidr() const { return m_cidr; }
77 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
78 template<typename CidrT = Aws::String>
79 void SetCidr(CidrT&& value) { m_cidrHasBeenSet = true; m_cidr = std::forward<CidrT>(value); }
80 template<typename CidrT = Aws::String>
81 AllocateIpamPoolCidrRequest& WithCidr(CidrT&& value) { SetCidr(std::forward<CidrT>(value)); return *this;}
83
85
95 inline int GetNetmaskLength() const { return m_netmaskLength; }
96 inline bool NetmaskLengthHasBeenSet() const { return m_netmaskLengthHasBeenSet; }
97 inline void SetNetmaskLength(int value) { m_netmaskLengthHasBeenSet = true; m_netmaskLength = value; }
98 inline AllocateIpamPoolCidrRequest& WithNetmaskLength(int value) { SetNetmaskLength(value); return *this;}
100
102
108 inline const Aws::String& GetClientToken() const { return m_clientToken; }
109 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
110 template<typename ClientTokenT = Aws::String>
111 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
112 template<typename ClientTokenT = Aws::String>
113 AllocateIpamPoolCidrRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
115
117
120 inline const Aws::String& GetDescription() const { return m_description; }
121 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
122 template<typename DescriptionT = Aws::String>
123 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
124 template<typename DescriptionT = Aws::String>
125 AllocateIpamPoolCidrRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
127
129
132 inline bool GetPreviewNextCidr() const { return m_previewNextCidr; }
133 inline bool PreviewNextCidrHasBeenSet() const { return m_previewNextCidrHasBeenSet; }
134 inline void SetPreviewNextCidr(bool value) { m_previewNextCidrHasBeenSet = true; m_previewNextCidr = value; }
135 inline AllocateIpamPoolCidrRequest& WithPreviewNextCidr(bool value) { SetPreviewNextCidr(value); return *this;}
137
139
143 inline const Aws::Vector<Aws::String>& GetAllowedCidrs() const { return m_allowedCidrs; }
144 inline bool AllowedCidrsHasBeenSet() const { return m_allowedCidrsHasBeenSet; }
145 template<typename AllowedCidrsT = Aws::Vector<Aws::String>>
146 void SetAllowedCidrs(AllowedCidrsT&& value) { m_allowedCidrsHasBeenSet = true; m_allowedCidrs = std::forward<AllowedCidrsT>(value); }
147 template<typename AllowedCidrsT = Aws::Vector<Aws::String>>
148 AllocateIpamPoolCidrRequest& WithAllowedCidrs(AllowedCidrsT&& value) { SetAllowedCidrs(std::forward<AllowedCidrsT>(value)); return *this;}
149 template<typename AllowedCidrsT = Aws::String>
150 AllocateIpamPoolCidrRequest& AddAllowedCidrs(AllowedCidrsT&& value) { m_allowedCidrsHasBeenSet = true; m_allowedCidrs.emplace_back(std::forward<AllowedCidrsT>(value)); return *this; }
152
154
158 inline const Aws::Vector<Aws::String>& GetDisallowedCidrs() const { return m_disallowedCidrs; }
159 inline bool DisallowedCidrsHasBeenSet() const { return m_disallowedCidrsHasBeenSet; }
160 template<typename DisallowedCidrsT = Aws::Vector<Aws::String>>
161 void SetDisallowedCidrs(DisallowedCidrsT&& value) { m_disallowedCidrsHasBeenSet = true; m_disallowedCidrs = std::forward<DisallowedCidrsT>(value); }
162 template<typename DisallowedCidrsT = Aws::Vector<Aws::String>>
163 AllocateIpamPoolCidrRequest& WithDisallowedCidrs(DisallowedCidrsT&& value) { SetDisallowedCidrs(std::forward<DisallowedCidrsT>(value)); return *this;}
164 template<typename DisallowedCidrsT = Aws::String>
165 AllocateIpamPoolCidrRequest& AddDisallowedCidrs(DisallowedCidrsT&& value) { m_disallowedCidrsHasBeenSet = true; m_disallowedCidrs.emplace_back(std::forward<DisallowedCidrsT>(value)); return *this; }
167 private:
168
169 bool m_dryRun{false};
170 bool m_dryRunHasBeenSet = false;
171
172 Aws::String m_ipamPoolId;
173 bool m_ipamPoolIdHasBeenSet = false;
174
175 Aws::String m_cidr;
176 bool m_cidrHasBeenSet = false;
177
178 int m_netmaskLength{0};
179 bool m_netmaskLengthHasBeenSet = false;
180
182 bool m_clientTokenHasBeenSet = true;
183
184 Aws::String m_description;
185 bool m_descriptionHasBeenSet = false;
186
187 bool m_previewNextCidr{false};
188 bool m_previewNextCidrHasBeenSet = false;
189
190 Aws::Vector<Aws::String> m_allowedCidrs;
191 bool m_allowedCidrsHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_disallowedCidrs;
194 bool m_disallowedCidrsHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace EC2
199} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API AllocateIpamPoolCidrRequest()=default
AllocateIpamPoolCidrRequest & WithDisallowedCidrs(DisallowedCidrsT &&value)
AllocateIpamPoolCidrRequest & WithAllowedCidrs(AllowedCidrsT &&value)
AllocateIpamPoolCidrRequest & WithNetmaskLength(int value)
AWS_EC2_API Aws::String SerializePayload() const override
AllocateIpamPoolCidrRequest & WithPreviewNextCidr(bool value)
virtual const char * GetServiceRequestName() const override
AllocateIpamPoolCidrRequest & AddDisallowedCidrs(DisallowedCidrsT &&value)
AllocateIpamPoolCidrRequest & WithIpamPoolId(IpamPoolIdT &&value)
AllocateIpamPoolCidrRequest & AddAllowedCidrs(AllowedCidrsT &&value)
const Aws::Vector< Aws::String > & GetDisallowedCidrs() const
AllocateIpamPoolCidrRequest & WithCidr(CidrT &&value)
AllocateIpamPoolCidrRequest & WithClientToken(ClientTokenT &&value)
AllocateIpamPoolCidrRequest & WithDescription(DescriptionT &&value)
AllocateIpamPoolCidrRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetAllowedCidrs() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector