#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetIpSetInput {
pub ip_set_id: ::std::option::Option<::std::string::String>,
}
impl GetIpSetInput {
pub fn ip_set_id(&self) -> ::std::option::Option<&str> {
self.ip_set_id.as_deref()
}
}
impl GetIpSetInput {
pub fn builder() -> crate::operation::get_ip_set::builders::GetIpSetInputBuilder {
crate::operation::get_ip_set::builders::GetIpSetInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetIpSetInputBuilder {
pub(crate) ip_set_id: ::std::option::Option<::std::string::String>,
}
impl GetIpSetInputBuilder {
pub fn ip_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ip_set_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_ip_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ip_set_id = input;
self
}
pub fn get_ip_set_id(&self) -> &::std::option::Option<::std::string::String> {
&self.ip_set_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_ip_set::GetIpSetInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_ip_set::GetIpSetInput { ip_set_id: self.ip_set_id })
}
}