1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>A request to obtain more information about dedicated IP pools.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDedicatedIpsInput {
/// <p>The name of the IP pool that the dedicated IP address is associated with.</p>
pub pool_name: ::std::option::Option<::std::string::String>,
/// <p>A token returned from a previous call to <code>GetDedicatedIps</code> to indicate the position of the dedicated IP pool in the list of IP pools.</p>
pub next_token: ::std::option::Option<::std::string::String>,
/// <p>The number of results to show in a single call to <code>GetDedicatedIpsRequest</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p>
pub page_size: ::std::option::Option<i32>,
}
impl GetDedicatedIpsInput {
/// <p>The name of the IP pool that the dedicated IP address is associated with.</p>
pub fn pool_name(&self) -> ::std::option::Option<&str> {
self.pool_name.as_deref()
}
/// <p>A token returned from a previous call to <code>GetDedicatedIps</code> to indicate the position of the dedicated IP pool in the list of IP pools.</p>
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
/// <p>The number of results to show in a single call to <code>GetDedicatedIpsRequest</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p>
pub fn page_size(&self) -> ::std::option::Option<i32> {
self.page_size
}
}
impl GetDedicatedIpsInput {
/// Creates a new builder-style object to manufacture [`GetDedicatedIpsInput`](crate::operation::get_dedicated_ips::GetDedicatedIpsInput).
pub fn builder() -> crate::operation::get_dedicated_ips::builders::GetDedicatedIpsInputBuilder {
crate::operation::get_dedicated_ips::builders::GetDedicatedIpsInputBuilder::default()
}
}
/// A builder for [`GetDedicatedIpsInput`](crate::operation::get_dedicated_ips::GetDedicatedIpsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDedicatedIpsInputBuilder {
pub(crate) pool_name: ::std::option::Option<::std::string::String>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
pub(crate) page_size: ::std::option::Option<i32>,
}
impl GetDedicatedIpsInputBuilder {
/// <p>The name of the IP pool that the dedicated IP address is associated with.</p>
pub fn pool_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.pool_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the IP pool that the dedicated IP address is associated with.</p>
pub fn set_pool_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.pool_name = input;
self
}
/// <p>The name of the IP pool that the dedicated IP address is associated with.</p>
pub fn get_pool_name(&self) -> &::std::option::Option<::std::string::String> {
&self.pool_name
}
/// <p>A token returned from a previous call to <code>GetDedicatedIps</code> to indicate the position of the dedicated IP pool in the list of IP pools.</p>
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.next_token = ::std::option::Option::Some(input.into());
self
}
/// <p>A token returned from a previous call to <code>GetDedicatedIps</code> to indicate the position of the dedicated IP pool in the list of IP pools.</p>
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
/// <p>A token returned from a previous call to <code>GetDedicatedIps</code> to indicate the position of the dedicated IP pool in the list of IP pools.</p>
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
/// <p>The number of results to show in a single call to <code>GetDedicatedIpsRequest</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p>
pub fn page_size(mut self, input: i32) -> Self {
self.page_size = ::std::option::Option::Some(input);
self
}
/// <p>The number of results to show in a single call to <code>GetDedicatedIpsRequest</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p>
pub fn set_page_size(mut self, input: ::std::option::Option<i32>) -> Self {
self.page_size = input;
self
}
/// <p>The number of results to show in a single call to <code>GetDedicatedIpsRequest</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p>
pub fn get_page_size(&self) -> &::std::option::Option<i32> {
&self.page_size
}
/// Consumes the builder and constructs a [`GetDedicatedIpsInput`](crate::operation::get_dedicated_ips::GetDedicatedIpsInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_dedicated_ips::GetDedicatedIpsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_dedicated_ips::GetDedicatedIpsInput {
pool_name: self.pool_name,
next_token: self.next_token,
page_size: self.page_size,
})
}
}