#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ListLensesInput {
pub next_token: ::std::option::Option<::std::string::String>,
pub max_results: ::std::option::Option<i32>,
pub lens_type: ::std::option::Option<crate::types::LensType>,
pub lens_status: ::std::option::Option<crate::types::LensStatusType>,
pub lens_name: ::std::option::Option<::std::string::String>,
}
impl ListLensesInput {
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn max_results(&self) -> ::std::option::Option<i32> {
self.max_results
}
pub fn lens_type(&self) -> ::std::option::Option<&crate::types::LensType> {
self.lens_type.as_ref()
}
pub fn lens_status(&self) -> ::std::option::Option<&crate::types::LensStatusType> {
self.lens_status.as_ref()
}
pub fn lens_name(&self) -> ::std::option::Option<&str> {
self.lens_name.as_deref()
}
}
impl ListLensesInput {
pub fn builder() -> crate::operation::list_lenses::builders::ListLensesInputBuilder {
crate::operation::list_lenses::builders::ListLensesInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListLensesInputBuilder {
pub(crate) next_token: ::std::option::Option<::std::string::String>,
pub(crate) max_results: ::std::option::Option<i32>,
pub(crate) lens_type: ::std::option::Option<crate::types::LensType>,
pub(crate) lens_status: ::std::option::Option<crate::types::LensStatusType>,
pub(crate) lens_name: ::std::option::Option<::std::string::String>,
}
impl ListLensesInputBuilder {
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
}
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
pub fn max_results(mut self, input: i32) -> Self {
self.max_results = ::std::option::Option::Some(input);
self
}
pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_results = input;
self
}
pub fn get_max_results(&self) -> &::std::option::Option<i32> {
&self.max_results
}
pub fn lens_type(mut self, input: crate::types::LensType) -> Self {
self.lens_type = ::std::option::Option::Some(input);
self
}
pub fn set_lens_type(mut self, input: ::std::option::Option<crate::types::LensType>) -> Self {
self.lens_type = input;
self
}
pub fn get_lens_type(&self) -> &::std::option::Option<crate::types::LensType> {
&self.lens_type
}
pub fn lens_status(mut self, input: crate::types::LensStatusType) -> Self {
self.lens_status = ::std::option::Option::Some(input);
self
}
pub fn set_lens_status(mut self, input: ::std::option::Option<crate::types::LensStatusType>) -> Self {
self.lens_status = input;
self
}
pub fn get_lens_status(&self) -> &::std::option::Option<crate::types::LensStatusType> {
&self.lens_status
}
pub fn lens_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.lens_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_lens_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.lens_name = input;
self
}
pub fn get_lens_name(&self) -> &::std::option::Option<::std::string::String> {
&self.lens_name
}
pub fn build(self) -> ::std::result::Result<crate::operation::list_lenses::ListLensesInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::list_lenses::ListLensesInput {
next_token: self.next_token,
max_results: self.max_results,
lens_type: self.lens_type,
lens_status: self.lens_status,
lens_name: self.lens_name,
})
}
}