aws_sdk_ec2/operation/create_ipam_pool/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_ipam_pool::_create_ipam_pool_output::CreateIpamPoolOutputBuilder;
3
4pub use crate::operation::create_ipam_pool::_create_ipam_pool_input::CreateIpamPoolInputBuilder;
5
6impl crate::operation::create_ipam_pool::builders::CreateIpamPoolInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_ipam_pool::CreateIpamPoolOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_ipam_pool::CreateIpamPoolError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_ipam_pool();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `CreateIpamPool`.
24///
25/// <p>Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In IPAM, a pool is a collection of contiguous IP addresses CIDRs. Pools enable you to organize your IP addresses according to your routing and security needs. For example, if you have separate routing and security needs for development and production applications, you can create a pool for each.</p>
26/// <p>For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/ipam/create-top-ipam.html">Create a top-level pool</a> in the <i>Amazon VPC IPAM User Guide</i>.</p>
27#[derive(::std::clone::Clone, ::std::fmt::Debug)]
28pub struct CreateIpamPoolFluentBuilder {
29 handle: ::std::sync::Arc<crate::client::Handle>,
30 inner: crate::operation::create_ipam_pool::builders::CreateIpamPoolInputBuilder,
31 config_override: ::std::option::Option<crate::config::Builder>,
32}
33impl
34 crate::client::customize::internal::CustomizableSend<
35 crate::operation::create_ipam_pool::CreateIpamPoolOutput,
36 crate::operation::create_ipam_pool::CreateIpamPoolError,
37 > for CreateIpamPoolFluentBuilder
38{
39 fn send(
40 self,
41 config_override: crate::config::Builder,
42 ) -> crate::client::customize::internal::BoxFuture<
43 crate::client::customize::internal::SendResult<
44 crate::operation::create_ipam_pool::CreateIpamPoolOutput,
45 crate::operation::create_ipam_pool::CreateIpamPoolError,
46 >,
47 > {
48 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
49 }
50}
51impl CreateIpamPoolFluentBuilder {
52 /// Creates a new `CreateIpamPoolFluentBuilder`.
53 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
54 Self {
55 handle,
56 inner: ::std::default::Default::default(),
57 config_override: ::std::option::Option::None,
58 }
59 }
60 /// Access the CreateIpamPool as a reference.
61 pub fn as_input(&self) -> &crate::operation::create_ipam_pool::builders::CreateIpamPoolInputBuilder {
62 &self.inner
63 }
64 /// Sends the request and returns the response.
65 ///
66 /// If an error occurs, an `SdkError` will be returned with additional details that
67 /// can be matched against.
68 ///
69 /// By default, any retryable failures will be retried twice. Retry behavior
70 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
71 /// set when configuring the client.
72 pub async fn send(
73 self,
74 ) -> ::std::result::Result<
75 crate::operation::create_ipam_pool::CreateIpamPoolOutput,
76 ::aws_smithy_runtime_api::client::result::SdkError<
77 crate::operation::create_ipam_pool::CreateIpamPoolError,
78 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
79 >,
80 > {
81 let input = self
82 .inner
83 .build()
84 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
85 let runtime_plugins = crate::operation::create_ipam_pool::CreateIpamPool::operation_runtime_plugins(
86 self.handle.runtime_plugins.clone(),
87 &self.handle.conf,
88 self.config_override,
89 );
90 crate::operation::create_ipam_pool::CreateIpamPool::orchestrate(&runtime_plugins, input).await
91 }
92
93 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
94 pub fn customize(
95 self,
96 ) -> crate::client::customize::CustomizableOperation<
97 crate::operation::create_ipam_pool::CreateIpamPoolOutput,
98 crate::operation::create_ipam_pool::CreateIpamPoolError,
99 Self,
100 > {
101 crate::client::customize::CustomizableOperation::new(self)
102 }
103 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
104 self.set_config_override(::std::option::Option::Some(config_override.into()));
105 self
106 }
107
108 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
109 self.config_override = config_override;
110 self
111 }
112 /// <p>A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
113 pub fn dry_run(mut self, input: bool) -> Self {
114 self.inner = self.inner.dry_run(input);
115 self
116 }
117 /// <p>A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
118 pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
119 self.inner = self.inner.set_dry_run(input);
120 self
121 }
122 /// <p>A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
123 pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
124 self.inner.get_dry_run()
125 }
126 /// <p>The ID of the scope in which you would like to create the IPAM pool.</p>
127 pub fn ipam_scope_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
128 self.inner = self.inner.ipam_scope_id(input.into());
129 self
130 }
131 /// <p>The ID of the scope in which you would like to create the IPAM pool.</p>
132 pub fn set_ipam_scope_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
133 self.inner = self.inner.set_ipam_scope_id(input);
134 self
135 }
136 /// <p>The ID of the scope in which you would like to create the IPAM pool.</p>
137 pub fn get_ipam_scope_id(&self) -> &::std::option::Option<::std::string::String> {
138 self.inner.get_ipam_scope_id()
139 }
140 /// <p>The locale for the pool should be one of the following:</p>
141 /// <ul>
142 /// <li>
143 /// <p>An Amazon Web Services Region where you want this IPAM pool to be available for allocations.</p></li>
144 /// <li>
145 /// <p>The network border group for an Amazon Web Services Local Zone where you want this IPAM pool to be available for allocations (<a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail">supported Local Zones</a>). This option is only available for IPAM IPv4 pools in the public scope.</p></li>
146 /// </ul>
147 /// <p>Possible values: Any Amazon Web Services Region or supported Amazon Web Services Local Zone. Default is <code>none</code> and means any locale.</p>
148 pub fn locale(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
149 self.inner = self.inner.locale(input.into());
150 self
151 }
152 /// <p>The locale for the pool should be one of the following:</p>
153 /// <ul>
154 /// <li>
155 /// <p>An Amazon Web Services Region where you want this IPAM pool to be available for allocations.</p></li>
156 /// <li>
157 /// <p>The network border group for an Amazon Web Services Local Zone where you want this IPAM pool to be available for allocations (<a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail">supported Local Zones</a>). This option is only available for IPAM IPv4 pools in the public scope.</p></li>
158 /// </ul>
159 /// <p>Possible values: Any Amazon Web Services Region or supported Amazon Web Services Local Zone. Default is <code>none</code> and means any locale.</p>
160 pub fn set_locale(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
161 self.inner = self.inner.set_locale(input);
162 self
163 }
164 /// <p>The locale for the pool should be one of the following:</p>
165 /// <ul>
166 /// <li>
167 /// <p>An Amazon Web Services Region where you want this IPAM pool to be available for allocations.</p></li>
168 /// <li>
169 /// <p>The network border group for an Amazon Web Services Local Zone where you want this IPAM pool to be available for allocations (<a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail">supported Local Zones</a>). This option is only available for IPAM IPv4 pools in the public scope.</p></li>
170 /// </ul>
171 /// <p>Possible values: Any Amazon Web Services Region or supported Amazon Web Services Local Zone. Default is <code>none</code> and means any locale.</p>
172 pub fn get_locale(&self) -> &::std::option::Option<::std::string::String> {
173 self.inner.get_locale()
174 }
175 /// <p>The ID of the source IPAM pool. Use this option to create a pool within an existing pool. Note that the CIDR you provision for the pool within the source pool must be available in the source pool's CIDR range.</p>
176 pub fn source_ipam_pool_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
177 self.inner = self.inner.source_ipam_pool_id(input.into());
178 self
179 }
180 /// <p>The ID of the source IPAM pool. Use this option to create a pool within an existing pool. Note that the CIDR you provision for the pool within the source pool must be available in the source pool's CIDR range.</p>
181 pub fn set_source_ipam_pool_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
182 self.inner = self.inner.set_source_ipam_pool_id(input);
183 self
184 }
185 /// <p>The ID of the source IPAM pool. Use this option to create a pool within an existing pool. Note that the CIDR you provision for the pool within the source pool must be available in the source pool's CIDR range.</p>
186 pub fn get_source_ipam_pool_id(&self) -> &::std::option::Option<::std::string::String> {
187 self.inner.get_source_ipam_pool_id()
188 }
189 /// <p>A description for the IPAM pool.</p>
190 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
191 self.inner = self.inner.description(input.into());
192 self
193 }
194 /// <p>A description for the IPAM pool.</p>
195 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
196 self.inner = self.inner.set_description(input);
197 self
198 }
199 /// <p>A description for the IPAM pool.</p>
200 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
201 self.inner.get_description()
202 }
203 /// <p>The IP protocol assigned to this IPAM pool. You must choose either IPv4 or IPv6 protocol for a pool.</p>
204 pub fn address_family(mut self, input: crate::types::AddressFamily) -> Self {
205 self.inner = self.inner.address_family(input);
206 self
207 }
208 /// <p>The IP protocol assigned to this IPAM pool. You must choose either IPv4 or IPv6 protocol for a pool.</p>
209 pub fn set_address_family(mut self, input: ::std::option::Option<crate::types::AddressFamily>) -> Self {
210 self.inner = self.inner.set_address_family(input);
211 self
212 }
213 /// <p>The IP protocol assigned to this IPAM pool. You must choose either IPv4 or IPv6 protocol for a pool.</p>
214 pub fn get_address_family(&self) -> &::std::option::Option<crate::types::AddressFamily> {
215 self.inner.get_address_family()
216 }
217 /// <p>If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.</p>
218 /// <p>A locale must be set on the pool for this feature to work.</p>
219 pub fn auto_import(mut self, input: bool) -> Self {
220 self.inner = self.inner.auto_import(input);
221 self
222 }
223 /// <p>If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.</p>
224 /// <p>A locale must be set on the pool for this feature to work.</p>
225 pub fn set_auto_import(mut self, input: ::std::option::Option<bool>) -> Self {
226 self.inner = self.inner.set_auto_import(input);
227 self
228 }
229 /// <p>If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.</p>
230 /// <p>A locale must be set on the pool for this feature to work.</p>
231 pub fn get_auto_import(&self) -> &::std::option::Option<bool> {
232 self.inner.get_auto_import()
233 }
234 /// <p>Determines if the pool is publicly advertisable. The request can only contain <code>PubliclyAdvertisable</code> if <code>AddressFamily</code> is <code>ipv6</code> and <code>PublicIpSource</code> is <code>byoip</code>.</p>
235 pub fn publicly_advertisable(mut self, input: bool) -> Self {
236 self.inner = self.inner.publicly_advertisable(input);
237 self
238 }
239 /// <p>Determines if the pool is publicly advertisable. The request can only contain <code>PubliclyAdvertisable</code> if <code>AddressFamily</code> is <code>ipv6</code> and <code>PublicIpSource</code> is <code>byoip</code>.</p>
240 pub fn set_publicly_advertisable(mut self, input: ::std::option::Option<bool>) -> Self {
241 self.inner = self.inner.set_publicly_advertisable(input);
242 self
243 }
244 /// <p>Determines if the pool is publicly advertisable. The request can only contain <code>PubliclyAdvertisable</code> if <code>AddressFamily</code> is <code>ipv6</code> and <code>PublicIpSource</code> is <code>byoip</code>.</p>
245 pub fn get_publicly_advertisable(&self) -> &::std::option::Option<bool> {
246 self.inner.get_publicly_advertisable()
247 }
248 /// <p>The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. The minimum netmask length must be less than the maximum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.</p>
249 pub fn allocation_min_netmask_length(mut self, input: i32) -> Self {
250 self.inner = self.inner.allocation_min_netmask_length(input);
251 self
252 }
253 /// <p>The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. The minimum netmask length must be less than the maximum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.</p>
254 pub fn set_allocation_min_netmask_length(mut self, input: ::std::option::Option<i32>) -> Self {
255 self.inner = self.inner.set_allocation_min_netmask_length(input);
256 self
257 }
258 /// <p>The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. The minimum netmask length must be less than the maximum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.</p>
259 pub fn get_allocation_min_netmask_length(&self) -> &::std::option::Option<i32> {
260 self.inner.get_allocation_min_netmask_length()
261 }
262 /// <p>The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. The maximum netmask length must be greater than the minimum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.</p>
263 pub fn allocation_max_netmask_length(mut self, input: i32) -> Self {
264 self.inner = self.inner.allocation_max_netmask_length(input);
265 self
266 }
267 /// <p>The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. The maximum netmask length must be greater than the minimum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.</p>
268 pub fn set_allocation_max_netmask_length(mut self, input: ::std::option::Option<i32>) -> Self {
269 self.inner = self.inner.set_allocation_max_netmask_length(input);
270 self
271 }
272 /// <p>The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. The maximum netmask length must be greater than the minimum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.</p>
273 pub fn get_allocation_max_netmask_length(&self) -> &::std::option::Option<i32> {
274 self.inner.get_allocation_max_netmask_length()
275 }
276 /// <p>The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16.</p>
277 pub fn allocation_default_netmask_length(mut self, input: i32) -> Self {
278 self.inner = self.inner.allocation_default_netmask_length(input);
279 self
280 }
281 /// <p>The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16.</p>
282 pub fn set_allocation_default_netmask_length(mut self, input: ::std::option::Option<i32>) -> Self {
283 self.inner = self.inner.set_allocation_default_netmask_length(input);
284 self
285 }
286 /// <p>The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16.</p>
287 pub fn get_allocation_default_netmask_length(&self) -> &::std::option::Option<i32> {
288 self.inner.get_allocation_default_netmask_length()
289 }
290 ///
291 /// Appends an item to `AllocationResourceTags`.
292 ///
293 /// To override the contents of this collection use [`set_allocation_resource_tags`](Self::set_allocation_resource_tags).
294 ///
295 /// <p>Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant.</p>
296 pub fn allocation_resource_tags(mut self, input: crate::types::RequestIpamResourceTag) -> Self {
297 self.inner = self.inner.allocation_resource_tags(input);
298 self
299 }
300 /// <p>Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant.</p>
301 pub fn set_allocation_resource_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::RequestIpamResourceTag>>) -> Self {
302 self.inner = self.inner.set_allocation_resource_tags(input);
303 self
304 }
305 /// <p>Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant.</p>
306 pub fn get_allocation_resource_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::RequestIpamResourceTag>> {
307 self.inner.get_allocation_resource_tags()
308 }
309 ///
310 /// Appends an item to `TagSpecifications`.
311 ///
312 /// To override the contents of this collection use [`set_tag_specifications`](Self::set_tag_specifications).
313 ///
314 /// <p>The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key <code>Owner</code> and the value <code>TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p>
315 pub fn tag_specifications(mut self, input: crate::types::TagSpecification) -> Self {
316 self.inner = self.inner.tag_specifications(input);
317 self
318 }
319 /// <p>The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key <code>Owner</code> and the value <code>TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p>
320 pub fn set_tag_specifications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>>) -> Self {
321 self.inner = self.inner.set_tag_specifications(input);
322 self
323 }
324 /// <p>The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key <code>Owner</code> and the value <code>TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p>
325 pub fn get_tag_specifications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>> {
326 self.inner.get_tag_specifications()
327 }
328 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">Ensuring idempotency</a>.</p>
329 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
330 self.inner = self.inner.client_token(input.into());
331 self
332 }
333 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">Ensuring idempotency</a>.</p>
334 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
335 self.inner = self.inner.set_client_token(input);
336 self
337 }
338 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">Ensuring idempotency</a>.</p>
339 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
340 self.inner.get_client_token()
341 }
342 /// <p>Limits which service in Amazon Web Services that the pool can be used in. "ec2", for example, allows users to use space for Elastic IP addresses and VPCs.</p>
343 pub fn aws_service(mut self, input: crate::types::IpamPoolAwsService) -> Self {
344 self.inner = self.inner.aws_service(input);
345 self
346 }
347 /// <p>Limits which service in Amazon Web Services that the pool can be used in. "ec2", for example, allows users to use space for Elastic IP addresses and VPCs.</p>
348 pub fn set_aws_service(mut self, input: ::std::option::Option<crate::types::IpamPoolAwsService>) -> Self {
349 self.inner = self.inner.set_aws_service(input);
350 self
351 }
352 /// <p>Limits which service in Amazon Web Services that the pool can be used in. "ec2", for example, allows users to use space for Elastic IP addresses and VPCs.</p>
353 pub fn get_aws_service(&self) -> &::std::option::Option<crate::types::IpamPoolAwsService> {
354 self.inner.get_aws_service()
355 }
356 /// <p>The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Default is <code>byoip</code>. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/ipam/intro-create-ipv6-pools.html">Create IPv6 pools</a> in the <i>Amazon VPC IPAM User Guide</i>. By default, you can add only one Amazon-provided IPv6 CIDR block to a top-level IPv6 pool if PublicIpSource is <code>amazon</code>. For information on increasing the default limit, see <a href="https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html"> Quotas for your IPAM</a> in the <i>Amazon VPC IPAM User Guide</i>.</p>
357 pub fn public_ip_source(mut self, input: crate::types::IpamPoolPublicIpSource) -> Self {
358 self.inner = self.inner.public_ip_source(input);
359 self
360 }
361 /// <p>The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Default is <code>byoip</code>. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/ipam/intro-create-ipv6-pools.html">Create IPv6 pools</a> in the <i>Amazon VPC IPAM User Guide</i>. By default, you can add only one Amazon-provided IPv6 CIDR block to a top-level IPv6 pool if PublicIpSource is <code>amazon</code>. For information on increasing the default limit, see <a href="https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html"> Quotas for your IPAM</a> in the <i>Amazon VPC IPAM User Guide</i>.</p>
362 pub fn set_public_ip_source(mut self, input: ::std::option::Option<crate::types::IpamPoolPublicIpSource>) -> Self {
363 self.inner = self.inner.set_public_ip_source(input);
364 self
365 }
366 /// <p>The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Default is <code>byoip</code>. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/ipam/intro-create-ipv6-pools.html">Create IPv6 pools</a> in the <i>Amazon VPC IPAM User Guide</i>. By default, you can add only one Amazon-provided IPv6 CIDR block to a top-level IPv6 pool if PublicIpSource is <code>amazon</code>. For information on increasing the default limit, see <a href="https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html"> Quotas for your IPAM</a> in the <i>Amazon VPC IPAM User Guide</i>.</p>
367 pub fn get_public_ip_source(&self) -> &::std::option::Option<crate::types::IpamPoolPublicIpSource> {
368 self.inner.get_public_ip_source()
369 }
370 /// <p>The resource used to provision CIDRs to a resource planning pool.</p>
371 pub fn source_resource(mut self, input: crate::types::IpamPoolSourceResourceRequest) -> Self {
372 self.inner = self.inner.source_resource(input);
373 self
374 }
375 /// <p>The resource used to provision CIDRs to a resource planning pool.</p>
376 pub fn set_source_resource(mut self, input: ::std::option::Option<crate::types::IpamPoolSourceResourceRequest>) -> Self {
377 self.inner = self.inner.set_source_resource(input);
378 self
379 }
380 /// <p>The resource used to provision CIDRs to a resource planning pool.</p>
381 pub fn get_source_resource(&self) -> &::std::option::Option<crate::types::IpamPoolSourceResourceRequest> {
382 self.inner.get_source_resource()
383 }
384}